btnut/btnode/include/cc/mac.h File Reference


Detailed Description

Generic Chipcon CC1000 MAC-Interface.

Author:
Mario Strasser <mast@gmx.net>

#include <sys/types.h>
#include <cc/ccc_packet.h>

Data Structures

struct  mac_interface_st

Defines

#define BROADCAST_ADDR   0xffff
#define CLUSTER_MASK   0xffe0
#define MULTICAST_ADDR(a)   (((a) & CLUSTER_MASK)|(BROADCAST_ADDR & NODE_MASK))
#define NODE_MASK   (~CLUSTER_MASK)

Typedefs

typedef mac_interface_st mac_interface_t


Define Documentation

#define BROADCAST_ADDR   0xffff

broadcast address

Examples:
ccc-cmd/ccc-cmd.c.

#define CLUSTER_MASK   0xffe0

mask for the cluster (network) part of a node address

#define MULTICAST_ADDR (  )     (((a) & CLUSTER_MASK)|(BROADCAST_ADDR & NODE_MASK))

multicast address for address a

#define NODE_MASK   (~CLUSTER_MASK)

mask for the node part of a node address


Typedef Documentation

typedef struct mac_interface_st mac_interface_t

Structure describing the CC1000 MAC-Interface.


Generated on Wed Apr 29 11:12:29 2009 for BTnut System Software by doxygen 1.5.1
!!! Dieses Dokument stammt aus dem ETH Web-Archiv und wird nicht mehr gepflegt !!!
!!! This document is stored in the ETH Web archive and is no longer maintained !!!