The friendly Operating System for the Internet of Things
cc110x-internal.h File Reference

Data structures and variables for the cc110x driver interface. More...

Detailed Description

#include <stdint.h>
+ Include dependency graph for cc110x-internal.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  cc110x_pkt_t
 CC110X layer 0 protocol. More...
 
struct  cc110x_pkt_buf_t
 struct holding cc110x packet + metadata More...
 
struct  cc110x_reg_t
 CC110x register configuration. More...
 
struct  cc110x_cfg_t
 CC110x radio configuration. More...
 
struct  cc110x_flags_t
 Radio Control Flags. More...
 
struct  cc110x_statistic
 Statistic interface for debugging. More...
 

Macros

#define CC110X_RXBUF_SIZE   (2)
 
#define CC110X_MAX_DATA_LENGTH   (58+64)
 
#define CC110X_HEADER_LENGTH   (3)
 Header covers SRC, DST and FLAGS.
 
#define CC110X_BROADCAST_ADDRESS   (0x00)
 CC110X broadcast address.
 
#define MIN_UID   (0x01)
 Minimum UID of a node is 1.
 
#define MAX_UID   (0xFF)
 Maximum UID of a node is 255.
 
#define MIN_CHANNR   (0)
 Minimum channel number.
 
#define MAX_CHANNR   (24)
 Maximum channel number.
 
#define CC110X_PACKET_LENGTH   (0xFF)
 max packet length = 255b
 
#define CC110X_SYNC_WORD_TX_TIME   (90000)
 loop count (max. More...
 
#define RESET_WAIT_TIME   (610)
 Reset wait time (in reset procedure)
 
#define IDLE_TO_RX_TIME   (122)
 Time chip needs to go to RX.
 
#define CS_SO_WAIT_TIME   (488)
 Time to wait for SO to go low after CS.
 
#define CC110X_GDO1_LOW_RETRY   (100)
 Max. More...
 
#define CC110X_DEFAULT_CHANNEL   (0)
 The default channel number.
 
#define CC110X_MIN_CHANNR   (0)
 lowest possible channel number
 
#define CC110X_MAX_CHANNR   (0)
 highest possible channel number
 

Typedefs

typedef struct cc110x_statistic cc110x_statistic_t
 Statistic interface for debugging.
 

Enumerations

enum  cc110x_radio_mode { RADIO_MODE_GET = -1, RADIO_MODE_OFF = 0, RADIO_MODE_ON = 1 }
 enum for holding cc110x radio on/off state More...
 
State values for state machine
enum  {
  RADIO_UNKNOWN, RADIO_IDLE, RADIO_TX_BUSY, RADIO_RX,
  RADIO_RX_BUSY, RADIO_PWD
}
 

Variables

char cc110x_conf []
 array holding cc110x register values
 

Macro Definition Documentation

#define CC110X_GDO1_LOW_RETRY   (100)

retries for SO to go low after CS

Definition at line 65 of file cc110x-internal.h.

#define CC110X_SYNC_WORD_TX_TIME   (90000)

timeout ~15ms) to wait for sync word to be transmitted (GDO2 from low to high)

Definition at line 50 of file cc110x-internal.h.

Enumeration Type Documentation

Enumerator
RADIO_MODE_GET 

leave mode unchanged

RADIO_MODE_OFF 

turn radio off

RADIO_MODE_ON 

turn radio on

Definition at line 137 of file cc110x-internal.h.