TI CC110x. More...

Detailed Description

Files

file  cc110x-defines.h
 Driver internal constants for CC110x chip configuration.
 
file  cc110x-interface.h
 internal declarations for cc110x driver
 
file  cc110x-internal.h
 Data structures and variables for the cc110x driver interface.
 
file  cc110x-netdev.h
 Variables for the cc110x netdev interface.
 
file  cc110x-spi.h
 CC110X SPI functions.
 
file  cc110x.h
 Public interface for cc110x driver.
 

Data Structures

struct  cc110x_params
 Struct for holding cc110x IO parameters. More...
 
struct  cc110x
 Struct for holding cc110x device state. More...
 

Typedefs

typedef struct cc110x_params cc110x_params_t
 Struct for holding cc110x IO parameters.
 
typedef struct cc110x cc110x_t
 forward declaration
 

Functions

int cc110x_setup (cc110x_t *dev, const cc110x_params_t *params)
 Setup cc110x device parameters. More...
 
int16_t cc110x_set_channel (cc110x_t *dev, uint8_t channr)
 Set cc110x channel number. More...
 
int cc110x_send (cc110x_t *dev, cc110x_pkt_t *packet)
 Send raw cc110x packet. More...
 
uint8_t cc110x_get_address (cc110x_t *dev)
 Set cc110x radio address. More...
 
uint8_t cc110x_set_address (cc110x_t *dev, uint8_t address)
 Set cc110x radio address. More...
 
void cc110x_set_monitor (cc110x_t *dev, uint8_t mode)
 Set cc110x monitor mode setting. More...
 

Function Documentation

uint8_t cc110x_get_address ( cc110x_t dev)
Parameters
[in]devdevice to query
Returns
nr of currently set address
int cc110x_send ( cc110x_t dev,
cc110x_pkt_t packet 
)
Parameters
[in]devDevice to send on
[in]packetptr to packet to be sent
Returns
size of packet on success
<0 on error
uint8_t cc110x_set_address ( cc110x_t dev,
uint8_t  address 
)
Parameters
[in]devdevice to work on
[in]addressnew address
Returns
address set on success
0 on error
int16_t cc110x_set_channel ( cc110x_t dev,
uint8_t  channr 
)
Parameters
[in]devdevice to work on
[in]channrguess what
Returns
nr of set channel on success
-1 on error
void cc110x_set_monitor ( cc110x_t dev,
uint8_t  mode 
)
Parameters
[in]devdevice to work on
[in]modemode to set (0 or 1)
int cc110x_setup ( cc110x_t dev,
const cc110x_params_t params 
)
Parameters
[in]devdevice struct to set up
[in]paramsstruct holding parameters
Returns
always succeeds