Copyright (c) 2013-2018 Microchip Technology Inc.
and its subsidiaries.
Macros | |
#define | PIN_ACK_OK_END() |
#define | PIN_ACK_OK_START() |
#define | PIN_ACK_WAITING_END() |
#define | PIN_ACK_WAITING_START() |
#define | PIN_BACKOFF_END() |
#define | PIN_BACKOFF_START() |
#define | PIN_BEACON_END() |
#define | PIN_BEACON_LOSS_TIMER_END() |
#define | PIN_BEACON_LOSS_TIMER_START() |
#define | PIN_BEACON_START() |
#define | PIN_CCA_END() |
#define | PIN_CCA_START() |
#define | PIN_CSMA_END() |
#define | PIN_CSMA_START() |
#define | PIN_NO_ACK_END() |
#define | PIN_NO_ACK_START() |
#define | PIN_TX_END() |
#define | PIN_TX_START() |
#define | PIN_WAITING_FOR_BEACON_END() |
#define | PIN_WAITING_FOR_BEACON_START() |
#define | TAL_PSDU_US_PER_OCTET(octets) ((uint16_t)(octets) * 32) |
Conversion of number of PSDU octets to duration in microseconds. More... | |
#define | TRX_IRQ_DEFAULT TRX_IRQ_3_TRX_END |
Typedefs | |
typedef enum tal_state_tag | tal_state_t |
TAL states. More... | |
Enumerations | |
enum | tal_state_tag { TAL_IDLE = 0, TAL_TX_AUTO = 1, TAL_TX_DONE = 2, TAL_ED_RUNNING = 4, TAL_ED_DONE = 5 } |
TAL states. More... | |
Functions | |
void | ed_scan_done (void) |
Scan done. More... | |
tal_trx_status_t | set_trx_state (trx_cmd_t trx_cmd) |
Sets transceiver state. More... | |
Variables | |
uint8_t | last_frame_length |
frame_info_t * | mac_frame_ptr |
Frame pointer for the frame structure provided by the MCL. More... | |
volatile bool | tal_awake_end_flag |
uint8_t * | tal_frame_to_tx |
Pointer to the 15.4 frame created by the TAL to be handed over to the transceiver. More... | |
queue_t | tal_incoming_frame_queue |
Queue that contains all frames that are uploaded from the trx, but have not be processed by the MCL yet. More... | |
buffer_t * | tal_rx_buffer |
Pointer to receive buffer that can be used to upload a frame from the trx. More... | |
bool | tal_rx_on_required |
Indicates if the transceiver needs to switch on its receiver by tal_task(), because it could not be switched on due to buffer shortage. More... | |
tal_state_t | tal_state |
Current state of the TAL state machine. More... | |
tal_trx_status_t | tal_trx_status |
Current state of the transceiver. More... | |
#define PIN_ACK_OK_END | ( | ) |
Referenced by handle_tx_end_irq().
#define PIN_ACK_OK_START | ( | ) |
Referenced by handle_tx_end_irq().
#define PIN_ACK_WAITING_END | ( | ) |
Referenced by handle_tx_end_irq().
#define PIN_ACK_WAITING_START | ( | ) |
#define PIN_BACKOFF_END | ( | ) |
#define PIN_BACKOFF_START | ( | ) |
#define PIN_BEACON_END | ( | ) |
Referenced by process_incoming_frame().
#define PIN_BEACON_LOSS_TIMER_END | ( | ) |
#define PIN_BEACON_LOSS_TIMER_START | ( | ) |
#define PIN_BEACON_START | ( | ) |
Referenced by process_incoming_frame().
#define PIN_CCA_END | ( | ) |
#define PIN_CCA_START | ( | ) |
#define PIN_CSMA_END | ( | ) |
#define PIN_CSMA_START | ( | ) |
#define PIN_NO_ACK_END | ( | ) |
#define PIN_NO_ACK_START | ( | ) |
Referenced by handle_tx_end_irq().
#define PIN_TX_END | ( | ) |
Referenced by handle_tx_end_irq().
#define PIN_TX_START | ( | ) |
#define PIN_WAITING_FOR_BEACON_END | ( | ) |
Referenced by process_incoming_frame().
#define PIN_WAITING_FOR_BEACON_START | ( | ) |
#define TAL_PSDU_US_PER_OCTET | ( | octets | ) | ((uint16_t)(octets) * 32) |
Conversion of number of PSDU octets to duration in microseconds.
Referenced by tx_done_handling().
#define TRX_IRQ_DEFAULT TRX_IRQ_3_TRX_END |
Referenced by ed_scan_done(), set_trx_state(), tal_ed_start(), and trx_config().
typedef enum tal_state_tag tal_state_t |
TAL states.
enum tal_state_tag |
tal_trx_status_t set_trx_state | ( | trx_cmd_t | trx_cmd | ) |
Sets transceiver state.
trx_cmd | needs to be one of the trx commands |
References ANT_EXT_SW_DISABLE, ANT_EXT_SW_ENABLE, Assert, BUSY_RX, BUSY_RX_AACK, BUSY_TX, BUSY_TX_ARET, CMD_FORCE_PLL_ON, CMD_FORCE_TRX_OFF, CMD_PLL_ON, CMD_RX_AACK_ON, CMD_RX_ON, CMD_SLEEP, CMD_TRX_OFF, CMD_TX_ARET_ON, ENABLE_GLOBAL_IRQ, ENTER_CRITICAL_REGION, FUNC_PTR, LEAVE_CRITICAL_REGION, pal_timer_delay, pal_trx_irq_en, pal_trx_irq_flag_clr, PAL_WAIT_1_US, PLL_ON, RG_IRQ_MASK, RG_IRQ_STATUS, RG_TRX_STATE, RX_AACK_ON, RX_ON, SR_ANT_EXT_SW_EN, SR_IRQ_MASK, SR_TRX_STATUS, STATE_TRANSITION_IN_PROGRESS, switch_pll_on(), tal_awake_end_flag, tal_trx_status, trx_bit_read(), trx_bit_write(), TRX_IRQ_4_CCA_ED_DONE, trx_irq_awake_handler_cb(), TRX_IRQ_DEFAULT, trx_irq_handler_cb(), trx_irq_init(), TRX_OFF, TRX_OFF_TO_SLEEP_TIME_CLKM_CYCLES, trx_reg_read(), trx_reg_write(), TRX_SLEEP, TRX_SLP_TR_HIGH, TRX_SLP_TR_LOW, and TX_ARET_ON.
Referenced by ed_scan_done(), handle_received_frame_irq(), handle_tx_end_irq(), per_mode_initiator_init(), per_mode_receptor_tx_done_cb(), rx_on_test(), send_frame(), set_antenna_diversity_settings(), set_transceiver_state(), tal_ed_start(), tal_generate_rand_seed(), tal_pib_set(), tal_rx_enable(), tal_task(), tal_trx_sleep(), tal_trx_wakeup(), tfa_cca_perform(), tfa_continuous_tx_start(), tfa_ed_sample(), tfa_get_batmon_voltage(), and write_all_tal_pib_to_trx().
uint8_t last_frame_length |
Referenced by process_incoming_frame(), send_frame(), and tal_tx_frame().
frame_info_t* mac_frame_ptr |
Frame pointer for the frame structure provided by the MCL.
Referenced by handle_tx_end_irq(), tal_tx_frame(), and tx_done_handling().
volatile bool tal_awake_end_flag |
Referenced by set_trx_state(), and trx_irq_awake_handler_cb().
uint8_t* tal_frame_to_tx |
Pointer to the 15.4 frame created by the TAL to be handed over to the transceiver.
Referenced by send_frame(), tal_tx_frame(), and tx_done_handling().
queue_t tal_incoming_frame_queue |
Queue that contains all frames that are uploaded from the trx, but have not be processed by the MCL yet.
Referenced by handle_received_frame_irq(), tal_init(), and tal_reset().
buffer_t* tal_rx_buffer |
Pointer to receive buffer that can be used to upload a frame from the trx.
Referenced by handle_received_frame_irq(), handle_tx_end_irq(), tal_init(), tal_pib_set(), and tal_rx_enable().
bool tal_rx_on_required |
Indicates if the transceiver needs to switch on its receiver by tal_task(), because it could not be switched on due to buffer shortage.
Referenced by handle_received_frame_irq(), handle_tx_end_irq(), internal_tal_reset(), tal_pib_set(), tal_rx_enable(), tal_task(), and tal_trx_sleep().
tal_state_t tal_state |
Current state of the TAL state machine.
Referenced by ed_scan_done(), handle_tx_end_irq(), internal_tal_reset(), send_frame(), tal_ed_start(), tal_pib_set(), tal_rx_enable(), tal_task(), tal_trx_sleep(), tal_tx_frame(), trx_ed_irq_handler_cb(), trx_irq_handler_cb(), and tx_done_handling().
tal_trx_status_t tal_trx_status |
Current state of the transceiver.
Referenced by set_trx_state(), tal_ed_start(), tal_pib_set(), tal_trx_sleep(), tal_trx_wakeup(), tfa_get_batmon_voltage(), trx_init(), and trx_reset().