|
void | cc2420_setup (cc2420_t *dev, const cc2420_params_t *params) |
| Setup the device descriptor for the given device. More...
|
|
int | cc2420_init (cc2420_t *dev) |
| Initialize a given CC2420 device. More...
|
|
int | cc2420_reset (cc2420_t *dev) |
| Trigger a hardware reset and configure radio with default values. More...
|
|
bool | cc2420_cca (cc2420_t *dev) |
| Trigger a clear channel assessment. More...
|
|
void | cc2420_get_addr_short (cc2420_t *dev, uint8_t *addr) |
| Get the short address of the given device. More...
|
|
void | cc2420_set_addr_short (cc2420_t *dev, const uint8_t *addr) |
| Set the short address of the given device. More...
|
|
void | cc2420_get_addr_long (cc2420_t *dev, uint8_t *addr_long) |
| Get the configured long address of the given device. More...
|
|
void | cc2420_set_addr_long (cc2420_t *dev, const uint8_t *addr_long) |
| Set the long address of the given device. More...
|
|
uint16_t | cc2420_get_pan (cc2420_t *dev) |
| Get the configured PAN ID of the given device. More...
|
|
void | cc2420_set_pan (cc2420_t *dev, uint16_t pan) |
| Set the PAN ID of the given device. More...
|
|
uint16_t | cc2420_get_chan (cc2420_t *dev) |
| Get the configured channel of the given device. More...
|
|
int | cc2420_set_chan (cc2420_t *dev, uint16_t chan) |
| Set the channel of the given device. More...
|
|
int16_t | cc2420_get_txpower (cc2420_t *dev) |
| Get the configured transmission power of the given device [in dBm]. More...
|
|
void | cc2420_set_txpower (cc2420_t *dev, int16_t txpower) |
| Set the transmission power of the given device [in dBm]. More...
|
|
int | cc2420_set_option (cc2420_t *dev, uint16_t option, bool state) |
| Enable or disable driver specific options. More...
|
|
int | cc2420_set_state (cc2420_t *dev, netopt_state_t state) |
| Set the state of the given device (trigger a state change) More...
|
|
netopt_state_t | cc2420_get_state (cc2420_t *dev) |
| Get the state of the given device. More...
|
|
size_t | cc2420_send (cc2420_t *dev, const iolist_t *iolist) |
| Convenience function for simply sending data. More...
|
|
size_t | cc2420_tx_prepare (cc2420_t *dev, const iolist_t *iolist) |
| Prepare for sending of data. More...
|
|
void | cc2420_tx_exec (cc2420_t *dev) |
| Trigger sending of data previously loaded into transmit buffer. More...
|
|
int | cc2420_rx (cc2420_t *dev, uint8_t *buf, size_t max_len, void *info) |
| Read a chunk of data from the receive buffer of the given device. More...
|
|