cc110x-internal.h¶
Data structures and variables for the cc110x driver interface.
-
CC110X_RXBUF_SIZE¶ 1
(2)
-
CC110X_FIFO_LENGTH¶ 1
(64)
-
CC110X_MAX_DATA_LENGTH¶ 1
(58+64)
-
CC110X_HEADER_LENGTH¶ Header covers SRC, DST and FLAGS.
1
(3)
-
CC110X_BROADCAST_ADDRESS¶ CC110X broadcast address.
1
(0x00)
-
MIN_UID¶ Minimum UID of a node is 1.
1
(0x01)
-
MAX_UID¶ Maximum UID of a node is 255.
1
(0xFF)
-
MIN_CHANNR¶ Minimum channel number.
1
(0)
-
MAX_CHANNR¶ Maximum channel number.
1
(24)
-
CC110X_PACKET_LENGTH¶ max packet length = 255b
1
(0xFF)
-
CC110X_SYNC_WORD_TX_TIME¶ loop count (max.
1
(90000)
timeout ~15ms) to wait for sync word to be transmitted (GDO2 from low to high)
-
RESET_WAIT_TIME¶ Reset wait time (in reset procedure)
1
(610)
-
IDLE_TO_RX_TIME¶ Time chip needs to go to RX.
1
(122)
-
CS_SO_WAIT_TIME¶ Time to wait for SO to go low after CS.
1
(488)
-
CC110X_GDO1_LOW_RETRY¶ Max.
1
(100)
retries for SO to go low after CS
-
CC110X_DEFAULT_CHANNEL¶ The default channel number.
1
(0)
-
CC110X_MIN_CHANNR¶ lowest possible channel number
1
(0)
-
CC110X_MAX_CHANNR¶ highest possible channel number
1
(0)
-
enum
@93¶ - RADIO_UNKNOWN
- RADIO_IDLE
- RADIO_TX_BUSY
- RADIO_RX
- RADIO_RX_BUSY
- RADIO_PWD
-
enum
cc110x_radio_mode¶ - RADIO_MODE_GET
= -1 - leave mode unchanged
- RADIO_MODE_OFF
= 0 - turn radio off
- RADIO_MODE_ON
= 1 - turn radio on
- RADIO_MODE_GET
-
struct cc110x_statistic
cc110x_statistic_t¶ Statistic interface for debugging.
-
struct
cc110x_pkt_t¶ CC110X layer 0 protocol.
Notes:
- length & address are given by CC110X
- Identification is increased is used to scan duplicates. It must be increased for each new packet and kept for packet retransmissions.
-
uint8_t
length¶ Length of the packet (without length byte)
-
uint8_t
address¶ Destination address.
-
uint8_t
phy_src¶ Source address (physical source)
-
uint8_t
flags¶ Flags.
-
uint8_t
data()¶ Data (high layer protocol)
-
struct
cc110x_pkt_buf_t¶ struct holding cc110x packet + metadata
-
uint8_t
rssi¶ RSSI value.
-
uint8_t
lqi¶ link quality indicator
-
uint8_t
pos¶ I have no clue.
-
cc110x_pkt_t
packet¶ whole packet
-
uint8_t
-
struct
cc110x_reg_t¶ CC110x register configuration.
-
struct
cc110x_cfg_t¶ CC110x radio configuration.
-
cc110x_reg_t
reg_cfg¶ CC110X register configuration.
-
uint8_t
pa_power¶ Output power setting.
-
cc110x_reg_t
-
struct
cc110x_flags_t¶ Radio Control Flags.