The different operating states of the Transceiver are controlled by the TAL state machine.
Functions | |
tal_trx_status_t | set_trx_state (trx_cmd_t trx_cmd) |
Sets transceiver state. More... | |
static void | switch_pll_on (void) |
Switches the PLL on. More... | |
Variables | |
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... | |
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_init_awake(), PAL_WAIT_1_US, PLL_ON, RG_CSMA_SEED_0, RG_IRQ_MASK, RG_IRQ_STATUS, RG_TRX_STATE, RX_AACK_ON, RX_ON, SR_ANT_EXT_SW_EN, SR_CSMA_SEED_1, SR_TRX_STATUS, STATE_TRANSITION_IN_PROGRESS, switch_pll_on(), tal_awake_end_flag, tal_trx_status, trx_awake_handler_cb(), trx_bit_read, trx_bit_write, TRX_IRQ_AWAKE_ONLY, TRX_IRQ_DEFAULT, TRX_OFF, TRX_OFF_TO_SLEEP_TIME_CLKM_CYCLES, trx_reg_write, TRX_SLEEP, TRX_SLP_TR_HIGH, TRX_SLP_TR_LOW, and TX_ARET_ON.
Referenced by config_rpc_mode(), handle_tx_end_irq(), per_mode_initiator_init(), per_mode_receptor_tx_done_cb(), perform_cca_twice(), rx_on_test(), send_frame(), set_transceiver_state(), slotted_csma_state_handling(), tal_generate_rand_seed(), tal_pib_set(), tal_rx_enable(), tal_set_frequency(), tal_set_frequency_regs(), 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().
|
static |
Switches the PLL on.
References _BV, app_alert(), Assert, CMD_PLL_ON, pal_timer_delay(), PLL_LOCK, PLL_LOCK_ATTEMPTS, RG_IRQ_STATUS, RG_TRX_STATE, SR_TRX_STATUS, trx_bit_read, TRX_IRQ_PLL_LOCK, TRX_OFF, TRX_OFF_TO_PLL_ON_TIME_US, trx_reg_read, and trx_reg_write.
Referenced by set_trx_state().
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.
tal_state_t tal_state |
Current state of the TAL state machine.
tal_trx_status_t tal_trx_status |
Current state of the transceiver.