This module is responsible for encoding and decoding the serial bytes to/from Host into corresponding MAC APIs .
Macros | |
#define | EOT (4) |
The end of transmission delimiter. More... | |
#define | MAC_PID (1) |
#define | MAC_PID_LEN (1) |
#define | SIO_BUF_COUNT (5) |
#define | SIO_RX_BUF_SIZE (156) |
#define | SIO_TX_BUF_SIZE SIO_RX_BUF_SIZE |
#define | SOT (1) |
The start of transmission delimiter. More... | |
#define | UART_RX_STATE_DATA (3) |
A UART state that expects the next data character to be received. More... | |
#define | UART_RX_STATE_EOT (4) |
A UART state that expects a EOT to be received as the next character. More... | |
#define | UART_RX_STATE_LENGTH (2) |
A UART state that expects the length to be received as the next character. More... | |
#define | UART_RX_STATE_SOT (1) |
A UART state that expects a SOT to be received as the next character. More... | |
Functions | |
void | serial_data_handler (void) |
Function to handle the state machine serial data exchange. More... | |
void | serial_interface_init (void) |
This function does the initialization of the Serial handler state Machine. More... | |
#define EOT (4) |
The end of transmission delimiter.
Referenced by process_incoming_sio_data(), usr_mcps_data_conf(), usr_mcps_data_ind(), usr_mlme_associate_conf(), usr_mlme_beacon_notify_ind(), usr_mlme_disassociate_conf(), usr_mlme_disassociate_ind(), usr_mlme_get_conf(), usr_mlme_poll_conf(), usr_mlme_reset_conf(), usr_mlme_rx_enable_conf(), usr_mlme_scan_conf(), usr_mlme_set_conf(), and usr_mlme_sync_loss_ind().
#define MAC_PID (1) |
Referenced by handle_incoming_msg(), usr_mcps_data_conf(), usr_mcps_data_ind(), usr_mlme_associate_conf(), usr_mlme_beacon_notify_ind(), usr_mlme_disassociate_conf(), usr_mlme_disassociate_ind(), usr_mlme_get_conf(), usr_mlme_poll_conf(), usr_mlme_reset_conf(), usr_mlme_rx_enable_conf(), usr_mlme_scan_conf(), usr_mlme_set_conf(), and usr_mlme_sync_loss_ind().
#define MAC_PID_LEN (1) |
Referenced by usr_mcps_data_conf(), usr_mcps_data_ind(), usr_mlme_associate_conf(), usr_mlme_beacon_notify_ind(), usr_mlme_disassociate_conf(), usr_mlme_disassociate_ind(), usr_mlme_get_conf(), usr_mlme_poll_conf(), usr_mlme_reset_conf(), usr_mlme_rx_enable_conf(), usr_mlme_scan_conf(), usr_mlme_set_conf(), and usr_mlme_sync_loss_ind().
#define SIO_BUF_COUNT (5) |
Referenced by get_next_tx_buffer(), and serial_data_handler().
#define SIO_RX_BUF_SIZE (156) |
Referenced by serial_data_handler().
#define SIO_TX_BUF_SIZE SIO_RX_BUF_SIZE |
#define SOT (1) |
The start of transmission delimiter.
Referenced by get_next_tx_buffer(), and process_incoming_sio_data().
#define UART_RX_STATE_DATA (3) |
A UART state that expects the next data character to be received.
Referenced by process_incoming_sio_data().
#define UART_RX_STATE_EOT (4) |
A UART state that expects a EOT to be received as the next character.
Referenced by process_incoming_sio_data().
#define UART_RX_STATE_LENGTH (2) |
A UART state that expects the length to be received as the next character.
Referenced by process_incoming_sio_data().
#define UART_RX_STATE_SOT (1) |
A UART state that expects a SOT to be received as the next character.
Referenced by process_incoming_sio_data(), and serial_interface_init().
void serial_data_handler | ( | void | ) |
Function to handle the state machine serial data exchange.
References buf_count, data, data_length, head, process_incoming_sio_data(), rx_index, sio2host_rx(), sio2host_tx(), SIO_BUF_COUNT, SIO_RX_BUF_SIZE, and sio_tx_buf.
Referenced by main().
void serial_interface_init | ( | void | ) |
This function does the initialization of the Serial handler state Machine.
References sio2host_init(), sio_rx_state, and UART_RX_STATE_SOT.
Referenced by main().