1.2.4.4 Library Interface

Console System Service library provides the following interfaces:

Functions

NameDescription
SYS_CONSOLE_InitializeInitializes the console instance module and opens or initializes the specific module instance to which it is associated
SYS_CONSOLE_TasksMaintains the console's state machine
SYS_CONSOLE_StatusReturns status of the specific instance of the Console module
SYS_CONSOLE_HandleGetReturns a handle to the requested console instance
SYS_CONSOLE_DeviceGetReturns the device type for a given console instance
SYS_CONSOLE_ReadReads data from the console device
SYS_CONSOLE_WriteWrites data to the console device
SYS_CONSOLE_FlushFlushes the read and write queues for the given console instance
SYS_CONSOLE_ReadFreeBufferCountGetReturns the amount of free space in bytes available in the receive buffer
SYS_CONSOLE_ReadCountGetReturns number of unread bytes available in the receive buffer
SYS_CONSOLE_WriteFreeBufferCountGetReturns the amount of free space in bytes in the transmit buffer
SYS_CONSOLE_WriteCountGetReturns the number of bytes pending for transmission in the transmit buffer
SYS_CONSOLE_PrintFormats and prints a message with a variable number of arguments to the console
SYS_CONSOLE_MessagePrints a message to the console

Data types and constants

NameTypeDescription
STDXXX_FILENOMacrosStandard Input/Output/Error File Number Macros
SYS_CONSOLE_DEFAULT_INSTANCEMacroSystem Console defualt instance
SYS_CONSOLE_PRINTMacroPrints formatted message on the default console instance
SYS_CONSOLE_MESSAGEMacroPrints message on the default console instance
SYS_CONSOLE_STATUSEnumSystem Console Status
SYS_CONSOLE_DEVICEEnumLists the available console devices
SYS_CONSOLE_HANDLETypedefHandle to an instance of the console system service
SYS_CONSOLE_HANDLE_INVALIDMacroInvalid console handle