antdefines.h 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353
  1. /*
  2. This software is subject to the license described in the License.txt file
  3. included with this software distribution. You may not use this file except in compliance
  4. with this license.
  5. Copyright (c) Dynastream Innovations Inc. 2014
  6. All rights reserved.
  7. */
  8. #ifndef ANTDEFINES_H
  9. #define ANTDEFINES_H
  10. #include "types.h"
  11. //////////////////////////////////////////////
  12. // ANT Message Payload Size
  13. //////////////////////////////////////////////
  14. #define ANT_STANDARD_DATA_PAYLOAD_SIZE ((UCHAR)8)
  15. //////////////////////////////////////////////
  16. // ANT LIBRARY Extended Data Message Fields
  17. // NOTE: You must check the extended message
  18. // bitfield first to find out which fields
  19. // are present before accessing them!
  20. //////////////////////////////////////////////
  21. #define ANT_EXT_MESG_DEVICE_ID_FIELD_SIZE ((UCHAR)4)
  22. #define ANT_EXT_STRING_SIZE ((UCHAR)27) // increase buffer size to support longer messages (32 extra bytes after ANT standard payload)
  23. //////////////////////////////////////////////
  24. // ANT Extended Data Message Bifield Definitions
  25. //////////////////////////////////////////////
  26. #define ANT_EXT_MESG_BITFIELD_DEVICE_ID ((UCHAR)0x80) // first field after bitfield
  27. // 4 bits free reserved set to 0
  28. #define ANT_EXT_MESG_BIFIELD_EXTENSION ((UCHAR)0x01)
  29. // extended message input bitfield defines
  30. #define ANT_EXT_MESG_BITFIELD_OVERWRITE_SHARED_ADR ((UCHAR)0x10)
  31. #define ANT_EXT_MESG_BITFIELD_TRANSMISSION_TYPE ((UCHAR)0x08)
  32. //////////////////////////////////////////////
  33. // ANT Library Config
  34. //////////////////////////////////////////////
  35. #define ANT_LIB_CONFIG_MASK_ALL ((UCHAR)0xFF)
  36. #define ANT_LIB_CONFIG_RADIO_CONFIG_ALWAYS ((UCHAR)0x01)
  37. #define ANT_LIB_CONFIG_MESG_OUT_INC_TIME_STAMP ((UCHAR)0x20)
  38. #define ANT_LIB_CONFIG_MESG_OUT_INC_RSSI ((UCHAR)0x40)
  39. #define ANT_LIB_CONFIG_MESG_OUT_INC_DEVICE_ID ((UCHAR)0x80)
  40. //////////////////////////////////////////////
  41. // ID Definitions
  42. //////////////////////////////////////////////
  43. #define ANT_ID_SIZE ((UCHAR)4)
  44. #define ANT_ID_TRANS_TYPE_OFFSET ((UCHAR)3)
  45. #define ANT_ID_DEVICE_TYPE_OFFSET ((UCHAR)2)
  46. #define ANT_ID_DEVICE_NUMBER_HIGH_OFFSET ((UCHAR)1)
  47. #define ANT_ID_DEVICE_NUMBER_LOW_OFFSET ((UCHAR)0)
  48. #define ANT_ID_DEVICE_TYPE_PAIRING_FLAG ((UCHAR)0x80)
  49. #define ANT_TRANS_TYPE_SHARED_ADDR_MASK ((UCHAR)0x03)
  50. #define ANT_TRANS_TYPE_1_BYTE_SHARED_ADDRESS ((UCHAR)0x02)
  51. #define ANT_TRANS_TYPE_2_BYTE_SHARED_ADDRESS ((UCHAR)0x03)
  52. //////////////////////////////////////////////
  53. // Assign Channel Parameters
  54. //////////////////////////////////////////////
  55. #define PARAMETER_RX_NOT_TX ((UCHAR)0x00)
  56. #define PARAMETER_TX_NOT_RX ((UCHAR)0x10)
  57. #define PARAMETER_SHARED_CHANNEL ((UCHAR)0x20)
  58. #define PARAMETER_NO_TX_GUARD_BAND ((UCHAR)0x40)
  59. #define PARAMETER_ALWAYS_RX_WILD_CARD_SEARCH_ID ((UCHAR)0x40) //Pre-AP2
  60. #define PARAMETER_RX_ONLY ((UCHAR)0x40)
  61. //////////////////////////////////////////////
  62. // Ext. Assign Channel Parameters
  63. //////////////////////////////////////////////
  64. #define EXT_PARAM_ALWAYS_SEARCH ((UCHAR)0x01)
  65. #define EXT_PARAM_FREQUENCY_AGILITY ((UCHAR)0x04)
  66. //////////////////////////////////////////////
  67. // Radio TX Power Definitions
  68. //////////////////////////////////////////////
  69. #define RADIO_TX_POWER_LVL_MASK ((UCHAR)0x03)
  70. #define RADIO_TX_POWER_LVL_0 ((UCHAR)0x00) //(formerly: RADIO_TX_POWER_MINUS20DB) lowest
  71. #define RADIO_TX_POWER_LVL_1 ((UCHAR)0x01) //(formerly: RADIO_TX_POWER_MINUS10DB)
  72. #define RADIO_TX_POWER_LVL_2 ((UCHAR)0x02) //(formerly: RADIO_TX_POWER_MINUS5DB)
  73. #define RADIO_TX_POWER_LVL_3 ((UCHAR)0x03) //(formerly: RADIO_TX_POWER_0DB) highest
  74. //////////////////////////////////////////////
  75. // Channel Status
  76. //////////////////////////////////////////////
  77. #define STATUS_CHANNEL_STATE_MASK ((UCHAR)0x03)
  78. #define STATUS_UNASSIGNED_CHANNEL ((UCHAR)0x00)
  79. #define STATUS_ASSIGNED_CHANNEL ((UCHAR)0x01)
  80. #define STATUS_SEARCHING_CHANNEL ((UCHAR)0x02)
  81. #define STATUS_TRACKING_CHANNEL ((UCHAR)0x03)
  82. //////////////////////////////////////////////
  83. // Standard capabilities defines
  84. //////////////////////////////////////////////
  85. #define CAPABILITIES_NO_RX_CHANNELS ((UCHAR)0x01)
  86. #define CAPABILITIES_NO_TX_CHANNELS ((UCHAR)0x02)
  87. #define CAPABILITIES_NO_RX_MESSAGES ((UCHAR)0x04)
  88. #define CAPABILITIES_NO_TX_MESSAGES ((UCHAR)0x08)
  89. #define CAPABILITIES_NO_ACKD_MESSAGES ((UCHAR)0x10)
  90. #define CAPABILITIES_NO_BURST_TRANSFER ((UCHAR)0x20)
  91. //////////////////////////////////////////////
  92. // Advanced capabilities defines
  93. //////////////////////////////////////////////
  94. #define CAPABILITIES_OVERUN_UNDERRUN ((UCHAR)0x01) // Support for this functionality has been dropped
  95. #define CAPABILITIES_NETWORK_ENABLED ((UCHAR)0x02)
  96. #define CAPABILITIES_AP1_VERSION_2 ((UCHAR)0x04) // This Version of the AP1 does not support transmit and only had a limited release
  97. #define CAPABILITIES_SERIAL_NUMBER_ENABLED ((UCHAR)0x08)
  98. #define CAPABILITIES_PER_CHANNEL_TX_POWER_ENABLED ((UCHAR)0x10)
  99. #define CAPABILITIES_LOW_PRIORITY_SEARCH_ENABLED ((UCHAR)0x20)
  100. #define CAPABILITIES_SCRIPT_ENABLED ((UCHAR)0x40)
  101. #define CAPABILITIES_SEARCH_LIST_ENABLED ((UCHAR)0x80)
  102. //////////////////////////////////////////////
  103. // Advanced capabilities 2 defines
  104. //////////////////////////////////////////////
  105. #define CAPABILITIES_LED_ENABLED ((UCHAR)0x01)
  106. #define CAPABILITIES_EXT_MESSAGE_ENABLED ((UCHAR)0x02)
  107. #define CAPABILITIES_SCAN_MODE_ENABLED ((UCHAR)0x04)
  108. #define CAPABILITIES_RESERVED ((UCHAR)0x08)
  109. #define CAPABILITIES_PROX_SEARCH_ENABLED ((UCHAR)0x10)
  110. #define CAPABILITIES_EXT_ASSIGN_ENABLED ((UCHAR)0x20)
  111. #define CAPABILITIES_FS_ANTFS_ENABLED ((UCHAR)0x40)
  112. #define CAPABILITIES_FIT1_ENABLED ((UCHAR)0x80)
  113. //////////////////////////////////////////////
  114. // Advanced capabilities 3 defines
  115. //////////////////////////////////////////////
  116. #define CAPABILITIES_ADVANCED_BURST_ENABLED ((UCHAR)0x01)
  117. #define CAPABILITIES_EVENT_BUFFERING_ENABLED ((UCHAR)0x02)
  118. #define CAPABILITIES_EVENT_FILTERING_ENABLED ((UCHAR)0x04)
  119. #define CAPABILITIES_HIGH_DUTY_SEARCH_MODE_ENABLED ((UCHAR)0x08)
  120. #define CAPABILITIES_SELECTIVE_DATA_UPDATE_ENABLED ((UCHAR)0x40)
  121. #define CAPABILITIES_ENCRYPTED_CHANNEL_ENABLED ((UCHAR)0x80)
  122. //////////////////////////////////////////////
  123. // Burst Message Sequence
  124. //////////////////////////////////////////////
  125. #define CHANNEL_NUMBER_MASK ((UCHAR)0x1F)
  126. #define SEQUENCE_NUMBER_MASK ((UCHAR)0xE0)
  127. #define SEQUENCE_NUMBER_ROLLOVER ((UCHAR)0x60)
  128. #define SEQUENCE_FIRST_MESSAGE ((UCHAR)0x00)
  129. #define SEQUENCE_LAST_MESSAGE ((UCHAR)0x80)
  130. #define SEQUENCE_NUMBER_INC ((UCHAR)0x20)
  131. //////////////////////////////////////////////
  132. // Advanced Burst Config defines
  133. //////////////////////////////////////////////
  134. #define ADV_BURST_CONFIG_FREQ_HOP ((ULONG)0x00000001)
  135. //////////////////////////////////////////////
  136. // Extended Message ID Mask
  137. //////////////////////////////////////////////
  138. #define MSG_EXT_ID_MASK ((UCHAR)0xE0)
  139. //////////////////////////////////////////////
  140. // Control Message Flags
  141. //////////////////////////////////////////////
  142. #define BROADCAST_CONTROL_BYTE ((UCHAR)0x00)
  143. #define ACKNOWLEDGED_CONTROL_BYTE ((UCHAR)0xA0)
  144. //////////////////////////////////////////////
  145. // Response / Event Codes
  146. //////////////////////////////////////////////
  147. #define RESPONSE_NO_ERROR ((UCHAR)0x00)
  148. #define NO_EVENT ((UCHAR)0x00)
  149. #define EVENT_RX_SEARCH_TIMEOUT ((UCHAR)0x01)
  150. #define EVENT_RX_FAIL ((UCHAR)0x02)
  151. #define EVENT_TX ((UCHAR)0x03)
  152. #define EVENT_TRANSFER_RX_FAILED ((UCHAR)0x04)
  153. #define EVENT_TRANSFER_TX_COMPLETED ((UCHAR)0x05)
  154. #define EVENT_TRANSFER_TX_FAILED ((UCHAR)0x06)
  155. #define EVENT_CHANNEL_CLOSED ((UCHAR)0x07)
  156. #define EVENT_RX_FAIL_GO_TO_SEARCH ((UCHAR)0x08)
  157. #define EVENT_CHANNEL_COLLISION ((UCHAR)0x09)
  158. #define EVENT_TRANSFER_TX_START ((UCHAR)0x0A) // a pending transmit transfer has begun
  159. #define EVENT_CHANNEL_ACTIVE ((UCHAR)0x0F)
  160. #define EVENT_TRANSFER_TX_NEXT_MESSAGE ((UCHAR)0x11) // only enabled in FIT1
  161. #define CHANNEL_IN_WRONG_STATE ((UCHAR)0x15) // returned on attempt to perform an action from the wrong channel state
  162. #define CHANNEL_NOT_OPENED ((UCHAR)0x16) // returned on attempt to communicate on a channel that is not open
  163. #define CHANNEL_ID_NOT_SET ((UCHAR)0x18) // returned on attempt to open a channel without setting the channel ID
  164. #define CLOSE_ALL_CHANNELS ((UCHAR)0x19) // returned when attempting to start scanning mode, when channels are still open
  165. #define TRANSFER_IN_PROGRESS ((UCHAR)0x1F) // returned on attempt to communicate on a channel with a TX transfer in progress
  166. #define TRANSFER_SEQUENCE_NUMBER_ERROR ((UCHAR)0x20) // returned when sequence number is out of order on a Burst transfer
  167. #define TRANSFER_IN_ERROR ((UCHAR)0x21)
  168. #define TRANSFER_BUSY ((UCHAR)0x22)
  169. #define INVALID_MESSAGE_CRC ((UCHAR)0x26) // returned if there is a framing error on an incomming message
  170. #define MESSAGE_SIZE_EXCEEDS_LIMIT ((UCHAR)0x27) // returned if a data message is provided that is too large
  171. #define INVALID_MESSAGE ((UCHAR)0x28) // returned when the message has an invalid parameter
  172. #define INVALID_NETWORK_NUMBER ((UCHAR)0x29) // returned when an invalid network number is provided
  173. #define INVALID_LIST_ID ((UCHAR)0x30) // returned when the provided list ID or size exceeds the limit
  174. #define INVALID_SCAN_TX_CHANNEL ((UCHAR)0x31) // returned when attempting to transmit on channel 0 when in scan mode
  175. #define INVALID_PARAMETER_PROVIDED ((UCHAR)0x33) // returned when an invalid parameter is specified in a configuration message
  176. #define EVENT_SERIAL_QUE_OVERFLOW ((UCHAR)0x34)
  177. #define EVENT_QUE_OVERFLOW ((UCHAR)0x35) // ANT event que has overflowed and lost 1 or more events
  178. #define EVENT_CLK_ERROR ((UCHAR)0x36) // debug event for XOSC16M on LE1
  179. #define EVENT_STATE_OVERRUN ((UCHAR)0x37)
  180. #define SCRIPT_FULL_ERROR ((UCHAR)0x40) // error writing to script, memory is full
  181. #define SCRIPT_WRITE_ERROR ((UCHAR)0x41) // error writing to script, bytes not written correctly
  182. #define SCRIPT_INVALID_PAGE_ERROR ((UCHAR)0x42) // error accessing script page
  183. #define SCRIPT_LOCKED_ERROR ((UCHAR)0x43) // the scripts are locked and can't be dumped
  184. #define NO_RESPONSE_MESSAGE ((UCHAR)0x50) // returned to the Command_SerialMessageProcess function, so no reply message is generated
  185. #define RETURN_TO_MFG ((UCHAR)0x51) // default return to any mesg when the module determines that the mfg procedure has not been fully completed
  186. #define FIT_ACTIVE_SEARCH_TIMEOUT ((UCHAR)0x60) // Fit1 only event added for timeout of the pairing state after the Fit module becomes active
  187. #define FIT_WATCH_PAIR ((UCHAR)0x61) // Fit1 only
  188. #define FIT_WATCH_UNPAIR ((UCHAR)0x62) // Fit1 only
  189. #define USB_STRING_WRITE_FAIL ((UCHAR)0x70)
  190. // Internal only events below this point
  191. #define INTERNAL_ONLY_EVENTS ((UCHAR)0x80)
  192. #define EVENT_RX ((UCHAR)0x80) // INTERNAL: Event for a receive message
  193. #define EVENT_NEW_CHANNEL ((UCHAR)0x81) // INTERNAL: EVENT for a new active channel
  194. #define EVENT_PASS_THRU ((UCHAR)0x82) // INTERNAL: Event to allow an upper stack events to pass through lower stacks
  195. #define EVENT_BLOCKED ((UCHAR)0xFF) // INTERNAL: Event to replace any event we do not wish to go out, will also zero the size of the Tx message
  196. ///////////////////////////////////////////////////////
  197. // Script Command Codes
  198. ///////////////////////////////////////////////////////
  199. #define SCRIPT_CMD_FORMAT ((UCHAR)0x00)
  200. #define SCRIPT_CMD_DUMP ((UCHAR)0x01)
  201. #define SCRIPT_CMD_SET_DEFAULT_SECTOR ((UCHAR)0x02)
  202. #define SCRIPT_CMD_END_SECTOR ((UCHAR)0x03)
  203. #define SCRIPT_CMD_END_DUMP ((UCHAR)0x04)
  204. #define SCRIPT_CMD_LOCK ((UCHAR)0x05)
  205. ///////////////////////////////////////////////////////
  206. // USB Descriptor Strings
  207. ///////////////////////////////////////////////////////
  208. #define USB_DESCRIPTOR_VID_PID ((UCHAR) 0x00)
  209. #define USB_DESCRIPTOR_MANUFACTURER_STRING ((UCHAR) 0x01)
  210. #define USB_DESCRIPTOR_DEVICE_STRING ((UCHAR) 0x02)
  211. #define USB_DESCRIPTOR_SERIAL_STRING ((UCHAR) 0x03)
  212. ///////////////////////////////////////////////////////
  213. // Reset Mesg Codes
  214. ///////////////////////////////////////////////////////
  215. #define RESET_FLAGS_MASK ((UCHAR)0xE0)
  216. #define RESET_SUSPEND ((UCHAR)0x80) // this must follow bitfield def
  217. #define RESET_SYNC ((UCHAR)0x40) // this must follow bitfield def
  218. #define RESET_CMD ((UCHAR)0x20) // this must follow bitfield def
  219. #define RESET_WDT ((UCHAR)0x02)
  220. #define RESET_RST ((UCHAR)0x01)
  221. #define RESET_POR ((UCHAR)0x00)
  222. //////////////////////////////////////////////
  223. // PC Application Event Codes
  224. /////////////////////////////////////// ///////
  225. //NOTE: These events are not generated by the embedded ANT module
  226. #define EVENT_RX_BROADCAST ((UCHAR)0x9A) // returned when module receives broadcast data
  227. #define EVENT_RX_ACKNOWLEDGED ((UCHAR)0x9B) // returned when module receives acknowledged data
  228. #define EVENT_RX_BURST_PACKET ((UCHAR)0x9C) // returned when module receives burst data
  229. #define EVENT_RX_EXT_BROADCAST ((UCHAR)0x9D) // returned when module receives broadcast data
  230. #define EVENT_RX_EXT_ACKNOWLEDGED ((UCHAR)0x9E) // returned when module receives acknowledged data
  231. #define EVENT_RX_EXT_BURST_PACKET ((UCHAR)0x9F) // returned when module receives burst data
  232. #define EVENT_RX_RSSI_BROADCAST ((UCHAR)0xA0) // returned when module receives broadcast data
  233. #define EVENT_RX_RSSI_ACKNOWLEDGED ((UCHAR)0xA1) // returned when module receives acknowledged data
  234. #define EVENT_RX_RSSI_BURST_PACKET ((UCHAR)0xA2) // returned when module receives burst data
  235. #define EVENT_RX_FLAG_BROADCAST ((UCHAR)0xA3) // returned when module receives broadcast data with flag attached
  236. #define EVENT_RX_FLAG_ACKNOWLEDGED ((UCHAR)0xA4) // returned when module receives acknowledged data with flag attached
  237. #define EVENT_RX_FLAG_BURST_PACKET ((UCHAR)0xA5) // returned when module receives burst data with flag attached
  238. //////////////////////////////////////////////
  239. // Integrated ANT-FS Client Response/Event Codes
  240. //////////////////////////////////////////////
  241. #define MESG_FS_ANTFS_EVENT_PAIR_REQUEST ((UCHAR)0x01)
  242. #define MESG_FS_ANTFS_EVENT_DOWNLOAD_START ((UCHAR)0x02)
  243. #define MESG_FS_ANTFS_EVENT_UPLOAD_START ((UCHAR)0x03)
  244. #define MESG_FS_ANTFS_EVENT_DOWNLOAD_COMPLETE ((UCHAR)0x04)
  245. #define MESG_FS_ANTFS_EVENT_UPLOAD_COMPLETE ((UCHAR)0x05)
  246. #define MESG_FS_ANTFS_EVENT_ERASE_COMPLETE ((UCHAR)0x06)
  247. #define MESG_FS_ANTFS_EVENT_LINK_STATE ((UCHAR)0x07)
  248. #define MESG_FS_ANTFS_EVENT_AUTH_STATE ((UCHAR)0x08)
  249. #define MESG_FS_ANTFS_EVENT_TRANSPORT_STATE ((UCHAR)0x09)
  250. #define MESG_FS_ANTFS_EVENT_CMD_RECEIVED ((UCHAR)0x0A)
  251. #define MESG_FS_ANTFS_EVENT_CMD_PROCESSED ((UCHAR)0x0B)
  252. #define FS_NO_ERROR_RESPONSE ((UCHAR) 0x00)
  253. #define FS_MEMORY_UNFORMATTED_ERROR_RESPONSE ((UCHAR) 0x01)
  254. #define FS_MEMORY_NO_FREE_SECTORS_ERROR_RESPONSE ((UCHAR) 0x02)
  255. #define FS_MEMORY_READ_ERROR_RESPONSE ((UCHAR) 0x03)
  256. #define FS_MEMORY_WRITE_ERROR_RESPONSE ((UCHAR) 0x04)
  257. #define FS_MEMORY_ERASE_ERROR_RESPONSE ((UCHAR) 0x05)
  258. #define FS_TOO_MANY_FILES_OPEN_RESPONSE ((UCHAR) 0x06)
  259. #define FS_FILE_INDEX_INVALID_ERROR_RESPONSE ((UCHAR) 0x07)
  260. #define FS_FILE_INDEX_EXISTS_ERROR_RESPONSE ((UCHAR) 0x08)
  261. #define FS_AUTO_INDEX_FAILED_TRY_AGAIN_ERROR_RESPONSE ((UCHAR) 0x09)
  262. #define FS_FILE_ALREADY_OPEN_ERROR_RESPONSE ((UCHAR) 0x0A)
  263. #define FS_FILE_NOT_OPEN_ERROR_RESPONSE ((UCHAR) 0x0B)
  264. #define FS_DIR_CORRUPTED_ERROR_RESPONSE ((UCHAR) 0x0C)
  265. #define FS_INVALID_OFFSET_ERROR_RESPONSE ((UCHAR) 0x0D)
  266. #define FS_BAD_PERMISSIONS_ERROR_RESPONSE ((UCHAR) 0x0E)
  267. #define FS_EOF_REACHED_ERROR_RESPONSE ((UCHAR) 0x0F)
  268. #define FS_INVALID_FILE_HANDLE_ERROR_RESPONSE ((UCHAR) 0x10)
  269. #define FS_CRYPTO_OPEN_PERMISSION_ERROR_RESPONSE ((UCHAR) 0x32)
  270. #define FS_CRYPTO_HANDLE_ALREADY_IN_USE_RESPONSE ((UCHAR) 0x33)
  271. #define FS_CRYPTO_USER_KEY_NOT_SPECIFIED_RESPONSE ((UCHAR) 0x34)
  272. #define FS_CRYPTO_USER_KEY_ADD_ERROR_RESPONSE ((UCHAR) 0x35)
  273. #define FS_CRYPTO_USER_KEY_FETCH_ERROR_RESPONSE ((UCHAR) 0x36)
  274. #define FS_CRYPTO_IVNONE_READ_ERROR_RESPONSE ((UCHAR) 0x37)
  275. #define FS_CRYPTO_BLOCK_OFFSET_ERROR_RESPONSE ((UCHAR) 0x38)
  276. #define FS_CRYPTO_BLOCK_SIZE_ERROR_RESPONSE ((UCHAR) 0x39)
  277. #define FS_CRYPTO_CFG_TYPE_NOT_SUPPORTED_RESPONSE ((UCHAR) 0x40)
  278. #define FS_FIT_FILE_HEADER_ERROR_RESPONSE ((UCHAR) 0x64)
  279. #define FS_FIT_FILE_SIZE_INTEGRITY_ERROR_RESPONSE ((UCHAR) 0x65)
  280. #define FS_FIT_FILE_CRC_ERROR_RESPONSE ((UCHAR) 0x66)
  281. #define FS_FIT_FILE_CHECK_PERMISSION_ERROR_RESPONSE ((UCHAR) 0x67)
  282. #define FS_FIT_FILE_CHECK_FILE_TYPE_ERROR_RESPONSE ((UCHAR) 0x68)
  283. #define FS_FIT_FILE_OP_ABORT_ERROR_RESPONSE ((UCHAR) 0x69)
  284. //////////////////////////////////////////////
  285. // ANT EVENT return structure
  286. //////////////////////////////////////////////
  287. typedef struct
  288. {
  289. UCHAR ucChannel;
  290. UCHAR ucEvent;
  291. } ANT_EVENT;
  292. #endif // !ANTDEFINES_H