Go to the documentation of this file.
19 #ifndef CC110X_COMMUNICATION_H
20 #define CC110X_COMMUNICATION_H
156 const void *src,
size_t len);
uint8_t cc110x_burst_read(cc110x_t *dev, uint8_t addr, void *dest, size_t len)
Burst-read a bunch of configuration registers from the transceiver.
Low-level SPI peripheral driver interface definition.
@ SPI_MODE_0
CPOL=0, CPHA=0.
uint8_t cc110x_read(cc110x_t *dev, uint8_t addr, uint8_t *dest)
Read a single configuration/status register from the transceiver.
static void cc110x_release(cc110x_t *dev)
Release the SPI interface of the transceiver.
uint8_t cc110x_status(cc110x_t *dev)
Get the transceivers status byte in a reliable way.
spi_clk_t spi_clk
SPI clock to use (max 6.5 MHz)
void spi_release(spi_t bus)
Finish an ongoing SPI transaction by releasing the given SPI bus.
int spi_acquire(spi_t bus, spi_cs_t cs, spi_mode_t mode, spi_clk_t clk)
Start a new SPI transaction.
uint8_t cc110x_burst_write(cc110x_t *dev, uint8_t addr, const void *src, size_t len)
Burst-write to a bunch of configuration registers on the transceiver.
static int cc110x_acquire(cc110x_t *dev)
Acquire the SPI interface of the transceiver and configure it.
cc110x_params_t params
Configuration of the driver.
Interface definition for the CC1100/CC1101 driver.
uint8_t cc110x_read_reliable(cc110x_t *dev, uint8_t addr, uint8_t *dest)
Read a single status register from the transceiver reliable.
uint8_t cc110x_write(cc110x_t *dev, uint8_t addr, uint8_t data)
Write to a single configuration register on the transceiver.
spi_t spi
SPI bus connected to the device.
Low-level GPIO peripheral driver interface definitions.
spi_cs_t cs
GPIO pin connected to chip select.
uint8_t cc110x_cmd(cc110x_t *dev, uint8_t cmd)
Send a command to the transceiver.
Constants for the CC1100/CC1101 driver.
int cc110x_power_on(cc110x_t *dev)
Wakes up the transceiver from "Sleep" or "Crystal oscillator off" state and waits until the crystal h...
Device descriptor for CC1100/CC1101 transceivers.