259 #define ATCI_UART_TX_FIFO_BUFFER_SIZE (1024) atci_cmd_hdlr_item_t * item_table
For more information, please refer to atci_cmd_hdlr_item_t.
Definition: atci.h:365
This structure defines AT command handler table structure.
Definition: atci.h:364
Auto append "\r\n" at the begining and end of the response string.
Definition: atci.h:297
This structure defines AT command handler structure.
Definition: atci.h:355
uint32_t response_flag
For more information, please refer to atci_response_flag_t.
Definition: atci.h:316
uint32_t hash_value2
Use hash value 2 in the AT command string to accelerate search for the command handler.
Definition: atci.h:359
Test mode command, such as "AT+CMD=?".
Definition: atci.h:286
atci_status_t
This enum defines the ATCI status types.
Definition: atci.h:273
atci_cmd_mode_t
This enum defines the input CMD mode.
Definition: atci.h:282
atci_status_t(* at_cmd_hdlr_fp)(atci_parse_cmd_param_t *parse_cmd)
This defines the callback function prototype.
Definition: atci.h:346
Execute mode command, such as "AT+CMD=<op>".
Definition: atci.h:285
This structure defines the response structure.
Definition: atci.h:313
This structure defines AT command handler input structure.
Definition: atci.h:321
uint32_t name_len
AT command name length.
Definition: atci.h:324
atci_status_t atci_register_handler(atci_cmd_hdlr_item_t *table, int32_t hdlr_number)
This function registers the AT command handler.
void atci_processing(void)
This function parses the input command to find the corresponding command handler and handle the respo...
Failed to register the AT command handler table.
Definition: atci.h:274
#define ATCI_UART_TX_FIFO_BUFFER_SIZE
This macro defines the data length of the AT command response.
Definition: atci.h:259
uint16_t response_len
The actual data length of response_buf.
Definition: atci.h:315
Auto append "OK\r\n" at the end of the response string.
Definition: atci.h:298
No error occurred during the function call.
Definition: atci.h:276
Active mode command, such as "AT+CMD".
Definition: atci.h:284
atci_status_t atci_send_response(atci_response_t *response)
This function sends the AT command response data or the URC data.
uint32_t string_len
The response data buffer.
Definition: atci.h:323
An error occurred during the function call.
Definition: atci.h:275
at_cmd_hdlr_fp command_hdlr
The command handler, please refer to at_cmd_hdlr_fp.
Definition: atci.h:357
atci_response_flag_t
This enum defines the bit type of the auto append operation used in response_flag of the atci_respons...
Definition: atci.h:293
uint32_t hash_value1
Use hash value 1 in the AT command string to accelerate search for the command handler.
Definition: atci.h:358
The input command doesn't belong to any of the four types.
Definition: atci.h:287
char * command_head
AT command string.
Definition: atci.h:356
Auto append "ERROR\r\n" at the end of the response string.
Definition: atci.h:299
uint32_t parse_pos
The length after detecting the AT command mode.
Definition: atci.h:325
Auto append "\r\n" at the end of the response string.
Definition: atci.h:295
The URC notification flag.
Definition: atci.h:296
Read mode command, such as "AT+CMD?".
Definition: atci.h:283
uint32_t item_table_size
The command item size in the item table.
Definition: atci.h:366
atci_cmd_mode_t mode
For more information, please refer to atci_cmd_mode_t.
Definition: atci.h:326
atci_status_t atci_init(uint16_t port)
This function initializes the ATCI module.
char * string_ptr
The input data buffer.
Definition: atci.h:322