238 #ifndef ti_display_Display__include 239 #define ti_display_Display__include 260 #define Display_Type_ANY 0xFFFFFFFF 261 #define Display_Type_INVALID 0x00000000 262 #define Display_Type_LCD 0x80000000 263 #define Display_Type_UART 0x40000000 264 #define Display_Type_LOG 0x20000000 265 #define Display_Type_ITM 0x10000000 266 #define Display_Type_HOST 0x08000000 267 #define Display_Type_ANSI 0x04000000 268 #define Display_Type_GRLIB 0x00100000 272 #define Display_MAXINDEX 15 291 #define DISPLAY_CMD_RESERVED 32 305 #define DISPLAY_STATUS_RESERVED -32 320 #define DISPLAY_STATUS_SUCCESS 0 328 #define DISPLAY_STATUS_ERROR -1 337 #define DISPLAY_STATUS_UNDEFINEDCMD -2 358 #define DISPLAY_CMD_TRANSPORT_CLOSE 0 368 #define DISPLAY_CMD_TRANSPORT_OPEN 1 377 #define Display_clearLine(handle, n) Display_clearLines(handle, n, 0) 378 #define Display_isIndex(i) (i <= Display_MAXINDEX) 379 #define Display_isMetaType(i) (i > Display_MAXINDEX) 381 #if !defined(Display_DISABLE_ALL) || (!Display_DISABLE_ALL) 384 # define Display_init() \ 388 # define Display_open(id, params) \ 389 Display_doOpen(id, params) 392 # define Display_Params_init(params) \ 393 Display_doParamsInit(params) 396 # define Display_clear(handle) \ 397 Display_doClear(handle) 400 # define Display_clearLines(handle, fromLine, toLine) \ 401 Display_doClearLines(handle, fromLine, toLine) 404 # define Display_printf Display_doPrintf 407 # define Display_print0(handle, line, col, fmt) \ 408 Display_printf(handle, line, col, fmt) 411 # define Display_print1(handle, line, col, fmt, a0) \ 412 Display_printf(handle, line, col, fmt, a0) 415 # define Display_print2(handle, line, col, fmt, a0, a1) \ 416 Display_printf(handle, line, col, fmt, a0, a1) 419 # define Display_print3(handle, line, col, fmt, a0, a1, a2) \ 420 Display_printf(handle, line, col, fmt, a0, a1, a2) 423 # define Display_print4(handle, line, col, fmt, a0, a1, a2, a3) \ 424 Display_printf(handle, line, col, fmt, a0, a1, a2, a3) 427 # define Display_print5(handle, line, col, fmt, a0, a1, a2, a3, a4) \ 428 Display_printf(handle, line, col, fmt, a0, a1, a2, a3, a4) 431 # define Display_getType(handle) \ 432 Display_doGetType(handle) 435 # define Display_control(handle, cmd, arg) \ 436 Display_doControl(handle, cmd, arg) 439 # define Display_close(handle) \ 440 Display_doClose(handle) 442 # define Display_init() 443 # define Display_open(id, params) NULL 444 # define Display_Params_init(params) 445 # define Display_clear(handle) 446 # define Display_clearLines(handle, fromLine, toLine) 447 # define Display_printf(handle, line, col, fmt, ...) 448 # define Display_print0(handle, line, col, fmt) 449 # define Display_print1(handle, line, col, fmt, a0) 450 # define Display_print2(handle, line, col, fmt, a0, a1) 451 # define Display_print3(handle, line, col, fmt, a0, a1, a2) 452 # define Display_print4(handle, line, col, fmt, a0, a1, a2, a3) 453 # define Display_print5(handle, line, col, fmt, a0, a1, a2, a3, a4) 454 # define Display_getType(handle) Display_Type_INVALID 455 # define Display_control(handle, cmd, arg) NULL 456 # define Display_close(handle) 665 const char *fmt, ...);
732 #endif //ti_display_Display__include void Display_doClose(Display_Handle handle)
Closes selected Display implementations.
Display_vprintfFxn vprintfFxn
Definition: Display.h:558
struct Display_Config * Display_Handle
A handle for specific Display implementations.
Definition: Display.h:466
struct Display_Config Display_Config
Display Global configuration.
void(* Display_clearLinesFxn)(Display_Handle handle, uint8_t fromLine, uint8_t toLine)
A function pointer to a specific implementation of Display_clearLines().
Definition: Display.h:514
void Display_doParamsInit(Display_Params *params)
Initializes parameter structure with default parameters.
void * object
Definition: Display.h:581
void Display_doInit(void)
Function to initializes the Display driver.
Display_Handle(* Display_openFxn)(Display_Handle handle, Display_Params *params)
A function pointer to a specific implementation of Display_open().
Definition: Display.h:502
unsigned int(* Display_getTypeFxn)(void)
A function pointer to a specific implementation of Display_getType().
Definition: Display.h:545
void Display_doClear(Display_Handle handle)
Calls the clear fxn of all opened Display implementations.
void(* Display_vprintfFxn)(Display_Handle handle, uint8_t line, uint8_t column, const char *fmt, va_list va)
A function pointer to a specific implementation of Display_vprintf().
Definition: Display.h:522
Display Parameters.
Definition: Display.h:493
void const * hwAttrs
Definition: Display.h:584
uint32_t Display_doGetType(Display_Handle handle)
Gets the type of display for the handle.
void Display_doPrintf(Display_Handle handle, uint8_t line, uint8_t column, const char *fmt,...)
Calls the output function of all opened Display implementations.
Definition: Display.h:479
void Display_doControl(Display_Handle handle, unsigned int cmd, void *arg)
Function performs implementation specific features on a given Display_Handle.
Display_clearFxn clearFxn
Definition: Display.h:556
Display_controlFxn controlFxn
Definition: Display.h:560
void(* Display_clearFxn)(Display_Handle handle)
A function pointer to a specific implementation of Display_clear().
Definition: Display.h:508
Display_initFxn initFxn
Definition: Display.h:554
Definition: Display.h:481
The definition of a Display function table that contains the required set of functions to control a s...
Definition: Display.h:552
Display_openFxn openFxn
Definition: Display.h:555
void(* Display_initFxn)(Display_Handle handle)
A function pointer to a specific implementation of Display_initFxn().
Definition: Display.h:472
Definition: Display.h:480
Display_getTypeFxn getTypeFxn
Definition: Display.h:561
void Display_doClearLines(Display_Handle handle, uint8_t fromLine, uint8_t toLine)
Calls the clearLines fxn of all opened Display implementations.
struct Display_FxnTable Display_FxnTable
The definition of a Display function table that contains the required set of functions to control a s...
Display_LineClearMode lineClearMode
Definition: Display.h:495
Display_Handle Display_doOpen(uint32_t id, Display_Params *params)
Initialize all the selected Display implementations.
Display Global configuration.
Definition: Display.h:575
struct Display_Params Display_Params
Display Parameters.
Display_FxnTable const * fxnTablePtr
Definition: Display.h:578
int(* Display_controlFxn)(Display_Handle handle, unsigned int cmd, void *arg)
A function pointer to a driver specific implementation of Display_control().
Definition: Display.h:538
Display_closeFxn closeFxn
Definition: Display.h:559
Display_LineClearMode
How to treat existing elements on a line when writing text.
Definition: Display.h:477
Definition: Display.h:482
Display_clearLinesFxn clearLinesFxn
Definition: Display.h:557
void(* Display_closeFxn)(Display_Handle)
A function pointer to a specific implementation of Display_close().
Definition: Display.h:532