Microchip® Advanced Software Framework

 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Accessing AT86RF212 Transceiver

Functions

void handle_tal_state (void)
 Handles the transceiver state. More...
 
trx_retval_t tal_init (void)
 Initializes the TAL. More...
 
void trx_irq_handler_cb (void)
 Transceiver interrupt handler. More...
 
void tx_frame_config (void)
 Configures the transceiver for frame transmission. More...
 

void handle_tal_state ( void  )

Handles the transceiver state.

References Assert, TAL_IDLE, tal_state, TAL_TX_AUTO, TAL_TX_END, and tx_end_handling().

Referenced by at86rfx_task().

trx_retval_t tal_init ( void  )

Initializes the TAL.

This function is called to initialize the TAL. The transceiver is initialized and the TAL state is set to TAL_IDLE state.

Returns
TRX_SUCCESS if the transceiver state is changed to TRX_OFF and the current device part number and version number are correct; TRX_FAILURE otherwise

References CCA_MODE_DEFAULT, internal_tal_reset(), MAX_CSMA_BACKOFFS_DEFAULT, MAXBE_DEFAULT, MINBE_DEFAULT, pal_trx_bit_write(), pal_trx_reg_write(), PROM_MODE_ENABLE, RG_CSMA_BE, SR_AACK_PROM_MODE, SR_CCA_MODE, SR_MAX_CSMA_RETRIES, SR_TX_AUTO_CRC_ON, TRX_FAILURE, trx_init(), TRX_SUCCESS, and TX_AUTO_CRC_ENABLE.

Referenced by at86rfx_init().

void trx_irq_handler_cb ( void  )

Transceiver interrupt handler.

This function handles the transceiver generated interrupts.

References handle_received_frame_irq(), handle_tx_end_irq(), pal_trx_reg_read(), RG_IRQ_STATUS, tal_state, TAL_TX_AUTO, and TRX_IRQ_TRX_END.

Referenced by ISR().

void tx_frame_config ( void  )

Configures the transceiver for frame transmission.

References CMD_PLL_ON, PLL_ON, set_trx_state(), SLP_TR_HIGH, SLP_TR_LOW, tal_state, TAL_TX_AUTO, and WAIT_65_NS.

Referenced by at86rfx_tx_frame().