antdefines.h 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355
  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
  4. in compliance with this license.
  5. Copyright (c) Dynastream Innovations Inc. 2016
  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_ACTIVE_SEARCH_SHARING_MODE_ENABLED ((UCHAR)0x10)
  121. #define CAPABILITIES_SELECTIVE_DATA_UPDATE_ENABLED ((UCHAR)0x40)
  122. #define CAPABILITIES_ENCRYPTED_CHANNEL_ENABLED ((UCHAR)0x80)
  123. //////////////////////////////////////////////
  124. // Burst Message Sequence
  125. //////////////////////////////////////////////
  126. #define CHANNEL_NUMBER_MASK ((UCHAR)0x1F)
  127. #define SEQUENCE_NUMBER_MASK ((UCHAR)0xE0)
  128. #define SEQUENCE_NUMBER_ROLLOVER ((UCHAR)0x60)
  129. #define SEQUENCE_FIRST_MESSAGE ((UCHAR)0x00)
  130. #define SEQUENCE_LAST_MESSAGE ((UCHAR)0x80)
  131. #define SEQUENCE_NUMBER_INC ((UCHAR)0x20)
  132. //////////////////////////////////////////////
  133. // Advanced Burst Config defines
  134. //////////////////////////////////////////////
  135. #define ADV_BURST_CONFIG_FREQ_HOP ((ULONG)0x00000001)
  136. //////////////////////////////////////////////
  137. // Extended Message ID Mask
  138. //////////////////////////////////////////////
  139. #define MSG_EXT_ID_MASK ((UCHAR)0xE0)
  140. //////////////////////////////////////////////
  141. // Control Message Flags
  142. //////////////////////////////////////////////
  143. #define BROADCAST_CONTROL_BYTE ((UCHAR)0x00)
  144. #define ACKNOWLEDGED_CONTROL_BYTE ((UCHAR)0xA0)
  145. //////////////////////////////////////////////
  146. // Response / Event Codes
  147. //////////////////////////////////////////////
  148. #define RESPONSE_NO_ERROR ((UCHAR)0x00)
  149. #define NO_EVENT ((UCHAR)0x00)
  150. #define EVENT_RX_SEARCH_TIMEOUT ((UCHAR)0x01)
  151. #define EVENT_RX_FAIL ((UCHAR)0x02)
  152. #define EVENT_TX ((UCHAR)0x03)
  153. #define EVENT_TRANSFER_RX_FAILED ((UCHAR)0x04)
  154. #define EVENT_TRANSFER_TX_COMPLETED ((UCHAR)0x05)
  155. #define EVENT_TRANSFER_TX_FAILED ((UCHAR)0x06)
  156. #define EVENT_CHANNEL_CLOSED ((UCHAR)0x07)
  157. #define EVENT_RX_FAIL_GO_TO_SEARCH ((UCHAR)0x08)
  158. #define EVENT_CHANNEL_COLLISION ((UCHAR)0x09)
  159. #define EVENT_TRANSFER_TX_START ((UCHAR)0x0A) // a pending transmit transfer has begun
  160. #define EVENT_CHANNEL_ACTIVE ((UCHAR)0x0F)
  161. #define EVENT_TRANSFER_TX_NEXT_MESSAGE ((UCHAR)0x11) // only enabled in FIT1
  162. #define CHANNEL_IN_WRONG_STATE ((UCHAR)0x15) // returned on attempt to perform an action from the wrong channel state
  163. #define CHANNEL_NOT_OPENED ((UCHAR)0x16) // returned on attempt to communicate on a channel that is not open
  164. #define CHANNEL_ID_NOT_SET ((UCHAR)0x18) // returned on attempt to open a channel without setting the channel ID
  165. #define CLOSE_ALL_CHANNELS ((UCHAR)0x19) // returned when attempting to start scanning mode, when channels are still open
  166. #define TRANSFER_IN_PROGRESS ((UCHAR)0x1F) // returned on attempt to communicate on a channel with a TX transfer in progress
  167. #define TRANSFER_SEQUENCE_NUMBER_ERROR ((UCHAR)0x20) // returned when sequence number is out of order on a Burst transfer
  168. #define TRANSFER_IN_ERROR ((UCHAR)0x21)
  169. #define TRANSFER_BUSY ((UCHAR)0x22)
  170. #define INVALID_MESSAGE_CRC ((UCHAR)0x26) // returned if there is a framing error on an incomming message
  171. #define MESSAGE_SIZE_EXCEEDS_LIMIT ((UCHAR)0x27) // returned if a data message is provided that is too large
  172. #define INVALID_MESSAGE ((UCHAR)0x28) // returned when the message has an invalid parameter
  173. #define INVALID_NETWORK_NUMBER ((UCHAR)0x29) // returned when an invalid network number is provided
  174. #define INVALID_LIST_ID ((UCHAR)0x30) // returned when the provided list ID or size exceeds the limit
  175. #define INVALID_SCAN_TX_CHANNEL ((UCHAR)0x31) // returned when attempting to transmit on channel 0 when in scan mode
  176. #define INVALID_PARAMETER_PROVIDED ((UCHAR)0x33) // returned when an invalid parameter is specified in a configuration message
  177. #define EVENT_SERIAL_QUE_OVERFLOW ((UCHAR)0x34)
  178. #define EVENT_QUE_OVERFLOW ((UCHAR)0x35) // ANT event que has overflowed and lost 1 or more events
  179. #define EVENT_CLK_ERROR ((UCHAR)0x36) // debug event for XOSC16M on LE1
  180. #define EVENT_STATE_OVERRUN ((UCHAR)0x37)
  181. #define EVENT_ENCRYPT_NEGOTIATION_SUCCESS ((UCHAR)0x38) // ANT stack generated event when connecting to an encrypted channel has succeeded
  182. #define EVENT_ENCRYPT_NEGOTIATION_FAIL ((UCHAR)0x39) // ANT stack generated event when connecting to an encrypted channel has failed
  183. #define SCRIPT_FULL_ERROR ((UCHAR)0x40) // error writing to script, memory is full
  184. #define SCRIPT_WRITE_ERROR ((UCHAR)0x41) // error writing to script, bytes not written correctly
  185. #define SCRIPT_INVALID_PAGE_ERROR ((UCHAR)0x42) // error accessing script page
  186. #define SCRIPT_LOCKED_ERROR ((UCHAR)0x43) // the scripts are locked and can't be dumped
  187. #define NO_RESPONSE_MESSAGE ((UCHAR)0x50) // returned to the Command_SerialMessageProcess function, so no reply message is generated
  188. #define RETURN_TO_MFG ((UCHAR)0x51) // default return to any mesg when the module determines that the mfg procedure has not been fully completed
  189. #define FIT_ACTIVE_SEARCH_TIMEOUT ((UCHAR)0x60) // Fit1 only event added for timeout of the pairing state after the Fit module becomes active
  190. #define FIT_WATCH_PAIR ((UCHAR)0x61) // Fit1 only
  191. #define FIT_WATCH_UNPAIR ((UCHAR)0x62) // Fit1 only
  192. #define USB_STRING_WRITE_FAIL ((UCHAR)0x70)
  193. // Internal only events below this point
  194. #define INTERNAL_ONLY_EVENTS ((UCHAR)0x80)
  195. #define EVENT_RX ((UCHAR)0x80) // INTERNAL: Event for a receive message
  196. #define EVENT_NEW_CHANNEL ((UCHAR)0x81) // INTERNAL: EVENT for a new active channel
  197. #define EVENT_PASS_THRU ((UCHAR)0x82) // INTERNAL: Event to allow an upper stack events to pass through lower stacks
  198. #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
  199. ///////////////////////////////////////////////////////
  200. // Script Command Codes
  201. ///////////////////////////////////////////////////////
  202. #define SCRIPT_CMD_FORMAT ((UCHAR)0x00)
  203. #define SCRIPT_CMD_DUMP ((UCHAR)0x01)
  204. #define SCRIPT_CMD_SET_DEFAULT_SECTOR ((UCHAR)0x02)
  205. #define SCRIPT_CMD_END_SECTOR ((UCHAR)0x03)
  206. #define SCRIPT_CMD_END_DUMP ((UCHAR)0x04)
  207. #define SCRIPT_CMD_LOCK ((UCHAR)0x05)
  208. ///////////////////////////////////////////////////////
  209. // USB Descriptor Strings
  210. ///////////////////////////////////////////////////////
  211. #define USB_DESCRIPTOR_VID_PID ((UCHAR) 0x00)
  212. #define USB_DESCRIPTOR_MANUFACTURER_STRING ((UCHAR) 0x01)
  213. #define USB_DESCRIPTOR_DEVICE_STRING ((UCHAR) 0x02)
  214. #define USB_DESCRIPTOR_SERIAL_STRING ((UCHAR) 0x03)
  215. ///////////////////////////////////////////////////////
  216. // Reset Mesg Codes
  217. ///////////////////////////////////////////////////////
  218. #define RESET_FLAGS_MASK ((UCHAR)0xE0)
  219. #define RESET_SUSPEND ((UCHAR)0x80) // this must follow bitfield def
  220. #define RESET_SYNC ((UCHAR)0x40) // this must follow bitfield def
  221. #define RESET_CMD ((UCHAR)0x20) // this must follow bitfield def
  222. #define RESET_WDT ((UCHAR)0x02)
  223. #define RESET_RST ((UCHAR)0x01)
  224. #define RESET_POR ((UCHAR)0x00)
  225. //////////////////////////////////////////////
  226. // PC Application Event Codes
  227. /////////////////////////////////////// ///////
  228. //NOTE: These events are not generated by the embedded ANT module
  229. #define EVENT_RX_BROADCAST ((UCHAR)0x9A) // returned when module receives broadcast data
  230. #define EVENT_RX_ACKNOWLEDGED ((UCHAR)0x9B) // returned when module receives acknowledged data
  231. #define EVENT_RX_BURST_PACKET ((UCHAR)0x9C) // returned when module receives burst data
  232. #define EVENT_RX_EXT_BROADCAST ((UCHAR)0x9D) // returned when module receives broadcast data
  233. #define EVENT_RX_EXT_ACKNOWLEDGED ((UCHAR)0x9E) // returned when module receives acknowledged data
  234. #define EVENT_RX_EXT_BURST_PACKET ((UCHAR)0x9F) // returned when module receives burst data
  235. #define EVENT_RX_RSSI_BROADCAST ((UCHAR)0xA0) // returned when module receives broadcast data
  236. #define EVENT_RX_RSSI_ACKNOWLEDGED ((UCHAR)0xA1) // returned when module receives acknowledged data
  237. #define EVENT_RX_RSSI_BURST_PACKET ((UCHAR)0xA2) // returned when module receives burst data
  238. #define EVENT_RX_FLAG_BROADCAST ((UCHAR)0xA3) // returned when module receives broadcast data with flag attached
  239. #define EVENT_RX_FLAG_ACKNOWLEDGED ((UCHAR)0xA4) // returned when module receives acknowledged data with flag attached
  240. #define EVENT_RX_FLAG_BURST_PACKET ((UCHAR)0xA5) // returned when module receives burst data with flag attached
  241. //////////////////////////////////////////////
  242. // Integrated ANT-FS Client Response/Event Codes
  243. //////////////////////////////////////////////
  244. #define MESG_FS_ANTFS_EVENT_PAIR_REQUEST ((UCHAR)0x01)
  245. #define MESG_FS_ANTFS_EVENT_DOWNLOAD_START ((UCHAR)0x02)
  246. #define MESG_FS_ANTFS_EVENT_UPLOAD_START ((UCHAR)0x03)
  247. #define MESG_FS_ANTFS_EVENT_DOWNLOAD_COMPLETE ((UCHAR)0x04)
  248. #define MESG_FS_ANTFS_EVENT_UPLOAD_COMPLETE ((UCHAR)0x05)
  249. #define MESG_FS_ANTFS_EVENT_ERASE_COMPLETE ((UCHAR)0x06)
  250. #define MESG_FS_ANTFS_EVENT_LINK_STATE ((UCHAR)0x07)
  251. #define MESG_FS_ANTFS_EVENT_AUTH_STATE ((UCHAR)0x08)
  252. #define MESG_FS_ANTFS_EVENT_TRANSPORT_STATE ((UCHAR)0x09)
  253. #define MESG_FS_ANTFS_EVENT_CMD_RECEIVED ((UCHAR)0x0A)
  254. #define MESG_FS_ANTFS_EVENT_CMD_PROCESSED ((UCHAR)0x0B)
  255. #define FS_NO_ERROR_RESPONSE ((UCHAR) 0x00)
  256. #define FS_MEMORY_UNFORMATTED_ERROR_RESPONSE ((UCHAR) 0x01)
  257. #define FS_MEMORY_NO_FREE_SECTORS_ERROR_RESPONSE ((UCHAR) 0x02)
  258. #define FS_MEMORY_READ_ERROR_RESPONSE ((UCHAR) 0x03)
  259. #define FS_MEMORY_WRITE_ERROR_RESPONSE ((UCHAR) 0x04)
  260. #define FS_MEMORY_ERASE_ERROR_RESPONSE ((UCHAR) 0x05)
  261. #define FS_TOO_MANY_FILES_OPEN_RESPONSE ((UCHAR) 0x06)
  262. #define FS_FILE_INDEX_INVALID_ERROR_RESPONSE ((UCHAR) 0x07)
  263. #define FS_FILE_INDEX_EXISTS_ERROR_RESPONSE ((UCHAR) 0x08)
  264. #define FS_AUTO_INDEX_FAILED_TRY_AGAIN_ERROR_RESPONSE ((UCHAR) 0x09)
  265. #define FS_FILE_ALREADY_OPEN_ERROR_RESPONSE ((UCHAR) 0x0A)
  266. #define FS_FILE_NOT_OPEN_ERROR_RESPONSE ((UCHAR) 0x0B)
  267. #define FS_DIR_CORRUPTED_ERROR_RESPONSE ((UCHAR) 0x0C)
  268. #define FS_INVALID_OFFSET_ERROR_RESPONSE ((UCHAR) 0x0D)
  269. #define FS_BAD_PERMISSIONS_ERROR_RESPONSE ((UCHAR) 0x0E)
  270. #define FS_EOF_REACHED_ERROR_RESPONSE ((UCHAR) 0x0F)
  271. #define FS_INVALID_FILE_HANDLE_ERROR_RESPONSE ((UCHAR) 0x10)
  272. #define FS_CRYPTO_OPEN_PERMISSION_ERROR_RESPONSE ((UCHAR) 0x32)
  273. #define FS_CRYPTO_HANDLE_ALREADY_IN_USE_RESPONSE ((UCHAR) 0x33)
  274. #define FS_CRYPTO_USER_KEY_NOT_SPECIFIED_RESPONSE ((UCHAR) 0x34)
  275. #define FS_CRYPTO_USER_KEY_ADD_ERROR_RESPONSE ((UCHAR) 0x35)
  276. #define FS_CRYPTO_USER_KEY_FETCH_ERROR_RESPONSE ((UCHAR) 0x36)
  277. #define FS_CRYPTO_IVNONE_READ_ERROR_RESPONSE ((UCHAR) 0x37)
  278. #define FS_CRYPTO_BLOCK_OFFSET_ERROR_RESPONSE ((UCHAR) 0x38)
  279. #define FS_CRYPTO_BLOCK_SIZE_ERROR_RESPONSE ((UCHAR) 0x39)
  280. #define FS_CRYPTO_CFG_TYPE_NOT_SUPPORTED_RESPONSE ((UCHAR) 0x40)
  281. #define FS_FIT_FILE_HEADER_ERROR_RESPONSE ((UCHAR) 0x64)
  282. #define FS_FIT_FILE_SIZE_INTEGRITY_ERROR_RESPONSE ((UCHAR) 0x65)
  283. #define FS_FIT_FILE_CRC_ERROR_RESPONSE ((UCHAR) 0x66)
  284. #define FS_FIT_FILE_CHECK_PERMISSION_ERROR_RESPONSE ((UCHAR) 0x67)
  285. #define FS_FIT_FILE_CHECK_FILE_TYPE_ERROR_RESPONSE ((UCHAR) 0x68)
  286. #define FS_FIT_FILE_OP_ABORT_ERROR_RESPONSE ((UCHAR) 0x69)
  287. //////////////////////////////////////////////
  288. // ANT EVENT return structure
  289. //////////////////////////////////////////////
  290. typedef struct
  291. {
  292. UCHAR ucChannel;
  293. UCHAR ucEvent;
  294. } ANT_EVENT;
  295. #endif // !ANTDEFINES_H