Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00038
00039 #ifndef CONST_H
00040 #define CONST_H
00041 #include <stdint.h>
00042 #include <stdbool.h>
00043
00049
00050 #define RADIO_AT86RF230 (1)
00051 #define RADIO_AT86RF230A (RADIO_AT86RF230)
00052 #define RADIO_AT86RF230B (2)
00053 #define RADIO_AT86RF231 (3)
00054 #define RADIO_AT86RF212 (4)
00055 #define RADIO_ATMEGA128RFA1_A (5)
00056 #define RADIO_ATMEGA128RFA1_B (6)
00057 #define RADIO_ATMEGA128RFA1_C (7)
00058 #define RADIO_ATMEGA128RFA1_D (8)
00060 #define RADIO_BAND_700 (1)
00061 #define RADIO_BAND_800 (2)
00062 #define RADIO_BAND_900 (3)
00063 #define RADIO_BAND_2400 (4)
00065
00066 #define MOD_BPSK_20 (0)
00067 #define MOD_BPSK_40 (1)
00068 #define MOD_OQPSK_100 (2)
00069 #define MOD_OQPSK_200 (3)
00070 #define MOD_OQPSK_250 (4)
00071 #define MOD_OQPSK_400 (5)
00072 #define MOD_OQPSK_500 (6)
00073 #define MOD_OQPSK_1000 (7)
00074 #define MOD_OQPSK_2000 (8)
00084
00085 #define HIF_NONE (0)
00086 #define HIF_UART_0 (10)
00087 #define HIF_UART_1 (11)
00088 #define HIF_FT245 (20)
00089 #define HIF_AT90USB (21)
00091
00092
00100 #define URACOLI_USB_VID (5824)
00101
00105 #define URACOLI_USB_PID (2183)
00106
00107 #define URACOLI_USB_BCD_RELEASE (0x100)
00108 #define URACOLI_USB_VENDOR_NAME L"URACOLI"
00109 #define URACOLI_USB_PRODUCT_NAME L"RZUSBSTICK"
00110
00118
00119 #define SPI_RATE_1_2 (4)
00120 #define SPI_RATE_1_4 (0)
00121 #define SPI_RATE_1_8 (5)
00122 #define SPI_RATE_1_16 (1)
00123 #define SPI_RATE_1_32 (6)
00124 #define SPI_RATE_1_64 (2)
00125 #define SPI_RATE_1_128 (3)
00130 #if defined (DOXYGEN)
00131
00132 #define SHORTENUM
00133 #else
00134 #define SHORTENUM __attribute__((packed))
00135 #endif
00136
00141 #define FCTL_DATA _BV(0)
00142 #define FCTL_ACK _BV(5)
00143 #define FCTL_IPAN _BV(6)
00144 #define FCTL_DST_SHORT 0x0800
00145 #define FCTL_DST_LONG 0x0c00
00146 #define FCTL_SRC_SHORT 0x8000
00147 #define FCTL_SRC_LONG 0xc000
00149 #define FCTL_SRC_MASK (FCTL_SRC_LONG)
00150 #define FCTL_DST_MASK (FCTL_DST_LONG)
00151 #define FCTL_IPAN_MASK (FCTL_IPAN)
00152
00154
00155
00156
00163 typedef int8_t channel_t;
00164
00166 typedef int8_t txpwr_t;
00167
00171 typedef bool rxidle_t;
00172
00174 typedef uint8_t ccamode_t;
00175
00176
00177
00181 typedef struct
00182 {
00184 channel_t chan;
00186 uint8_t txp : 4;
00188 ccamode_t cca : 2;
00190 uint8_t edt : 4;
00191
00193 uint8_t clkm : 3;
00194
00195 } trx_param_t;
00196
00198 #endif