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() Display_doInit() 387 #define Display_open(id, params) Display_doOpen(id, params) 390 #define Display_Params_init(params) Display_doParamsInit(params) 393 #define Display_clear(handle) Display_doClear(handle) 396 #define Display_clearLines(handle, fromLine, toLine) Display_doClearLines(handle, fromLine, toLine) 399 #define Display_printf Display_doPrintf 402 #define Display_print0(handle, line, col, fmt) Display_printf(handle, line, col, fmt) 405 #define Display_print1(handle, line, col, fmt, a0) Display_printf(handle, line, col, fmt, a0) 408 #define Display_print2(handle, line, col, fmt, a0, a1) Display_printf(handle, line, col, fmt, a0, a1) 411 #define Display_print3(handle, line, col, fmt, a0, a1, a2) Display_printf(handle, line, col, fmt, a0, a1, a2) 414 #define Display_print4(handle, line, col, fmt, a0, a1, a2, a3) \ 415 Display_printf(handle, line, col, fmt, a0, a1, a2, a3) 418 #define Display_print5(handle, line, col, fmt, a0, a1, a2, a3, a4) \ 419 Display_printf(handle, line, col, fmt, a0, a1, a2, a3, a4) 422 #define Display_vprintf(handle, line, col, fmt, va) Display_doVprintf(handle, line, col, fmt, va) 425 #define Display_getType(handle) Display_doGetType(handle) 428 #define Display_control(handle, cmd, arg) Display_doControl(handle, cmd, arg) 431 #define Display_close(handle) Display_doClose(handle) 433 #define Display_init() 434 #define Display_open(id, params) NULL 435 #define Display_Params_init(params) 436 #define Display_clear(handle) 437 #define Display_clearLines(handle, fromLine, toLine) 438 #define Display_printf(handle, line, col, fmt, ...) 439 #define Display_print0(handle, line, col, fmt) 440 #define Display_print1(handle, line, col, fmt, a0) 441 #define Display_print2(handle, line, col, fmt, a0, a1) 442 #define Display_print3(handle, line, col, fmt, a0, a1, a2) 443 #define Display_print4(handle, line, col, fmt, a0, a1, a2, a3) 444 #define Display_print5(handle, line, col, fmt, a0, a1, a2, a3, a4) 445 #define Display_vprintf(handle, line, col, fmt, va) 446 #define Display_getType(handle) Display_Type_INVALID 447 #define Display_control(handle, cmd, arg) (DISPLAY_STATUS_UNDEFINEDCMD) 448 #define Display_close(handle) 511 typedef void (*
Display_vprintfFxn)(Display_Handle handle, uint8_t line, uint8_t column,
const char *fmt, va_list va);
646 void Display_doPrintf(Display_Handle handle, uint8_t line, uint8_t column,
const char *fmt, ...);
659 void Display_doVprintf(Display_Handle handle, uint8_t line, uint8_t column,
const char *fmt, va_list va);
726 #endif // ti_display_Display__include void Display_doClose(Display_Handle handle)
Closes selected Display implementations.
ADC_Params params
Definition: Driver_Init.h:11
Display_vprintfFxn vprintfFxn
Definition: Display.h:541
struct Display_Config * Display_Handle
A handle for specific Display implementations.
Definition: Display.h:458
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:505
void Display_doParamsInit(Display_Params *params)
Initializes parameter structure with default parameters.
void * object
Definition: Display.h:564
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:494
void(* Display_closeFxn)(Display_Handle handle)
A function pointer to a specific implementation of Display_close().
Definition: Display.h:517
unsigned int(* Display_getTypeFxn)(void)
A function pointer to a specific implementation of Display_getType().
Definition: Display.h:528
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:511
Display Parameters.
Definition: Display.h:485
void const * hwAttrs
Definition: Display.h:567
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:471
Display_clearFxn clearFxn
Definition: Display.h:539
Display_controlFxn controlFxn
Definition: Display.h:543
void(* Display_clearFxn)(Display_Handle handle)
A function pointer to a specific implementation of Display_clear().
Definition: Display.h:499
Display_initFxn initFxn
Definition: Display.h:537
Definition: Display.h:473
The definition of a Display function table that contains the required set of functions to control a s...
Definition: Display.h:535
Display_openFxn openFxn
Definition: Display.h:538
void(* Display_initFxn)(Display_Handle handle)
A function pointer to a specific implementation of Display_initFxn().
Definition: Display.h:464
Definition: Display.h:472
Display_getTypeFxn getTypeFxn
Definition: Display.h:544
void Display_doClearLines(Display_Handle handle, uint8_t fromLine, uint8_t toLine)
Calls the clearLines fxn of all opened Display implementations.
int Display_doControl(Display_Handle handle, unsigned int cmd, void *arg)
Function performs implementation specific features on a given Display_Handle.
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:487
Display_Handle Display_doOpen(uint32_t id, Display_Params *params)
Initialize all the selected Display implementations.
Display Global configuration.
Definition: Display.h:558
struct Display_Params Display_Params
Display Parameters.
Display_FxnTable const * fxnTablePtr
Definition: Display.h:561
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:523
Display_closeFxn closeFxn
Definition: Display.h:542
void Display_doVprintf(Display_Handle handle, uint8_t line, uint8_t column, const char *fmt, va_list va)
Calls the vfprintf function of all opened Display implementations.
Display_LineClearMode
How to treat existing elements on a line when writing text.
Definition: Display.h:469
Definition: Display.h:474
Display_clearLinesFxn clearLinesFxn
Definition: Display.h:540