-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathantdefs.h
51 lines (48 loc) · 1.67 KB
/
antdefs.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
// copyright 2008-2009 [email protected]. released under GPLv3
// vers 0.6t
#ifndef __ANTDEFS_H__
#define __ANTDEFS_H__
typedef unsigned char uchar;
typedef uchar (*RESPONSE_FUNC)(uchar chan, uchar msgid);
typedef uchar (*CHANNEL_EVENT_FUNC)(uchar chan, uchar event);
#define RESPONSE_NO_ERROR 0x00
#define EVENT_RX_SEARCH_TIMEOUT 0x01
#define EVENT_RX_FAIL 0x02
#define EVENT_TRANSFER_RX_FAILED 0x04
#define EVENT_TRANSFER_TX_COMPLETED 0x05
#define EVENT_TRANSFER_TX_FAILED 0x06
#define INVALID_MESSAGE 0x28
#define MESG_RESPONSE_EVENT_ID 0x40
#define MESG_UNASSIGN_CHANNEL_ID 0x41
#define MESG_ASSIGN_CHANNEL_ID 0x42
#define MESG_CHANNEL_MESG_PERIOD_ID 0x43
#define MESG_CHANNEL_SEARCH_TIMEOUT_ID 0x44
#define MESG_CHANNEL_RADIO_FREQ_ID 0x45
#define MESG_NETWORK_KEY_ID 0x46
#define MESG_SEARCH_WAVEFORM_ID 0x49
#define MESG_SYSTEM_RESET_ID 0x4a
#define MESG_OPEN_CHANNEL_ID 0x4b
#define MESG_CLOSE_CHANNEL_ID 0x4c
#define MESG_REQUEST_ID 0x4d
#define MESG_BROADCAST_DATA_ID 0x4e
#define MESG_ACKNOWLEDGED_DATA_ID 0x4f
#define MESG_BURST_DATA_ID 0x50
#define MESG_CHANNEL_ID_ID 0x51
#define MESG_CHANNEL_STATUS_ID 0x52
#define MESG_CAPABILITIES_ID 0x54
#define MESG_OPEN_RX_SCAN_ID 0x5b
#define MESG_EXT_BROADCAST_DATA_ID 0x5d
#define MESG_EXT_ACKNOWLEDGED_DATA_ID 0x5e
#define MESG_EXT_BURST_DATA_ID 0x5f
#define EVENT_RX_BROADCAST 0x9a
#define EVENT_RX_ACKNOWLEDGED 0x9b
#define EVENT_RX_BURST_PACKET 0x9c
#define EVENT_RX_EXT_BROADCAST 0x9d
#define EVENT_RX_EXT_ACKNOWLEDGED 0x9e
#define EVENT_RX_EXT_BURST_PACKET 0x9f
#define MESG_TX_SYNC 0xa4
#define EVENT_RX_FAKE_BURST 0xdd
#define MESG_RESPONSE_EVENT_SIZE 3
#define MESG_DATA_SIZE 30
#endif
/* vim: se sw=8 ts=8: */