From: Tollef Fog Heen Date: Thu, 28 Jul 2011 15:07:16 +0000 (+0200) Subject: More message definitions X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=463d4e2908a91c91a0ba53fe4002d684c2852628;p=gant More message definitions --- diff --git a/antdefs.h b/antdefs.h index d3fb6ba..0c61eea 100644 --- a/antdefs.h +++ b/antdefs.h @@ -32,7 +32,6 @@ uchar ANTFS_File_Open(ushort fileno, uchar flags); #define EVENT_RX_EXT_BROADCAST 0x9d #define EVENT_RX_EXT_BURST_PACKET 0x9f #define EVENT_RX_FAKE_BURST 0xdd -#define EVENT_TRANSFER_TX_COMPLETED 0x05 #define INVALID_MESSAGE 0x28 #define MESG_ACKNOWLEDGED_DATA_ID 0x4f #define MESG_ASSIGN_CHANNEL_ID 0x42 @@ -60,9 +59,26 @@ uchar ANTFS_File_Open(ushort fileno, uchar flags); #define MESG_TX_SYNC 0xa4 #define MESG_UNASSIGN_CHANNEL_ID 0x41 #define RESPONSE_NO_ERROR 0x00 +#define EVENT_RX_SEARCH_TIMEOUT 0x01 #define EVENT_RX_FAIL 0x02 +#define EVENT_TX 0x03 #define EVENT_TRANSFER_RX_FAILED 0x04 +#define EVENT_TRANSFER_TX_COMPLETED 0x05 #define EVENT_TRANSFER_TX_FAILED 0x06 +#define EVENT_CHANNEL_CLOSED 0x07 +#define EVENT_RX_FAIL_GO_TO_SEARCH 0x08 #define TRANSFER_SEQUENCE_NUMBER_ERROR 0x20 +#define EVENT_STARTUP_MESSAGE 0x6f +#define ANTFS_COMMAND 0xE2 +#define ANTFS_REQUEST 0xE1 +#define ANTFS_RESPONSE 0xE0 +#define EXT_REQUEST 0x00 +#define EXT_RESPONSE_EVENT 0x00 +#define FS_FILE_OPEN 0x0B +#define FS_FS_OPEN 0x31 +#define FS_INIT_EEPROM 0x20 + +#define ANTFS_GENERAL_FLAGS_CAN_READ 0x80 +#define ANTFS_GENERAL_FLAGS_ARCHIVED 0x10 /* vim: se sw=8 ts=8: */