CC1100/CC1101 radio driver¶
Driver for TI CC1100/CC1101 radios.
-
struct cc110x_params
cc110x_params_t
¶ Struct for holding cc110x IO parameters.
-
int
cc110x_setup
(cc110x.h::cc110x_t
* dev, constcc110x.h::cc110x_params_t
* params)¶ Setup cc110x device parameters.
Parameters
dev: device struct to set up params: struct holding parameters Return values
- always succeeds
-
int16_t
cc110x_set_channel
(cc110x.h::cc110x_t
* dev, uint8_t channr)¶ Set cc110x channel number.
Parameters
dev: device to work on channr: guess what Return values
- nr of set channel on success
- -1 on error
-
int
cc110x_send
(cc110x.h::cc110x_t
* dev, cc110x_pkt_t * packet)¶ Send raw cc110x packet.
Parameters
dev: Device to send on packet: ptr to packet to be sent Return values
- size of packet on success
- <0 on error
-
uint8_t
cc110x_get_address
(cc110x.h::cc110x_t
* dev)¶ Set cc110x radio address.
Parameters
dev: device to query Return values
- nr of currently set address
-
uint8_t
cc110x_set_address
(cc110x.h::cc110x_t
* dev, uint8_t address)¶ Set cc110x radio address.
Parameters
dev: device to work on address: new address Return values
- address set on success
- 0 on error
-
void
cc110x_set_monitor
(cc110x.h::cc110x_t
* dev, uint8_t mode)¶ Set cc110x monitor mode setting.
Parameters
dev: device to work on mode: mode to set (0 or 1)
-
struct
cc110x_params
¶ Struct for holding cc110x IO parameters.
-
spi.h::spi_t
spi
¶ SPI bus the CC110x is connected to.
-
gpio.h::gpio_t
cs
¶ GPIO connected to the chip select pin of the CC110x.
-
gpio.h::gpio_t
gdo0
¶ GPIO connected to the GDO0 pin of the CC110x.
-
gpio.h::gpio_t
gdo1
¶ GPIO connected to the GDO1 pin of the CC110x.
-
gpio.h::gpio_t
gdo2
¶ GPIO connected to the GDO2 pin of the CC110x.
-
-
struct
cc110x
¶ Struct for holding cc110x device state.
-
cc110x.h::cc110x_params_t
params
¶ cc110x IO configuration
-
cc110x-internal.h::cc110x_statistic_t
cc110x_statistic
¶ Statistic values for debugging.
-
uint8_t
radio_state
¶ Radio state.
-
uint8_t
radio_channel
¶ current Radio channel
-
uint8_t
radio_address
¶ current Radio address
-
cc110x_pkt_buf_t
pkt_buf
¶ RX/TX buffer.
-
void(*
isr_cb
()¶ isr callback
-
void *
isr_cb_arg
¶ isr callback argument
-