Microchip® Advanced Software Framework

atmegarfr2/inc/tal_irq_handler.h File Reference

Macros

#define pal_trx_irq_flag_clr_awake()   (CLEAR_TRX_IRQ_AWAKE())
 Clears the transceiver AWAKE interrupt. More...
 
#define pal_trx_irq_flag_clr_cca_ed()   (CLEAR_TRX_IRQ_CCA_ED())
 Clears the transceiver CCA_ED_END interrupt. More...
 
#define pal_trx_irq_flag_clr_rx_end()   (CLEAR_TRX_IRQ_RX_END())
 Clears the transceiver RX_END interrupt. More...
 
#define pal_trx_irq_flag_clr_tx_end()   (CLEAR_TRX_IRQ_TX_END())
 Clears the transceiver TX_END interrupt. More...
 

Typedefs

typedef void(* irq_handler_t )(void)
 

Functions

void pal_trx_irq_init_awake (FUNC_PTR trx_irq_cb)
 Initializes the transceiver AWAKE interrupt. More...
 
void pal_trx_irq_init_cca_ed (FUNC_PTR trx_irq_cb)
 Initializes the transceiver CCA ED END interrupt. More...
 
void pal_trx_irq_init_rx_end (FUNC_PTR trx_irq_cb)
 Initializes the transceiver RX END interrupt. More...
 
void pal_trx_irq_init_tx_end (FUNC_PTR trx_irq_cb)
 Initializes the transceiver TX END interrupt. More...
 
void trx_awake_handler_cb (void)
 
void trx_irq_timestamp_handler_cb (void)
 Timestamp interrupt handler. More...
 
void trx_rx_end_handler_cb (void)
 Transceiver interrupt handler. More...
 
void trx_tx_end_handler_cb (void)
 Transceiver interrupt handler. More...
 

Variables

uint32_t pal_tx_timestamp
 Timestamp of the last frame transmission (including auto-ACK) More...
 

#define pal_trx_irq_flag_clr_awake ( )    (CLEAR_TRX_IRQ_AWAKE())

Clears the transceiver AWAKE interrupt.

Referenced by tal_reset().

#define pal_trx_irq_flag_clr_cca_ed ( )    (CLEAR_TRX_IRQ_CCA_ED())

Clears the transceiver CCA_ED_END interrupt.

#define pal_trx_irq_flag_clr_rx_end ( )    (CLEAR_TRX_IRQ_RX_END())

Clears the transceiver RX_END interrupt.

Referenced by tal_reset(), and tfa_get_batmon_voltage().

#define pal_trx_irq_flag_clr_tx_end ( )    (CLEAR_TRX_IRQ_TX_END())

Clears the transceiver TX_END interrupt.

Referenced by handle_received_frame_irq(), tal_reset(), and tfa_get_batmon_voltage().

typedef void(* irq_handler_t)(void)

void pal_trx_irq_init_awake ( FUNC_PTR  trx_irq_cb)

Initializes the transceiver AWAKE interrupt.

This function sets the microcontroller specific registers responsible for handling the transceiver AWAKE interrupt

Parameters
trx_irq_cbCallback function for the transceiver AWAKE interrupt
void pal_trx_irq_init_cca_ed ( FUNC_PTR  trx_irq_cb)

Initializes the transceiver CCA ED END interrupt.

This function sets the microcontroller specific registers responsible for handling the transceiver CCA ED END interrupt

Parameters
trx_irq_cbCallback function for the transceiver CCA ED END interrupt
void pal_trx_irq_init_rx_end ( FUNC_PTR  trx_irq_cb)

Initializes the transceiver RX END interrupt.

This function sets the microcontroller specific registers responsible for handling the transceiver RX END interrupt

Parameters
trx_irq_cbCallback function for the transceiver RX END interrupt
void pal_trx_irq_init_tx_end ( FUNC_PTR  trx_irq_cb)

Initializes the transceiver TX END interrupt.

This function sets the microcontroller specific registers responsible for handling the transceiver TX END interrupt

Parameters
trx_irq_cbCallback function for the transceiver TX END interrupt

uint32_t pal_tx_timestamp

Timestamp of the last frame transmission (including auto-ACK)

Referenced by ISR(), and tx_done_handling().