Detailed Description

Functions

int at86rf215_configure_legacy_OQPSK (at86rf215_t *dev, bool high_rate)
 Configure the radio to make use of O-QPSK modulation. More...
 
int at86rf215_configure_OQPSK (at86rf215_t *dev, uint8_t chips, uint8_t rate)
 Configure the radio to make use of O-QPSK modulation. More...
 
uint8_t at86rf215_OQPSK_get_chips (at86rf215_t *dev)
 Get the current O-QPSK chip rate. More...
 
int at86rf215_OQPSK_set_chips (at86rf215_t *dev, uint8_t chips)
 Set the current O-QPSK chip rate. More...
 
uint8_t at86rf215_OQPSK_get_mode (at86rf215_t *dev)
 Get the current O-QPSK rate mode. More...
 
int at86rf215_OQPSK_set_mode (at86rf215_t *dev, uint8_t mode)
 Set the current O-QPSK rate mode. More...
 
uint8_t at86rf215_OQPSK_get_mode_legacy (at86rf215_t *dev)
 Get the current legacy O-QPSK mode. More...
 
int at86rf215_OQPSK_set_mode_legacy (at86rf215_t *dev, bool high_rate)
 Set the current legacy O-QPSK rate mode. More...
 
static bool at86rf215_OQPSK_is_legacy (at86rf215_t *dev)
 Test if O-QPSK PHY operates in legacy mode. More...
 

Function Documentation

◆ at86rf215_configure_legacy_OQPSK()

int at86rf215_configure_legacy_OQPSK ( at86rf215_t dev,
bool  high_rate 
)

Configure the radio to make use of O-QPSK modulation.

The rate mode may be

  • 0 for compatibility with first-gen 802.15.4 devices (250 kbit/s)
  • 1 for compatibility with the proprietary high-data rate modes of at86rf2xx
Parameters
[in]devdevice to configure
[in]high_rateuse proprietary high data rate compatible with at86rf2xx
Returns
0 on success, error otherwise

◆ at86rf215_configure_OQPSK()

int at86rf215_configure_OQPSK ( at86rf215_t dev,
uint8_t  chips,
uint8_t  rate 
)

Configure the radio to make use of O-QPSK modulation.

The chip rate is the number of bits per second (chips per second) used in the spreading signal. The rate mode may be

Parameters
[in]devdevice to configure
[in]chipschip rate, BB_FCHIP100BB_FCHIP2000
[in]raterate mode, may be AT86RF215_OQPSK_MODE_LEGACY or AT86RF215_MR_OQPSK_MODE
Returns
0 on success, error otherwise

◆ at86rf215_OQPSK_get_chips()

uint8_t at86rf215_OQPSK_get_chips ( at86rf215_t dev)

Get the current O-QPSK chip rate.

Parameters
[in]devdevice to read from
Returns
the current chip rate

◆ at86rf215_OQPSK_get_mode()

uint8_t at86rf215_OQPSK_get_mode ( at86rf215_t dev)

Get the current O-QPSK rate mode.

Parameters
[in]devdevice to read from
Returns
the current rate mode

◆ at86rf215_OQPSK_get_mode_legacy()

uint8_t at86rf215_OQPSK_get_mode_legacy ( at86rf215_t dev)

Get the current legacy O-QPSK mode.

Parameters
[in]devdevice to read from
Returns
0 for IEEE 802.15.4 mode, 1 for high data rate

◆ at86rf215_OQPSK_is_legacy()

static bool at86rf215_OQPSK_is_legacy ( at86rf215_t dev)
inlinestatic

Test if O-QPSK PHY operates in legacy mode.

Parameters
[in]devdevice to test
Returns
true if device operates in legacy mode

Definition at line 454 of file at86rf215_internal.h.

◆ at86rf215_OQPSK_set_chips()

int at86rf215_OQPSK_set_chips ( at86rf215_t dev,
uint8_t  chips 
)

Set the current O-QPSK chip rate.

Parameters
[in]devdevice to configure
[in]chipschip rate in chip/s
Returns
0 on success, error otherwise

◆ at86rf215_OQPSK_set_mode()

int at86rf215_OQPSK_set_mode ( at86rf215_t dev,
uint8_t  mode 
)

Set the current O-QPSK rate mode.

Parameters
[in]devdevice to configure
[in]moderate mode
Returns
0 on success, error otherwise

◆ at86rf215_OQPSK_set_mode_legacy()

int at86rf215_OQPSK_set_mode_legacy ( at86rf215_t dev,
bool  high_rate 
)

Set the current legacy O-QPSK rate mode.

Parameters
[in]devdevice to configure
[in]high_rateset to use proprietary high data rate
Returns
0 on success, error otherwise