|
caffeine-sal 0.1.17
Header-only polymorphic middleware services layer for the Caffeine Framework
|
Abstract Command Line Interface (CLI) service interface. More...
#include "cfn_sal.h"Go to the source code of this file.
Data Structures | |
| struct | cfn_sal_utl_cli_cmd_t |
| struct | cfn_sal_utl_cli_config_t |
| struct | cfn_sal_utl_cli_api_s |
| CLI Virtual Method Table (VMT). More... | |
Macros | |
| #define | CFN_SAL_UTL_TYPE_CLI CFN_SAL_TYPE('C', 'L', 'I') |
Typedefs | |
| typedef struct cfn_sal_utl_cli_s | cfn_sal_utl_cli_t |
| typedef struct cfn_sal_utl_cli_api_s | cfn_sal_utl_cli_api_t |
| typedef void(* | cfn_sal_utl_cli_callback_t) (cfn_sal_utl_cli_t *driver, uint32_t event, uint32_t error, void *user_arg) |
Enumerations | |
| enum | cfn_sal_utl_cli_event_t { CFN_SAL_UTL_CLI_EVENT_NONE = 0 , CFN_SAL_UTL_CLI_EVENT_CMD_START = CFN_HAL_BIT(0) , CFN_SAL_UTL_CLI_EVENT_CMD_DONE = CFN_HAL_BIT(1) } |
Functions | |
| CFN_HAL_VMT_CHECK (struct cfn_sal_utl_cli_api_s) | |
| CFN_SAL_CREATE_DRIVER_TYPE (sal_utl_cli, cfn_sal_utl_cli_config_t, cfn_sal_utl_cli_api_t, cfn_sal_phy_t, cfn_sal_utl_cli_callback_t) | |
| CFN_HAL_INLINE void | cfn_sal_utl_cli_populate (cfn_sal_utl_cli_t *driver, uint32_t peripheral_id, void *dependency, const cfn_sal_utl_cli_api_t *api, const cfn_sal_phy_t *phy, const cfn_sal_utl_cli_config_t *config, cfn_sal_utl_cli_callback_t callback, void *user_arg) |
| cfn_hal_error_code_t | cfn_sal_utl_cli_construct (cfn_sal_utl_cli_t *driver, const cfn_sal_utl_cli_config_t *config, const cfn_sal_phy_t *phy, void *dependency, cfn_sal_utl_cli_callback_t callback, void *user_arg) |
| cfn_hal_error_code_t | cfn_sal_utl_cli_destruct (cfn_sal_utl_cli_t *driver) |
| CFN_HAL_INLINE cfn_hal_error_code_t | cfn_sal_utl_cli_init (cfn_sal_utl_cli_t *driver) |
| CFN_HAL_INLINE cfn_hal_error_code_t | cfn_sal_utl_cli_deinit (cfn_sal_utl_cli_t *driver) |
| CFN_HAL_INLINE cfn_hal_error_code_t | cfn_sal_utl_cli_config_set (cfn_sal_utl_cli_t *driver, const cfn_sal_utl_cli_config_t *config) |
| CFN_HAL_INLINE cfn_hal_error_code_t | cfn_sal_utl_cli_config_get (cfn_sal_utl_cli_t *driver, cfn_sal_utl_cli_config_t *config) |
| CFN_HAL_INLINE cfn_hal_error_code_t | cfn_sal_utl_cli_callback_register (cfn_sal_utl_cli_t *driver, cfn_sal_utl_cli_callback_t callback, void *user_arg) |
| CFN_HAL_INLINE cfn_hal_error_code_t | cfn_sal_utl_cli_power_state_set (cfn_sal_utl_cli_t *driver, cfn_hal_power_state_t state) |
| CFN_HAL_INLINE cfn_hal_error_code_t | cfn_sal_utl_cli_event_enable (cfn_sal_utl_cli_t *driver, uint32_t event_mask) |
| CFN_HAL_INLINE cfn_hal_error_code_t | cfn_sal_utl_cli_event_disable (cfn_sal_utl_cli_t *driver, uint32_t event_mask) |
| CFN_HAL_INLINE cfn_hal_error_code_t | cfn_sal_utl_cli_event_get (cfn_sal_utl_cli_t *driver, uint32_t *event_mask) |
| CFN_HAL_INLINE cfn_hal_error_code_t | cfn_sal_utl_cli_error_enable (cfn_sal_utl_cli_t *driver, uint32_t error_mask) |
| CFN_HAL_INLINE cfn_hal_error_code_t | cfn_sal_utl_cli_error_disable (cfn_sal_utl_cli_t *driver, uint32_t error_mask) |
| CFN_HAL_INLINE cfn_hal_error_code_t | cfn_sal_utl_cli_error_get (cfn_sal_utl_cli_t *driver, uint32_t *error_mask) |
| CFN_HAL_INLINE cfn_hal_error_code_t | cfn_sal_utl_cli_feed_char (cfn_sal_utl_cli_t *driver, char c) |
| CFN_HAL_INLINE cfn_hal_error_code_t | cfn_sal_utl_cli_print (cfn_sal_utl_cli_t *driver, const char *str) |
| CFN_HAL_INLINE cfn_hal_error_code_t | cfn_sal_utl_cli_print_line (cfn_sal_utl_cli_t *driver, const char *str) |
| CFN_HAL_INLINE cfn_hal_error_code_t | cfn_sal_utl_cli_register_command (cfn_sal_utl_cli_t *driver, const cfn_sal_utl_cli_cmd_t *cmd) |
| CFN_HAL_INLINE cfn_hal_error_code_t | cfn_sal_utl_cli_unregister_command (cfn_sal_utl_cli_t *driver, const char *name) |
| CFN_HAL_INLINE cfn_hal_error_code_t | cfn_sal_utl_cli_set_prompt (cfn_sal_utl_cli_t *driver, const char *prompt) |
| CFN_HAL_INLINE cfn_hal_error_code_t | cfn_sal_utl_cli_clear_screen (cfn_sal_utl_cli_t *driver) |
| CFN_HAL_INLINE cfn_hal_error_code_t | cfn_sal_utl_cli_register_command_simple (cfn_sal_utl_cli_t *driver, const char *cmd, void *callback) |
| CFN_HAL_INLINE cfn_hal_error_code_t | cfn_sal_utl_cli_print_help (cfn_sal_utl_cli_t *driver) |
| CFN_HAL_INLINE cfn_hal_error_code_t | cfn_sal_utl_cli_history_prev (cfn_sal_utl_cli_t *driver) |
| CFN_HAL_INLINE cfn_hal_error_code_t | cfn_sal_utl_cli_history_next (cfn_sal_utl_cli_t *driver) |
Abstract Command Line Interface (CLI) service interface.
| #define CFN_SAL_UTL_TYPE_CLI CFN_SAL_TYPE('C', 'L', 'I') |
| typedef struct cfn_sal_utl_cli_api_s cfn_sal_utl_cli_api_t |
| typedef void(* cfn_sal_utl_cli_callback_t) (cfn_sal_utl_cli_t *driver, uint32_t event, uint32_t error, void *user_arg) |
| typedef struct cfn_sal_utl_cli_s cfn_sal_utl_cli_t |
| CFN_HAL_VMT_CHECK | ( | struct cfn_sal_utl_cli_api_s | ) |
| CFN_SAL_CREATE_DRIVER_TYPE | ( | sal_utl_cli | , |
| cfn_sal_utl_cli_config_t | , | ||
| cfn_sal_utl_cli_api_t | , | ||
| cfn_sal_phy_t | , | ||
| cfn_sal_utl_cli_callback_t | |||
| ) |
| CFN_HAL_INLINE cfn_hal_error_code_t cfn_sal_utl_cli_callback_register | ( | cfn_sal_utl_cli_t * | driver, |
| cfn_sal_utl_cli_callback_t | callback, | ||
| void * | user_arg | ||
| ) |
| CFN_HAL_INLINE cfn_hal_error_code_t cfn_sal_utl_cli_clear_screen | ( | cfn_sal_utl_cli_t * | driver | ) |
| CFN_HAL_INLINE cfn_hal_error_code_t cfn_sal_utl_cli_config_get | ( | cfn_sal_utl_cli_t * | driver, |
| cfn_sal_utl_cli_config_t * | config | ||
| ) |
| CFN_HAL_INLINE cfn_hal_error_code_t cfn_sal_utl_cli_config_set | ( | cfn_sal_utl_cli_t * | driver, |
| const cfn_sal_utl_cli_config_t * | config | ||
| ) |
| cfn_hal_error_code_t cfn_sal_utl_cli_construct | ( | cfn_sal_utl_cli_t * | driver, |
| const cfn_sal_utl_cli_config_t * | config, | ||
| const cfn_sal_phy_t * | phy, | ||
| void * | dependency, | ||
| cfn_sal_utl_cli_callback_t | callback, | ||
| void * | user_arg | ||
| ) |
| CFN_HAL_INLINE cfn_hal_error_code_t cfn_sal_utl_cli_deinit | ( | cfn_sal_utl_cli_t * | driver | ) |
| cfn_hal_error_code_t cfn_sal_utl_cli_destruct | ( | cfn_sal_utl_cli_t * | driver | ) |
| CFN_HAL_INLINE cfn_hal_error_code_t cfn_sal_utl_cli_error_disable | ( | cfn_sal_utl_cli_t * | driver, |
| uint32_t | error_mask | ||
| ) |
| CFN_HAL_INLINE cfn_hal_error_code_t cfn_sal_utl_cli_error_enable | ( | cfn_sal_utl_cli_t * | driver, |
| uint32_t | error_mask | ||
| ) |
| CFN_HAL_INLINE cfn_hal_error_code_t cfn_sal_utl_cli_error_get | ( | cfn_sal_utl_cli_t * | driver, |
| uint32_t * | error_mask | ||
| ) |
| CFN_HAL_INLINE cfn_hal_error_code_t cfn_sal_utl_cli_event_disable | ( | cfn_sal_utl_cli_t * | driver, |
| uint32_t | event_mask | ||
| ) |
| CFN_HAL_INLINE cfn_hal_error_code_t cfn_sal_utl_cli_event_enable | ( | cfn_sal_utl_cli_t * | driver, |
| uint32_t | event_mask | ||
| ) |
| CFN_HAL_INLINE cfn_hal_error_code_t cfn_sal_utl_cli_event_get | ( | cfn_sal_utl_cli_t * | driver, |
| uint32_t * | event_mask | ||
| ) |
| CFN_HAL_INLINE cfn_hal_error_code_t cfn_sal_utl_cli_feed_char | ( | cfn_sal_utl_cli_t * | driver, |
| char | c | ||
| ) |
| CFN_HAL_INLINE cfn_hal_error_code_t cfn_sal_utl_cli_history_next | ( | cfn_sal_utl_cli_t * | driver | ) |
| CFN_HAL_INLINE cfn_hal_error_code_t cfn_sal_utl_cli_history_prev | ( | cfn_sal_utl_cli_t * | driver | ) |
| CFN_HAL_INLINE cfn_hal_error_code_t cfn_sal_utl_cli_init | ( | cfn_sal_utl_cli_t * | driver | ) |
| CFN_HAL_INLINE void cfn_sal_utl_cli_populate | ( | cfn_sal_utl_cli_t * | driver, |
| uint32_t | peripheral_id, | ||
| void * | dependency, | ||
| const cfn_sal_utl_cli_api_t * | api, | ||
| const cfn_sal_phy_t * | phy, | ||
| const cfn_sal_utl_cli_config_t * | config, | ||
| cfn_sal_utl_cli_callback_t | callback, | ||
| void * | user_arg | ||
| ) |
| CFN_HAL_INLINE cfn_hal_error_code_t cfn_sal_utl_cli_power_state_set | ( | cfn_sal_utl_cli_t * | driver, |
| cfn_hal_power_state_t | state | ||
| ) |
| CFN_HAL_INLINE cfn_hal_error_code_t cfn_sal_utl_cli_print | ( | cfn_sal_utl_cli_t * | driver, |
| const char * | str | ||
| ) |
| CFN_HAL_INLINE cfn_hal_error_code_t cfn_sal_utl_cli_print_help | ( | cfn_sal_utl_cli_t * | driver | ) |
| CFN_HAL_INLINE cfn_hal_error_code_t cfn_sal_utl_cli_print_line | ( | cfn_sal_utl_cli_t * | driver, |
| const char * | str | ||
| ) |
| CFN_HAL_INLINE cfn_hal_error_code_t cfn_sal_utl_cli_register_command | ( | cfn_sal_utl_cli_t * | driver, |
| const cfn_sal_utl_cli_cmd_t * | cmd | ||
| ) |
| CFN_HAL_INLINE cfn_hal_error_code_t cfn_sal_utl_cli_register_command_simple | ( | cfn_sal_utl_cli_t * | driver, |
| const char * | cmd, | ||
| void * | callback | ||
| ) |
| CFN_HAL_INLINE cfn_hal_error_code_t cfn_sal_utl_cli_set_prompt | ( | cfn_sal_utl_cli_t * | driver, |
| const char * | prompt | ||
| ) |
| CFN_HAL_INLINE cfn_hal_error_code_t cfn_sal_utl_cli_unregister_command | ( | cfn_sal_utl_cli_t * | driver, |
| const char * | name | ||
| ) |