The API Encoder Module Decodes the incoming command byte stream to corresponding MAC Api's.
Macros | |
#define | SIO_RX_BUF_SIZE 156 |
Functions | |
static void | api_process_incoming_sio_data (void) |
Process data received from SIO. More... | |
void | handle_rx_frame (void) |
void | process_rf_serial_byte (uint8_t byte) |
bool | wpan_task (void) |
The stack task function called by the application. More... | |
Variables | |
uint8_t | data [SIO_RX_BUF_SIZE] |
uint8_t | data_length = 0 |
static uint8_t * | rcv_buff_ptr |
uint8_t | rcv_buffer [RX_BUFFER_LENGTH] = {0} |
uint8_t * | rcv_frame_ptr |
static uint8_t | rcv_length = 0 |
static uint8_t | rcv_state = UART_RX_STATE_SOT |
static uint8_t | rx_index = 0 |
#define SIO_RX_BUF_SIZE 156 |
Referenced by wpan_task().
|
static |
Process data received from SIO.
References data, EOT, handle_rx_frame(), rcv_buff_ptr, rcv_buffer, rcv_length, rcv_state, rx_index, SOT, UART_RX_STATE_DATA, UART_RX_STATE_EOT, UART_RX_STATE_LENGTH, and UART_RX_STATE_SOT.
Referenced by wpan_task().
void handle_rx_frame | ( | void | ) |
References wpan_addr_spec_tag::Addr, wpan_addr_spec_tag::AddrMode, MCPS_DATA_CONFIRM, MCPS_DATA_INDICATION, MCPS_PURGE_CONFIRM, MLME_ASSOCIATE_CONFIRM, MLME_ASSOCIATE_INDICATION, MLME_BEACON_NOTIFY_INDICATION, MLME_COMM_STATUS_INDICATION, MLME_DISASSOCIATE_CONFIRM, MLME_DISASSOCIATE_INDICATION, MLME_GET_CONFIRM, MLME_GTS_CONFIRM, MLME_GTS_INDICATION, MLME_ORPHAN_INDICATION, MLME_POLL_CONFIRM, MLME_RESET_CONFIRM, MLME_RX_ENABLE_CONFIRM, MLME_SCAN_CONFIRM, MLME_SET_CONFIRM, MLME_START_CONFIRM, MLME_SYNC_LOSS_INDICATION, wpan_addr_spec_tag::PANId, rcv_frame_ptr, usr_mcps_data_conf(), usr_mcps_data_ind(), usr_mcps_purge_conf(), usr_mlme_associate_conf(), usr_mlme_associate_ind(), usr_mlme_beacon_notify_ind(), usr_mlme_comm_status_ind(), usr_mlme_disassociate_conf(), usr_mlme_disassociate_ind(), usr_mlme_get_conf(), usr_mlme_gts_conf(), usr_mlme_gts_ind(), usr_mlme_orphan_ind(), usr_mlme_poll_conf(), usr_mlme_reset_conf(), usr_mlme_rx_enable_conf(), usr_mlme_scan_conf(), usr_mlme_set_conf(), usr_mlme_start_conf(), usr_mlme_sync_loss_ind(), and WPAN_DESCRIPTOR_LEN.
Referenced by api_process_incoming_sio_data(), and process_rf_serial_byte().
void process_rf_serial_byte | ( | uint8_t | byte | ) |
References EOT, handle_rx_frame(), rcv_buff_ptr, rcv_buffer, rcv_length, rcv_state, SOT, UART_RX_STATE_DATA, UART_RX_STATE_EOT, UART_RX_STATE_LENGTH, and UART_RX_STATE_SOT.
bool wpan_task | ( | void | ) |
The stack task function called by the application.
This function should be called as frequently as possible by the application in order to provide a permanent execution of the protocol stack.
References api_process_incoming_sio_data(), data, data_length, rx_index, sio2ncp_rx(), SIO_RX_BUF_SIZE, and sw_timer_service().
Referenced by main().
uint8_t data[SIO_RX_BUF_SIZE] |
Referenced by api_process_incoming_sio_data(), and wpan_task().
uint8_t data_length = 0 |
Referenced by wpan_task().
|
static |
Referenced by api_process_incoming_sio_data(), and process_rf_serial_byte().
uint8_t rcv_buffer[RX_BUFFER_LENGTH] = {0} |
Referenced by api_process_incoming_sio_data(), process_rf_serial_byte(), and wpan_init().
uint8_t* rcv_frame_ptr |
Referenced by handle_rx_frame(), mac_get_pib_attribute_size(), and wpan_init().
|
static |
Referenced by api_process_incoming_sio_data(), and process_rf_serial_byte().
|
static |
Referenced by api_process_incoming_sio_data(), and process_rf_serial_byte().
|
static |
Referenced by api_process_incoming_sio_data(), and wpan_task().