Microchip® Advanced Software Framework

atmegarfa1/src/tal_irq_handler.c File Reference
#include <stdint.h>
#include <stdbool.h>
#include <stddef.h>
#include "return_val.h"
#include "tal.h"
#include "ieee_const.h"
#include "stack_config.h"
#include "bmm.h"
#include "qmm.h"
#include "tal_irq_handler.h"
#include "tal_rx.h"
#include "atmega128rfa1.h"
#include "tal_internal.h"
#include "tal_constants.h"
#include "tal_tx.h"
#include "mac_build_config.h"

Functions

 ISR (TRX24_TX_END_vect)
 ISR for transceiver's transmit end interrupt. More...
 
 ISR (TRX24_RX_END_vect)
 ISR for transceiver's receive end interrupt. More...
 
 ISR (TRX24_CCA_ED_DONE_vect)
 ISR for transceiver's CCA/ED measurement done interrupt. More...
 
 ISR (TRX24_AWAKE_vect)
 ISR for transceiver's Awake interrupt. More...
 
 ISR (TRX24_RX_START_vect)
 ISR for transceiver's rx start interrupt. More...
 
 ISR (TRX24_PLL_LOCK_vect)
 ISR for transceiver's PLL lock interrupt. More...
 
 ISR (TRX24_PLL_UNLOCK_vect)
 ISR for transceiver's PLL unlock interrupt. More...
 
 ISR (TRX24_XAH_AMI_vect)
 ISR for transceiver's address match interrupt. More...
 
 ISR (BAT_LOW_vect)
 ISR for transceiver's battery low interrupt. More...
 
 ISR (AES_READY_vect)
 ISR for transceiver's AES interrupt. More...
 
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_tstamp (FUNC_PTR trx_irq_cb)
 Initializes the transceiver timestamp 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

static irq_handler_t irq_hdl_trx_awake
 Function pointer to store callback for transceiver AWAKE interrupt. More...
 
static irq_handler_t irq_hdl_trx_cca_ed
 Function pointer to store callback for transceiver CCA_ED interrupt. More...
 
static irq_handler_t irq_hdl_trx_rx_end
 Function pointer to store callback for transceiver RX_END interrupt. More...
 
static irq_handler_t irq_hdl_trx_tstamp
 Function pointer to store callback for transceiver timestamp (RX_START) interrupt. More...
 
static irq_handler_t irq_hdl_trx_tx_end
 Function pointer to store callback for transceiver TX_END interrupt. More...
 

ISR ( TRX24_TX_END_vect  )

ISR for transceiver's transmit end interrupt.

References irq_hdl_trx_tx_end.

ISR ( TRX24_RX_END_vect  )

ISR for transceiver's receive end interrupt.

References irq_hdl_trx_rx_end.

ISR ( TRX24_CCA_ED_DONE_vect  )

ISR for transceiver's CCA/ED measurement done interrupt.

References irq_hdl_trx_cca_ed.

ISR ( TRX24_AWAKE_vect  )

ISR for transceiver's Awake interrupt.

References irq_hdl_trx_awake.

ISR ( TRX24_RX_START_vect  )

ISR for transceiver's rx start interrupt.

By the time the SFD is detected, the hardware timestamps the current frame in the SCTSR register.

References irq_hdl_trx_tstamp.

ISR ( TRX24_PLL_LOCK_vect  )

ISR for transceiver's PLL lock interrupt.

References irq_hdl_trx_pll_lock.

ISR ( TRX24_PLL_UNLOCK_vect  )

ISR for transceiver's PLL unlock interrupt.

References irq_hdl_trx_pll_unlock.

ISR ( TRX24_XAH_AMI_vect  )

ISR for transceiver's address match interrupt.

References irq_hdl_trx_ami.

ISR ( BAT_LOW_vect  )

ISR for transceiver's battery low interrupt.

References irq_hdl_trx_batmon.

ISR ( AES_READY_vect  )

ISR for transceiver's AES interrupt.

References irq_hdl_trx_aes_ready.

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

References irq_hdl_trx_awake.

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

References irq_hdl_trx_cca_ed.

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

References irq_hdl_trx_rx_end.

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

References irq_hdl_trx_tx_end.

irq_handler_t irq_hdl_trx_awake
static

Function pointer to store callback for transceiver AWAKE interrupt.

Referenced by ISR(), and pal_trx_irq_init_awake().

irq_handler_t irq_hdl_trx_cca_ed
static

Function pointer to store callback for transceiver CCA_ED interrupt.

Referenced by ISR(), and pal_trx_irq_init_cca_ed().

irq_handler_t irq_hdl_trx_rx_end
static

Function pointer to store callback for transceiver RX_END interrupt.

Referenced by ISR(), and pal_trx_irq_init_rx_end().

irq_handler_t irq_hdl_trx_tstamp
static

Function pointer to store callback for transceiver timestamp (RX_START) interrupt.

Referenced by ISR(), and pal_trx_irq_init_tstamp().

irq_handler_t irq_hdl_trx_tx_end
static

Function pointer to store callback for transceiver TX_END interrupt.

Referenced by ISR(), and pal_trx_irq_init_tx_end().