Loading...
Searching...
No Matches

Detailed Description

Files

file  cc1xxx_common.h
 CC110x/CC1200 adaption for Network interface API.
 

Data Structures

struct  cc1xxx_l2hdr_t
 Layer 2 header used in CC1xxx frames. More...
 
struct  cc1xxx_t
 Users of the CC110x/CC1200 adaption layer have to overlap their device handle with this structure. More...
 

Macros

#define CC1XXX_DEFAULT_PROTOCOL   (GNRC_NETTYPE_SIXLOWPAN)
 Default protocol for data that is coming in.
 
#define CC1XXX_ADDR_SIZE   (1)
 Size of a layer 2 address on CC110x/CC1200 transceivers.
 
#define CC1XXX_BCAST_ADDR   (0x00)
 Special layer 2 address reserved for broadcast frames.
 

Typedefs

typedef struct netdev_radio_rx_info cc1xxx_rx_info_t
 Statistics for one received frame.
 

Functions

int gnrc_netif_cc1xxx_create (gnrc_netif_t *netif, char *stack, int stacksize, char priority, char *name, netdev_t *dev)
 Creates a CC110x/CC1200 network interface.
 
void cc1xxx_eui_get (const netdev_t *dev, uint8_t *eui)
 Retrieve a unique layer-2 address for a cc1xxx instance.
 

Macro Definition Documentation

◆ CC1XXX_ADDR_SIZE

#define CC1XXX_ADDR_SIZE   (1)

Size of a layer 2 address on CC110x/CC1200 transceivers.

Definition at line 79 of file cc1xxx_common.h.

◆ CC1XXX_BCAST_ADDR

#define CC1XXX_BCAST_ADDR   (0x00)

Special layer 2 address reserved for broadcast frames.

Definition at line 84 of file cc1xxx_common.h.

◆ CC1XXX_DEFAULT_PROTOCOL

#define CC1XXX_DEFAULT_PROTOCOL   (GNRC_NETTYPE_SIXLOWPAN)

Default protocol for data that is coming in.

Definition at line 71 of file cc1xxx_common.h.

Typedef Documentation

◆ cc1xxx_rx_info_t

Statistics for one received frame.

Definition at line 113 of file cc1xxx_common.h.

Function Documentation

◆ cc1xxx_eui_get()

void cc1xxx_eui_get ( const netdev_t dev,
uint8_t *  eui 
)

Retrieve a unique layer-2 address for a cc1xxx instance.

Note
This function has attribute((weak)) so you can override this, e.g. to construct an address. By default luid_get is used.
Parameters
[in]devThe device descriptor of the transceiver
[out]euiDestination to write the address to

◆ gnrc_netif_cc1xxx_create()

int gnrc_netif_cc1xxx_create ( gnrc_netif_t netif,
char *  stack,
int  stacksize,
char  priority,
char *  name,
netdev_t dev 
)

Creates a CC110x/CC1200 network interface.

Parameters
[out]netifThe interface. May not be NULL.
[in]stackThe stack for the network interface's thread.
[in]stacksizeSize of stack.
[in]priorityPriority for the network interface's thread.
[in]nameName for the network interface. May be NULL.
[in]devDevice for the interface.
See also
gnrc_netif_create()
Returns
0 on success
negative number on error