Interface definition for MRF24J40 based drivers.
- Author
- Neo Nenaco neo@n.nosp@m.enac.nosp@m.o.de
-
Koen Zandberg koen@.nosp@m.berg.nosp@m.zand..nosp@m.net
Definition in file mrf24j40.h.
|
void | mrf24j40_setup (mrf24j40_t *dev, const mrf24j40_params_t *params, uint8_t index) |
| Setup an MRF24J40 based device state. More...
|
|
int | mrf24j40_reset (mrf24j40_t *dev) |
| Trigger a hardware reset and configure radio with default values. More...
|
|
bool | mrf24j40_cca (mrf24j40_t *dev, int8_t *rssi) |
| Trigger a clear channel assessment & retrieve RSSI. More...
|
|
uint16_t | mrf24j40_get_addr_short (mrf24j40_t *dev) |
| Get the short address of the given device. More...
|
|
void | mrf24j40_set_addr_short (mrf24j40_t *dev, uint16_t addr) |
| Set the short address of the given device. More...
|
|
void | mrf24j40_get_addr_long (mrf24j40_t *dev, uint8_t *addr) |
| Get the configured long address of the given device. More...
|
|
void | mrf24j40_set_addr_long (mrf24j40_t *dev, const uint8_t *addr) |
| Set the long address of the given device. More...
|
|
uint8_t | mrf24j40_get_chan (mrf24j40_t *dev) |
| Get the configured channel number of the given device. More...
|
|
void | mrf24j40_set_chan (mrf24j40_t *dev, uint8_t chan) |
| Set the channel number of the given device. More...
|
|
uint16_t | mrf24j40_get_pan (mrf24j40_t *dev) |
| Get the configured PAN ID of the given device. More...
|
|
void | mrf24j40_set_pan (mrf24j40_t *dev, uint16_t pan) |
| Set the PAN ID of the given device. More...
|
|
int16_t | mrf24j40_get_txpower (mrf24j40_t *dev) |
| Get the configured transmission power of the given device [in dBm]. More...
|
|
void | mrf24j40_set_txpower (mrf24j40_t *dev, int16_t txpower) |
| Set the transmission power of the given device [in dBm]. More...
|
|
uint8_t | mrf24j40_get_csma_max_retries (mrf24j40_t *dev) |
| Get the maximum number of channel access attempts per frame (CSMA) More...
|
|
void | mrf24j40_set_csma_max_retries (mrf24j40_t *dev, int8_t retries) |
| Set the maximum number of channel access attempts per frame (CSMA) More...
|
|
void | mrf24j40_set_csma_backoff_exp (mrf24j40_t *dev, uint8_t min, uint8_t max) |
| Set the min and max backoff exponent for CSMA/CA. More...
|
|
int8_t | mrf24j40_get_cca_threshold (mrf24j40_t *dev) |
| Get the CCA threshold value. More...
|
|
void | mrf24j40_set_cca_threshold (mrf24j40_t *dev, int8_t value) |
| Set the CCA threshold value. More...
|
|
void | mrf24j40_set_option (mrf24j40_t *dev, uint16_t option, bool state) |
| Enable or disable driver specific options. More...
|
|
void | mrf24j40_set_state (mrf24j40_t *dev, uint8_t state) |
| Set the state of the given device (trigger a state change) More...
|
|
void | mrf24j40_set_turbo (mrf24j40_t *dev, bool enable) |
| Enable or disable proprietary Turbo Mode. More...
|
|
bool | mrf24j40_get_turbo (mrf24j40_t *dev) |
| Query the state of the turbo mode. More...
|
|
void | mrf24j40_sleep (mrf24j40_t *dev) |
| Put in sleep mode. More...
|
|
void | mrf24j40_assert_sleep (mrf24j40_t *dev) |
| Put in sleep mode if idle_state is sleep. More...
|
|
void | mrf24j40_assert_awake (mrf24j40_t *dev) |
| Wake up from sleep mode. More...
|
|
void | mrf24j40_reset_state_machine (mrf24j40_t *dev) |
| Reset the internal state machine to TRX_OFF mode. More...
|
|
void | mrf24j40_software_reset (mrf24j40_t *dev) |
| Software Reset. More...
|
|
int8_t | mrf24j40_dbm_from_reg (uint8_t value) |
| Convert scalar from mrf24j40 RSSI to dBm. More...
|
|
void | mrf24j40_tx_prepare (mrf24j40_t *dev) |
| Prepare for sending of data. More...
|
|
size_t | mrf24j40_tx_load (mrf24j40_t *dev, uint8_t *data, size_t len, size_t offset) |
| Load chunks of data into the transmit buffer of the given device. More...
|
|
void | mrf24j40_tx_exec (mrf24j40_t *dev) |
| Trigger sending of data previously loaded into transmit buffer. More...
|
|