![]() |
![]() |
TI-RTOS Drivers
tidrivers_full_2_20_01_10
|
Extention of Display to access GrLib functionality in capable displays.
============================================================================
The display header file should be included in an application as follows:
This extension depends on an already opened Display interface, and accesses the global Display_config object.
First, the regular Display interface must be opened, and after that, APIs in this extension become usable.
This interface expects that all Display implementations that report type Display_Type_GRLIB will also 'inherit' the DisplayGrLib_Object so that the implementation specific instance object can be cast to the type DisplayGrLib_Object.
In practice this means that the tContext object used to control GrLib by the display implementation must be the first member of the Object structure used by that implementation.
For example, Display_SharpObject can be cast to DisplayGrLib_Object to access the tContext object, without this interface having prior knowledge about the Sharp display implementation.
The Display interface produces log statements if instrumentation is enabled.
Diagnostics Mask | Log details |
---|---|
Diags_USER1 | basic operations performed |
Diags_USER2 | detailed operations performed |
Go to the source code of this file.
Data Structures | |
struct | DisplayGrLib_Object |
Macros | |
#define | DisplayExt_getGrlibContext(handle) DisplayExt_doGetGrlibContext(handle) |
Typedefs | |
typedef struct DisplayGrLib_Object | DisplayGrLib_Object |
typedef struct DisplayGrLib_Object * | DisplayGrLib_Handle |
Functions | |
tContext * | DisplayExt_doGetGrlibContext (Display_Handle handle) |
Get the tContext object of the first available and open Display that uses GrLib for output. More... | |
#define DisplayExt_getGrlibContext | ( | handle | ) | DisplayExt_doGetGrlibContext(handle) |
Get tContext of first opened Display that uses GrLib
typedef struct DisplayGrLib_Object DisplayGrLib_Object |
typedef struct DisplayGrLib_Object * DisplayGrLib_Handle |
tContext* DisplayExt_doGetGrlibContext | ( | Display_Handle | handle | ) |
Get the tContext object of the first available and open Display that uses GrLib for output.
Useful for drawing graphics if you know that the display is GrLib capable.