API Documentation  9.14.00
Data Structures | Typedefs | Functions | Variables
DisplayHost.h File Reference

Display driver for printf-like output. More...

Go to the source code of this file.

Data Structures

struct  DisplayHost_HWAttrs
 DisplayHost Attributes. More...
 
struct  DisplayHost_Object
 DisplayHost Object. More...
 

Typedefs

typedef struct DisplayHost_ObjectDisplayHost_Handle
 
typedef struct DisplayHost_HWAttrs DisplayHost_HWAttrs
 DisplayHost Attributes. More...
 
typedef struct DisplayHost_Object DisplayHost_Object
 DisplayHost Object. More...
 

Functions

void DisplayHost_clear (Display_Handle handle)
 
void DisplayHost_clearLines (Display_Handle handle, uint8_t fromLine, uint8_t toLine)
 
void DisplayHost_close (Display_Handle handle)
 
int DisplayHost_control (Display_Handle handle, unsigned int cmd, void *arg)
 
unsigned int DisplayHost_getType (void)
 
void DisplayHost_init (Display_Handle handle)
 
Display_Handle DisplayHost_open (Display_Handle handle, Display_Params *params)
 
void DisplayHost_vprintf (Display_Handle handle, uint8_t line, uint8_t column, const char *fmt, va_list va)
 

Variables

const Display_FxnTable DisplayHost_fxnTable
 

Detailed Description

Display driver for printf-like output.

============================================================================

Driver include

The header file should be included in an application as follows:

Below is an example configuration to use the HOST display.

#define MAXPRINTLEN 1024
DisplayHost_Object displayHostObject;
static char displayBuf[MAXPRINTLEN];
const DisplayHost_HWAttrs displayHostHWAttrs = {
.strBuf = displayBuf,
.strBufLen = MAXPRINTLEN
};
const Display_Config Display_config[] = {
{
.fxnTablePtr = &DisplayHost_fxnTable,
.object = &displayHostObject,
.hwAttrs = &displayHostHWAttrs
}
};
const uint8_t Display_count = sizeof(Display_config) / sizeof(Display_Config);

Calling Context

For TIRTOS based applications, the Display_HOST interface is only callable from Task context. The Display_HOST interface is callable from any context for FreeRTOS based applications.


Typedef Documentation

§ DisplayHost_HWAttrs

DisplayHost Attributes.

The DisplayHost driver uses a buffer for formatting messages, which is then passed to an fwrite() function. The location and size of the buffer are specified in a DisplayHost_HWAttrs structure.

§ DisplayHost_Object

DisplayHost Object.

The application must not access any member variables of this structure!