1.2.3.4 Library Interface

Command System Service library provides the following interfaces:

Functions

NameDescription
SYS_CMD_InitializeInitializes data for the instance of the Command Processor module
SYS_CMD_ADDGRPAllows clients to add command process to the Command Processor System Service
SYS_CMD_DELETERemoves CMDIO parameters from the Command Processor System Service console
SYS_CMD_READY_TO_READAllows upper layer application to confirm that the command module is ready to accept command input
SYS_CMD_READY_TO_WRITEAllows upper layer application to confirm that the command module is ready to write output to the Console System Service
SYS_CMD_TasksMaintains the Command Processor System Service's internal state machine
SYS_CMD_MESSAGEOutputs a message to the Command Processor System Service console
SYS_CMD_PRINTOutputs a printout to the Command Processor System Service console
SYS_CMDIO_GET_HANDLEGets the CMDIO Handle base via index
SYS_CMDIO_ADDAdds CMDIO parameters to the Command Processor System Service console

Data types and constants

NameTypeDescription
COMMAND_HISTORY_DEPTHMacroCommand Processor System Service Maximum Depth of Command History
SYS_CMD_MAX_LENGTHMacroCommand Processor System Service Command Buffer Maximum Length definition
SYS_CMD_READ_BUFFER_SIZEMacroCommand Processor System Service Read Buffer Size definition
SYS_CMD_CallbackFunctionTypedefCommand Callback Function Handle
SYS_CMD_HANDLETypedefIdentifies a particular Command I/O instance
SYS_CMD_MSG_FNCTypedefIdentifies a message function API
SYS_CMD_PRINT_FNCTypedefIdentifies a print function API
SYS_CMD_PUTC_FNCTypedefIdentifies a single character print function API
SYS_CMD_DATA_RDY_FNCTypedefIdentifies a data available function API
SYS_CMD_GETC_FNCTypedefIdentifies a get single character function API
SYS_CMD_READC_FNCTypedefIdentifies a read single character function API
SYS_CMD_APIStructIdentifies the Command API structure
SYS_CMD_EVENTEnumIdentifies the Command Event Types
SYS_CMD_CONSOLE_IO_PARAMEnumDefines whether the command module is single character or full command read
SYS_CMD_INITStructIdentifies the system command initialize structure
SYS_CMD_DEVICE_NODEStructDefines the data structure to store each command instance
SYS_CMD_FNCTypedefIdentifies the command process function API
SYS_CMD_DESCRIPTORStructDefines the descriptor structure for a single command process