# Misc Constants
[General Constants]

## Data Structures
struct | trx_param_t
## Defines
#define | FCTL_ACK _BV(5)
#define | FCTL_DATA _BV(0)
#define | FCTL_DST_LONG 0x0c00
#define | FCTL_DST_MASK (FCTL_DST_LONG)
#define | FCTL_DST_SHORT 0x0800
#define | FCTL_IPAN _BV(6)
#define | FCTL_IPAN_MASK (FCTL_IPAN)
#define | FCTL_SRC_LONG 0xc000
#define | FCTL_SRC_MASK (FCTL_SRC_LONG)
#define | FCTL_SRC_SHORT 0x8000
#define | HIF_AT90USB (21)
#define | HIF_FT245 (20)
#define | HIF_NONE (0)
#define | HIF_UART_0 (10)
#define | HIF_UART_1 (11)
#define | SHORTENUM
#define | SPI_RATE_1_128 (3)
#define | SPI_RATE_1_16 (1)
#define | SPI_RATE_1_2 (4)
#define | SPI_RATE_1_32 (6)
#define | SPI_RATE_1_4 (0)
#define | SPI_RATE_1_64 (2)
#define | SPI_RATE_1_8 (5)
#define | URACOLI_USB_BCD_RELEASE (0x100)
#define | URACOLI_USB_PID (2183)
#define | URACOLI_USB_PRODUCT_NAME L"RZUSBSTICK"
#define | URACOLI_USB_VENDOR_NAME L"URACOLI"
#define | URACOLI_USB_VID (5824)
## Typedefs
typedef uint8_t | ccamode_t
typedef int8_t | channel_t
typedef bool | rxidle_t
typedef int8_t | txpwr_t

## Define Documentation

#define FCTL_ACK _BV(5)

ack request in frame control field

Definition at line 213 of file const.h.

#define FCTL_DATA _BV(0)

data frame fype in frame control field

Definition at line 212 of file const.h.

#define FCTL_DST_LONG 0x0c00

destination long address in frame control field

Definition at line 216 of file const.h.

#define FCTL_DST_SHORT 0x0800

destination short address in frame control field

Definition at line 215 of file const.h.

#define FCTL_IPAN _BV(6)

intra pan bit in frame control field

Definition at line 214 of file const.h.

#define FCTL_SRC_LONG 0xc000

source long address in frame control field

Definition at line 218 of file const.h.

#define FCTL_SRC_SHORT 0x8000

source short address in frame control field

Definition at line 217 of file const.h.

#define HIF_AT90USB (21)

Identifier for HIF type USB/ATmega1287

Definition at line 173 of file const.h.

#define HIF_FT245 (20)

Identifier for HIF type USB/FT245

Definition at line 172 of file const.h.

#define HIF_NONE (0)

Identifier for no host interface

Definition at line 168 of file const.h.

#define HIF_UART_0 (10)

Identifier for HIF type UART 0

Definition at line 170 of file const.h.

#define HIF_UART_1 (11)

Identifier for HIF type UART 1

Definition at line 171 of file const.h.

#define SHORTENUM

macro that forces an enumeration to use 8 bit instead of 16 bit integers.

Definition at line 206 of file const.h.

#define SPI_RATE_1_128 (3)

SPI clock running is 0.0078125 (1/128) of cpuclock

Definition at line 201 of file const.h.

#define SPI_RATE_1_16 (1)

SPI clock running is 0.0635 (1/16) of cpu clock

Definition at line 198 of file const.h.

#define SPI_RATE_1_2 (4)

SPI clock running is 0.5 (1/2) of cpu clock

Definition at line 195 of file const.h.

#define SPI_RATE_1_32 (6)

SPI clock running is 0.03125 (1/32)of cpu clock

Definition at line 199 of file const.h.

#define SPI_RATE_1_4 (0)

SPI clock running is 0.25 (1/4) of cpu clock

Definition at line 196 of file const.h.

#define SPI_RATE_1_64 (2)

SPI clock running is 0.015625 (1/64)of cpu clock

Definition at line 200 of file const.h.

#define SPI_RATE_1_8 (5)

SPI clock running is 0.125 (1/8) of cpu clock

Definition at line 197 of file const.h.

#define URACOLI_USB_PID (2183)

uracoli USB Product ID see also USB_VID_URACOLI

Definition at line 189 of file const.h.

#define URACOLI_USB_VID (5824)

uracoli USB Vendor ID

The pair of the uracoli vendor id, device id are obtained by

- http://www.voti.nl/pids/
- http://www.frank-buss.de/pid.txt

Definition at line 184 of file const.h.

## Typedef Documentation

typedef uint8_t ccamode_t

transceiver cca mode, 1 : ED, 2: CS, 3: CS & ED

Definition at line 237 of file const.h.

typedef int8_t channel_t

transceiver channel type

Definition at line 226 of file const.h.

typedef bool rxidle_t

radio idle state, if true radio idles in state PX_ON

Todo:
  make it state_t variable, so that idle state can explicitely selected.

Definition at line 234 of file const.h.

typedef int8_t txpwr_t

transceiver transmit type

Definition at line 229 of file const.h.