Data Structures | Defines | Typedefs | Enumerations | Functions
radio.h File Reference

Interface for Radio Functions. More...

Go to the source code of this file.

## Data Structures
union | radio_param_t
| Container for handover of radio parameter values. More...
struct | radio_status_t
| Structure for storage of radio parameters. More...
## Defines
#define | CRC_CCITT_UPDATE(crc, data) _crc_ccitt_update(crc, data)
#define | RADIO_CFG_DATA {chan: 16, txp: 0, cca: 1, edt: 11, clkm: 0, crc: 0xab12}
#define | RADIO_CFG_EEOFFSET (8)
#define | RP_CCAMODE(x)
#define | RP_CHANNEL(x)
#define | RP_DATARATE(x)
#define | RP_IDLESTATE(x)
#define | RP_LONGADDR(x)
#define | RP_PANID(x)
#define | RP_RX_LNA(x)
#define | RP_SHORTADDR(x)
#define | RP_TXPWR(x)
#define | STATE_OFF (0)
#define | STATE_RX (2)
#define | STATE_RXAUTO (4)
#define | STATE_SLEEP (5)
#define | STATE_TX (1)
#define | STATE_TXAUTO (3)
#define | VOID_RSSI (0xff)
## Typedefs
typedef uint8_t | radio_state_t
## Enumerations
enum | radio_attribute_t { phyCurrentChannel, phyChannelsSupported, phyTransmitPower, phyIdleState, phyCCAMode, phyPanId, phyShortAddr, phyLongAddr, phyDataRate, phyTxPa, phyRxLna }
enum | radio_cca_t { RADIO_CCA_FREE = 0, RADIO_CCA_BUSY, RADIO_CCA_FAIL }
enum | radio_error_t { SUCCESS = 0, STATE_SET_FAILED = 1, SET_PARM_FAILED, GET_PARM_FAILED, GENERAL_ERROR }
| Error codes. More...
enum | radio_tx_done_t { TX_OK, TX_CCA_FAIL, TX_NO_ACK, TX_FAIL }
## Functions
radio_cca_t | radio_do_cca (void)
| Perform CCA Measure.
void | radio_force_state (radio_state_t state)
| Force the radio to the requested state. (using CMD_FORCE_TRX_OFF)
int | radio_getchar (void)
void | radio_init (uint8_t *rxbuf, uint8_t rxbufsz)
| Radio related ressource initialization.
int | radio_putchar (int c)
void | radio_send_frame (uint8_t len, uint8_t *frm, uint8_t compcrc)
| Frame transmission.
void | radio_set_param (radio_attribute_t attr, radio_param_t parm)
| Set a radio parameter.
void | radio_set_state (radio_state_t state)
| Bring the the radio in the requested state.
void | usr_radio_error (radio_error_t err)
| Callback for errors in radio module functions.
void | usr_radio_irq (uint8_t cause)
uint8_t * | usr_radio_receive_frame (uint8_t len, uint8_t *frm, uint8_t lqi, int8_t ed, uint8_t crc_fail)
| Frame reception callback function.
void | usr_radio_tx_done (radio_tx_done_t status)
| Callback function for TX_END IRQ.

## Detailed Description

Interface for Radio Functions.