Internal functions of the CC110x transceiver driver. More...

Detailed Description

Internal functions of the CC110x transceiver driver.

Author
Marian Buschsieweke maria.nosp@m.n.bu.nosp@m.schsi.nosp@m.ewek.nosp@m.e@ovg.nosp@m.u.de

Definition in file cc110x_internal.h.

#include "cc110x_calibration.h"
#include "cc110x_communication.h"
#include "cc110x_constants.h"
#include "cc110x_netdev.h"
#include "cc110x_rx_tx.h"
#include "cc110x_settings.h"
+ Include dependency graph for cc110x_internal.h:

Go to the source code of this file.

static cc110x_state_t cc110x_state_from_status (uint8_t status)
 Extract the device state from the status register value. More...
 
static int cc110x_is_ready_from_status (uint8_t status)
 Figure out of the transceiver is ready or still powering up. More...
 

Function Documentation

◆ cc110x_is_ready_from_status()

static int cc110x_is_ready_from_status ( uint8_t  status)
inlinestatic

Figure out of the transceiver is ready or still powering up.

Parameters
statusContents of the CC110x's status register
Return values
1Transceiver is ready
0NOT ready, still powering up
See also
cc110x_state_from_status

Definition at line 72 of file cc110x_internal.h.

◆ cc110x_state_from_status()

static cc110x_state_t cc110x_state_from_status ( uint8_t  status)
inlinestatic

Extract the device state from the status register value.

Parameters
statusContents of the CC110x's status register
Returns
The state encoded in status

The status register contains the device state at the bits 1 - 3

Format of the status byte
0 1 2 3 4 5 6 7
+-+-+-+-+-+-+-+-+
|R|STATE| FIFO |
+-+-+-+-+-+-+-+-+
R = Chip Ready bit (0 = ready, 1 = power and crystal are not yet stable)
STATE = The device state
FIFO = Number of bytes available in RX FIFO or (in TX mode) number of free
bytes

Note: The FIFO has a size of 64 bytes. If more than 15 bytes are available for reading in the FIFO (or more than 15 bytes can be written in TX), the value will still show 15. This driver never uses this information, but accesses a dedicated register for that.

Definition at line 59 of file cc110x_internal.h.