Microchip® Advanced Software Framework

trx_access.c File Reference
#include "board.h"
#include "spi.h"
#include "trx_access.h"
#include "delay.h"
#include "interrupt.h"
#include "conf_board.h"
#include "asf.h"

Functions

void AT86RFX_ISR (void)
 
void PhyReset (void)
 Resets the TRX radio. More...
 
void trx_aes_wrrd (uint8_t addr, uint8_t *idata, uint8_t length)
 Writes and reads data into/from SRAM of the transceiver. More...
 
uint8_t trx_bit_read (uint8_t addr, uint8_t mask, uint8_t pos)
 Subregister read. More...
 
void trx_bit_write (uint8_t reg_addr, uint8_t mask, uint8_t pos, uint8_t new_value)
 Subregister write. More...
 
void trx_frame_read (uint8_t *data, uint8_t length)
 Reads frame buffer of the transceiver. More...
 
void trx_frame_write (uint8_t *data, uint8_t length)
 Writes data into frame buffer of the transceiver. More...
 
void trx_irq_init (FUNC_PTR trx_irq_cb)
 
uint8_t trx_reg_read (uint8_t addr)
 Reads current value from a transceiver register. More...
 
void trx_reg_write (uint8_t addr, uint8_t data)
 Writes data into a transceiver register. More...
 
void trx_spi_disable (void)
 Disables the SPI interface for communication with the transceiver. More...
 
void trx_spi_enable (void)
 enables the SPI interface for communication with the transceiver More...
 
void trx_spi_init (void)
 Initializes the SPI interface for communication with the transceiver. More...
 
void trx_sram_read (uint8_t addr, uint8_t *data, uint8_t length)
 Reads data from SRAM of the transceiver. More...
 
void trx_sram_write (uint8_t addr, uint8_t *data, uint8_t length)
 Writes data into SRAM of the transceiver. More...
 

Variables

struct spi_config config
 
uint16_t dummy_read
 
static irq_handler_t irq_hdl_trx = NULL
 
struct spi_module master
 
struct spi_slave_inst slave
 
struct spi_slave_inst_config slave_dev_config
 

void AT86RFX_ISR ( void  )

Referenced by trx_spi_init().

struct spi_config config

Referenced by trx_spi_init().

irq_handler_t irq_hdl_trx = NULL
static

Referenced by trx_irq_init().

struct spi_slave_inst_config slave_dev_config

Referenced by trx_spi_init().