Microcontroller Wireless Solutions


pal_irq.c File Reference

PAL IRQ functionality. More...

Go to the source code of this file.

Functions

 ISR (TRX24_TX_END_vect)
 ISR (TRX24_PLL_LOCK_vect)
 ISR (TRX24_PLL_UNLOCK_vect)
 ISR (TRX24_XAH_AMI_vect)
 ISR (BAT_LOW_vect)
 ISR (AES_READY_vect)
 ISR (WDT_vect)
 ISR (TRX24_RX_START_vect)
 ISR (TRX24_RX_END_vect)
 ISR (TRX24_CCA_ED_DONE_vect)
 ISR (TRX24_AWAKE_vect)
void pal_trx_irq_init_aes_ready (FUNC_PTR trx_irq_cb)
void pal_trx_irq_init_ami (FUNC_PTR trx_irq_cb)
void pal_trx_irq_init_awake (FUNC_PTR trx_irq_cb)
void pal_trx_irq_init_batmon (FUNC_PTR trx_irq_cb)
void pal_trx_irq_init_cca_ed (FUNC_PTR trx_irq_cb)
void pal_trx_irq_init_pll_lock (FUNC_PTR trx_irq_cb)
void pal_trx_irq_init_pll_unlock (FUNC_PTR trx_irq_cb)
void pal_trx_irq_init_rx_end (FUNC_PTR trx_irq_cb)
void pal_trx_irq_init_tstamp (FUNC_PTR trx_irq_cb)
void pal_trx_irq_init_tx_end (FUNC_PTR trx_irq_cb)

Variables

static irq_handler_t irq_hdl_trx_aes_ready
static irq_handler_t irq_hdl_trx_ami
static irq_handler_t irq_hdl_trx_awake
static irq_handler_t irq_hdl_trx_batmon
static irq_handler_t irq_hdl_trx_cca_ed
static irq_handler_t irq_hdl_trx_pll_lock
static irq_handler_t irq_hdl_trx_pll_unlock
static irq_handler_t irq_hdl_trx_rx_end
static irq_handler_t irq_hdl_trx_tstamp
static irq_handler_t irq_hdl_trx_tx_end

Detailed Description

PAL IRQ functionality.

This file contains functions to initialize, enable, disable and install handler for the transceiver interrupts. It also contains functions to enable, disable and get the status of global interrupt

Id:
pal_irq.c 29716 2011-12-08 17:11:01Z uwalter
Author:
Atmel Corporation: http://www.atmel.com
Support email: avr@atmel.com

Definition in file pal_irq.c.


Function Documentation

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.

Definition at line 263 of file pal_irq.c.

References irq_hdl_trx_tstamp.

void pal_trx_irq_init_aes_ready ( FUNC_PTR  trx_irq_cb)

Initializes the transceiver AES_READY interrupt.

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

Parameters:
trx_irq_cbCallback function for the transceiver AES_READY interrupt

Definition at line 216 of file pal_irq.c.

References irq_hdl_trx_aes_ready.

void pal_trx_irq_init_ami ( FUNC_PTR  trx_irq_cb)

Initializes the transceiver AMI interrupt.

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

Parameters:
trx_irq_cbCallback function for the transceiver AMI interrupt

Definition at line 160 of file pal_irq.c.

References irq_hdl_trx_ami.

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

Definition at line 146 of file pal_irq.c.

References irq_hdl_trx_awake.

void pal_trx_irq_init_batmon ( FUNC_PTR  trx_irq_cb)

Initializes the transceiver BATMON interrupt.

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

Parameters:
trx_irq_cbCallback function for the transceiver BATMON interrupt

Definition at line 174 of file pal_irq.c.

References irq_hdl_trx_batmon.

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

Definition at line 114 of file pal_irq.c.

References irq_hdl_trx_cca_ed.

void pal_trx_irq_init_pll_lock ( FUNC_PTR  trx_irq_cb)

Initializes the transceiver PLL_LOCK interrupt.

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

Parameters:
trx_irq_cbCallback function for the transceiver PLL_LOCK interrupt

Definition at line 188 of file pal_irq.c.

References irq_hdl_trx_pll_lock.

void pal_trx_irq_init_pll_unlock ( FUNC_PTR  trx_irq_cb)

Initializes the transceiver PLL_UNLOCK interrupt.

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

Parameters:
trx_irq_cbCallback function for the transceiver PLL_UNLOCK interrupt

Definition at line 202 of file pal_irq.c.

References irq_hdl_trx_pll_unlock.

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

Definition at line 100 of file pal_irq.c.

References irq_hdl_trx_rx_end.

void pal_trx_irq_init_tstamp ( FUNC_PTR  trx_irq_cb)

Initializes the transceiver timestamp interrupt (RX START interrupt)

Initializes the transceiver timestamp interrupt.

This function sets the microcontroller specific registers responsible for handling the transceiver timestamp interrupt (RX START interrupt)

Parameters:
trx_irq_cbCallback function for the transceiver timestamp interrupt (RX START interrupt)

Definition at line 130 of file pal_irq.c.

References irq_hdl_trx_tstamp.

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

Definition at line 86 of file pal_irq.c.

References irq_hdl_trx_tx_end.


Variable Documentation

Function pointer to store callback for transceiver AES_READY interrupt.

Definition at line 70 of file pal_irq.c.

Referenced by ISR(), and pal_trx_irq_init_aes_ready().

Function pointer to store callback for transceiver AMI interrupt.

Definition at line 62 of file pal_irq.c.

Referenced by ISR(), and pal_trx_irq_init_ami().

Function pointer to store callback for transceiver AWAKE interrupt.

Definition at line 60 of file pal_irq.c.

Referenced by ISR(), and pal_trx_irq_init_awake().

Function pointer to store callback for transceiver BATMON interrupt.

Definition at line 64 of file pal_irq.c.

Referenced by ISR(), and pal_trx_irq_init_batmon().

Function pointer to store callback for transceiver CCA_ED interrupt.

Definition at line 51 of file pal_irq.c.

Referenced by ISR(), and pal_trx_irq_init_cca_ed().

Function pointer to store callback for transceiver PLL_LOCK interrupt.

Definition at line 66 of file pal_irq.c.

Referenced by ISR(), and pal_trx_irq_init_pll_lock().

Function pointer to store callback for transceiver PLL_UNLOCK interrupt.

Definition at line 68 of file pal_irq.c.

Referenced by ISR(), and pal_trx_irq_init_pll_unlock().

Function pointer to store callback for transceiver RX_END interrupt.

Definition at line 49 of file pal_irq.c.

Referenced by ISR(), and pal_trx_irq_init_rx_end().

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

Definition at line 55 of file pal_irq.c.

Referenced by ISR(), and pal_trx_irq_init_tstamp().

Function pointer to store callback for transceiver TX_END interrupt.

Definition at line 47 of file pal_irq.c.

Referenced by ISR(), and pal_trx_irq_init_tx_end().