#include <string.h>
#include <stdint.h>
#include "FreeRTOS.h"
#include "task.h"
#include "FreeRTOS_CLI.h"
Data Structures | |
struct | xCOMMAND_INPUT_LIST |
Typedefs | |
typedef struct xCOMMAND_INPUT_LIST | CLI_Definition_List_Item_t |
Functions | |
int8_t * | FreeRTOS_CLIGetOutputBuffer (void) |
const int8_t * | FreeRTOS_CLIGetParameter (const int8_t *pcCommandString, unsigned portBASE_TYPE uxWantedParameter, portBASE_TYPE *pxParameterStringLength) |
portBASE_TYPE | FreeRTOS_CLIProcessCommand (const int8_t *const pcCommandInput, int8_t *pcWriteBuffer, size_t xWriteBufferLen) |
portBASE_TYPE | FreeRTOS_CLIRegisterCommand (const CLI_Command_Definition_t *const pxCommandToRegister) |
static int8_t | prvGetNumberOfParameters (const int8_t *pcCommandString) |
static portBASE_TYPE | prvHelpCommand (int8_t *pcWriteBuffer, size_t xWriteBufferLen, const int8_t *pcCommandString) |
Variables | |
static int8_t | cOutputBuffer [configCOMMAND_INT_MAX_OUTPUT_SIZE] |
static const CLI_Command_Definition_t | xHelpCommand |
static CLI_Definition_List_Item_t | xRegisteredCommands |
typedef struct xCOMMAND_INPUT_LIST CLI_Definition_List_Item_t |
int8_t* FreeRTOS_CLIGetOutputBuffer | ( | void | ) |
References cOutputBuffer.
Referenced by usart_command_console_task(), and usb_cdc_command_console_task().
const int8_t* FreeRTOS_CLIGetParameter | ( | const int8_t * | pcCommandString, |
unsigned portBASE_TYPE | uxWantedParameter, | ||
portBASE_TYPE * | pxParameterStringLength | ||
) |
Referenced by create_task_command(), multi_parameter_echo_command(), and three_parameter_echo_command().
portBASE_TYPE FreeRTOS_CLIProcessCommand | ( | const int8_t *const | pcCommandInput, |
int8_t * | pcWriteBuffer, | ||
size_t | xWriteBufferLen | ||
) |
References xCOMMAND_LINE_INPUT::cExpectedNumberOfParameters, xCOMMAND_LINE_INPUT::pcCommand, pdFALSE, pdTRUE, prvGetNumberOfParameters(), xCOMMAND_LINE_INPUT::pxCommandInterpreter, xCOMMAND_INPUT_LIST::pxCommandLineDefinition, and xCOMMAND_INPUT_LIST::pxNext.
Referenced by usart_command_console_task(), and usb_cdc_command_console_task().
portBASE_TYPE FreeRTOS_CLIRegisterCommand | ( | const CLI_Command_Definition_t *const | pxCommandToRegister | ) |
References configASSERT, pdFAIL, pdPASS, pvPortMalloc(), xCOMMAND_INPUT_LIST::pxCommandLineDefinition, xCOMMAND_INPUT_LIST::pxNext, taskENTER_CRITICAL, taskEXIT_CRITICAL, and xRegisteredCommands.
Referenced by vRegisterCLICommands().
|
static |
References pdFALSE, and pdTRUE.
Referenced by FreeRTOS_CLIProcessCommand().
|
static |
|
static |
Referenced by FreeRTOS_CLIGetOutputBuffer().
|
static |
|
static |
Referenced by FreeRTOS_CLIRegisterCommand(), and prvHelpCommand().