PlatformIO package of the Teensy core framework compatible with GCC 10 & C++20
Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.

609 lines
17KB

  1. /* Copyright (c) 2010 Nordic Semiconductor. All Rights Reserved.
  2. *
  3. * The information contained herein is property of Nordic Semiconductor ASA.
  4. * Terms and conditions of usage are described in detail in NORDIC
  5. * SEMICONDUCTOR STANDARD SOFTWARE LICENSE AGREEMENT.
  6. *
  7. * Licensees are granted free, non-transferable use of the information. NO
  8. * WARRANTY of ANY KIND is provided. This heading must NOT be removed from
  9. * the file.
  10. *
  11. * $LastChangedRevision$
  12. */
  13. /**
  14. * @file
  15. *
  16. * @defgroup aci aci
  17. * @{
  18. * @ingroup lib
  19. *
  20. * @brief Definitions for the ACI (Application Control Interface)
  21. * @remarks
  22. *
  23. * Flow control from application mcu to nRF8001
  24. *
  25. * Data flow control:
  26. * The flow control is credit based and the credit is initally given using the "device started" event.
  27. * A credit of more than 1 is given to the application mcu.
  28. * These credits are used only after the "ACI Connected Event" is sent to the application mcu.
  29. *
  30. * every send_data that is used decrements the credit available by 1. This is to be tracked by the application mcu.
  31. * When the credit available reaches 0, the application mcu shall not send any more send_data.
  32. * Credit is returned using the "credit event", this returned credit can then be used to send more send_data.
  33. * This flow control is not necessary and not available for Broadcast.
  34. * The entire credit available with the external mcu expires when a "disconnected" event arrives.
  35. *
  36. * Command flow control:
  37. * When a command is sent over the ACI, the next command shall not be sent until after a response
  38. * for the command sent has arrived.
  39. *
  40. */
  41. #ifndef ACI_H__
  42. #define ACI_H__
  43. /**
  44. * @def ACI_VERSION
  45. * @brief Current ACI protocol version. 0 means a device that is not yet released.
  46. * A numer greater than 0 refers to a specific ACI version documented and released.
  47. * The ACI consists of the ACI commands, ACI events and error codes.
  48. */
  49. #define ACI_VERSION (0x02)
  50. /**
  51. * @def BTLE_DEVICE_ADDRESS_SIZE
  52. * @brief Size in bytes of a Bluetooth Address
  53. */
  54. #define BTLE_DEVICE_ADDRESS_SIZE (6)
  55. /**
  56. * @def ACI_PACKET_MAX_LEN
  57. * @brief Maximum length in bytes of a full ACI packet, including length prefix, opcode and payload
  58. */
  59. #define ACI_PACKET_MAX_LEN (32)
  60. /**
  61. * @def ACI_ECHO_DATA_MAX_LEN
  62. * @brief Maximum length in bytes of the echo data portion
  63. */
  64. #define ACI_ECHO_DATA_MAX_LEN (ACI_PACKET_MAX_LEN - 3)
  65. /**
  66. * @def ACI_DEVICE_MAX_PIPES
  67. * @brief Maximum number of ACI pipes
  68. */
  69. #define ACI_DEVICE_MAX_PIPES (62)
  70. /**
  71. * @def ACI_PIPE_TX_DATA_MAX_LEN
  72. * @brief Maximum length in bytes of a transmission data pipe packet
  73. */
  74. #define ACI_PIPE_TX_DATA_MAX_LEN (20)
  75. /**
  76. * @def ACI_PIPE_RX_DATA_MAX_LEN
  77. * @brief Maximum length in bytes of a reception data pipe packet
  78. */
  79. #define ACI_PIPE_RX_DATA_MAX_LEN (22)
  80. /**
  81. * @def ACI_GAP_DEVNAME_MAX_LEN
  82. * @brief Maximum length in bytes of the GAP device name
  83. */
  84. #define ACI_GAP_DEVNAME_MAX_LEN (20)
  85. /**
  86. * @def ACI_AD_PACKET_MAX_LEN
  87. * @brief Maximum length in bytes of an AD packet
  88. */
  89. #define ACI_AD_PACKET_MAX_LEN (31)
  90. /**
  91. * @def ACI_AD_PACKET_MAX_USER_LEN
  92. * @brief Maximum usable length in bytes of an AD packet
  93. */
  94. #define ACI_AD_PACKET_MAX_USER_LEN (31 - 3)
  95. /**
  96. * @def ACI_PIPE_INVALID
  97. * @brief Invalid pipe number
  98. */
  99. #define ACI_PIPE_INVALID (0xFF)
  100. /**
  101. * @enum aci_pipe_store_t
  102. * @brief Storage type identifiers: local and remote
  103. */
  104. typedef enum
  105. {
  106. ACI_STORE_INVALID = 0x0,
  107. ACI_STORE_LOCAL= 0x01,
  108. ACI_STORE_REMOTE= 0x02
  109. } aci_pipe_store_t;
  110. /**
  111. * @enum aci_pipe_type_t
  112. * @brief Pipe types
  113. */
  114. typedef enum
  115. {
  116. ACI_TX_BROADCAST = 0x0001,
  117. ACI_TX = 0x0002,
  118. ACI_TX_ACK = 0x0004,
  119. ACI_RX = 0x0008,
  120. ACI_RX_ACK = 0x0010,
  121. ACI_TX_REQ = 0x0020,
  122. ACI_RX_REQ = 0x0040,
  123. ACI_SET = 0x0080,
  124. ACI_TX_SIGN = 0x0100,
  125. ACI_RX_SIGN = 0x0200,
  126. ACI_RX_ACK_AUTO = 0x0400
  127. } aci_pipe_type_t;
  128. /**
  129. * @enum aci_bd_addr_type_t
  130. * @brief Bluetooth Address types
  131. */
  132. typedef enum
  133. {
  134. ACI_BD_ADDR_TYPE_INVALID = 0x00,
  135. ACI_BD_ADDR_TYPE_PUBLIC = 0x01,
  136. ACI_BD_ADDR_TYPE_RANDOM_STATIC = 0x02,
  137. ACI_BD_ADDR_TYPE_RANDOM_PRIVATE_RESOLVABLE = 0x03,
  138. ACI_BD_ADDR_TYPE_RANDOM_PRIVATE_UNRESOLVABLE = 0x04
  139. } aci_bd_addr_type_t;
  140. /**
  141. * @enum aci_device_output_power_t
  142. * @brief Radio output power levels
  143. */
  144. typedef enum
  145. {
  146. ACI_DEVICE_OUTPUT_POWER_MINUS_18DBM = 0x00, /**< Output power set to -18dBm */
  147. ACI_DEVICE_OUTPUT_POWER_MINUS_12DBM = 0x01, /**< Output power set to -12dBm */
  148. ACI_DEVICE_OUTPUT_POWER_MINUS_6DBM = 0x02, /**< Output power set to -6dBm */
  149. ACI_DEVICE_OUTPUT_POWER_0DBM = 0x03 /**< Output power set to 0dBm - DEFAULT*/
  150. } aci_device_output_power_t;
  151. /**
  152. * @enum aci_device_operation_mode_t
  153. * @brief Device operation modes
  154. */
  155. typedef enum
  156. {
  157. ACI_DEVICE_INVALID =0x00,
  158. ACI_DEVICE_TEST =0x01,
  159. ACI_DEVICE_SETUP =0x02,
  160. ACI_DEVICE_STANDBY =0x03,
  161. ACI_DEVICE_SLEEP =0x04
  162. } aci_device_operation_mode_t;
  163. /**
  164. * @enum aci_disconnect_reason_t
  165. * @brief Reason enumeration for ACI_CMD_DISCONNECT
  166. */
  167. typedef enum
  168. {
  169. ACI_REASON_TERMINATE =0x01, /**< Use this to disconnect (does a terminate request), you need to wait for the "disconnected" event */
  170. ACI_REASON_BAD_TIMING =0x02 /*<Use this to disconnect and inform the peer, that the timing on the link is not acceptable for the device, you need to wait for the "disconnected" event */
  171. } aci_disconnect_reason_t;
  172. /**
  173. * @enum aci_test_mode_change_t
  174. * @brief Device test mode control
  175. */
  176. typedef enum
  177. {
  178. ACI_TEST_MODE_DTM_UART = 0x01,
  179. ACI_TEST_MODE_DTM_ACI = 0x02,
  180. ACI_TEST_MODE_EXIT = 0xFF
  181. } aci_test_mode_change_t;
  182. /**
  183. * @enum aci_permissions_t
  184. * @brief Data store permissions
  185. */
  186. typedef enum
  187. {
  188. ACI_PERMISSIONS_NONE =0x00,
  189. ACI_PERMISSIONS_LINK_AUTHENTICATED =0x01
  190. } aci_permissions_t;
  191. /**
  192. * @def ACI_VS_UUID_128_MAX_COUNT
  193. * @brief Maximum number of 128-bit Vendor Specific
  194. * UUIDs that can be set
  195. */
  196. #define ACI_VS_UUID_128_MAX_COUNT 64 /** #0 reserved for invalid, #1 reservered for BT SIG and a maximum of 1024 bytes (16*64) */
  197. /**
  198. * @struct aci_ll_conn_params_t
  199. * @brief Link Layer Connection Parameters
  200. */
  201. typedef struct
  202. {
  203. uint16_t min_conn_interval; /**< Minimum connection interval requested from peer */
  204. #define ACI_PPCP_MIN_CONN_INTVL_NONE 0xFFFF
  205. #define ACI_PPCP_MIN_CONN_INTVL_MIN 0x0006
  206. #define ACI_PPCP_MIN_CONN_INTVL_MAX 0x0C80
  207. uint16_t max_conn_interval; /**< Maximum connection interval requested from peer */
  208. #define ACI_PPCP_MAX_CONN_INTVL_NONE 0xFFFF
  209. #define ACI_PPCP_MAX_CONN_INTVL_MIN 0x0006
  210. #define ACI_PPCP_MAX_CONN_INTVL_MAX 0x0C80
  211. uint16_t slave_latency; /**< Connection interval latency requested from peer */
  212. #define ACI_PPCP_SLAVE_LATENCY_MAX 0x03E8
  213. uint16_t timeout_mult; /**< Link supervisor timeout multiplier requested from peer */
  214. #define ACI_PPCP_TIMEOUT_MULT_NONE 0xFFFF
  215. #define ACI_PPCP_TIMEOUT_MULT_MIN 0x000A
  216. #define ACI_PPCP_TIMEOUT_MULT_MAX 0x0C80
  217. } aci_ll_conn_params_t;
  218. /**
  219. * @def aci_gap_ppcp_t
  220. * @brief GAP Peripheral Preferred Connection Parameters
  221. */
  222. #define aci_gap_ppcp_t aci_ll_conn_params_t
  223. /**
  224. * @def ACI_AD_LOC_SVCUUID_16_MAX_COUNT
  225. * @brief Maximum number of 16-bit UUIDs that can
  226. * be inserted in the Services tag of AD
  227. */
  228. #define ACI_AD_LOC_SVCUUID_16_MAX_COUNT 5
  229. /**
  230. * @def ACI_AD_LOC_SVCUUID_128_MAX_COUNT
  231. * @brief Maximum number of 128-bit UUIDs that can
  232. * be inserted in the Services tag of AD
  233. */
  234. #define ACI_AD_LOC_SVCUUID_128_MAX_COUNT 1
  235. /**
  236. * @def ACI_AD_SOL_SVCUUID_16_MAX_COUNT
  237. * @brief Maximum number of UUIDs that can
  238. * be inserted in the Solicited Services tag of AD
  239. */
  240. #define ACI_AD_SOL_SVCUUID_16_MAX_COUNT 5
  241. /**
  242. * @def ACI_AD_SOL_SVCUUID_128_MAX_COUNT
  243. * @brief Maximum number of UUIDs that can
  244. * be inserted in the Solicited Services tag of AD
  245. */
  246. #define ACI_AD_SOL_SVCUUID_128_MAX_COUNT 1
  247. /**
  248. * @def ACI_SEC_ENCKEY_SIZE_MIN
  249. * @brief Minimum encryption key size
  250. */
  251. #define ACI_SEC_ENCKEY_SIZE_MIN 7
  252. /**
  253. * @def ACI_SEC_ENCKEY_SIZE_MAX
  254. * @brief Maximum encryption key size
  255. */
  256. #define ACI_SEC_ENCKEY_SIZE_MAX 16
  257. /**
  258. * @def ACI_CUSTOM_AD_TYPE_MAX_COUNT
  259. * @brief Maximum number of custom ad types
  260. */
  261. #define ACI_CUSTOM_AD_TYPE_MAX_COUNT 8
  262. /**
  263. * @def ACI_CUSTOM_AD_TYPE_MAX_DATA_LENGTH
  264. * @brief Maximum custom ad type data size
  265. */
  266. #define ACI_CUSTOM_AD_TYPE_MAX_DATA_LENGTH 20
  267. /**
  268. * @struct aci_tx_data_t
  269. * @brief Generic ACI transmit data structure
  270. */
  271. typedef struct
  272. {
  273. uint8_t pipe_number;
  274. uint8_t aci_data[ACI_PIPE_TX_DATA_MAX_LEN];
  275. } aci_tx_data_t;
  276. /**
  277. * @struct aci_rx_data_t
  278. * @brief Generic ACI receive data structure
  279. */
  280. typedef struct
  281. {
  282. uint8_t pipe_number;
  283. uint8_t aci_data[ACI_PIPE_RX_DATA_MAX_LEN];
  284. } aci_rx_data_t;
  285. /**
  286. * @enum aci_hw_error_t
  287. * @brief Hardware Error codes
  288. */
  289. typedef enum
  290. {
  291. ACI_HW_ERROR_NONE = 0x00,
  292. ACI_HW_ERROR_FATAL = 0x01
  293. } aci_hw_error_t;
  294. /**
  295. * @enum aci_clock_accuracy_t
  296. * @brief Bluetooth Low Energy Clock Accuracy
  297. */
  298. typedef enum
  299. {
  300. ACI_CLOCK_ACCURACY_500_PPM = 0x00,
  301. ACI_CLOCK_ACCURACY_250_PPM = 0x01,
  302. ACI_CLOCK_ACCURACY_150_PPM = 0x02,
  303. ACI_CLOCK_ACCURACY_100_PPM = 0x03,
  304. ACI_CLOCK_ACCURACY_75_PPM = 0x04,
  305. ACI_CLOCK_ACCURACY_50_PPM = 0x05,
  306. ACI_CLOCK_ACCURACY_30_PPM = 0x06,
  307. ACI_CLOCK_ACCURACY_20_PPM = 0x07
  308. } aci_clock_accuracy_t;
  309. /**
  310. * @enum aci_app_latency_mode_t
  311. * @brief Application latency modes
  312. */
  313. typedef enum
  314. {
  315. ACI_APP_LATENCY_DISABLE = 0,
  316. ACI_APP_LATENCY_ENABLE = 1
  317. } aci_app_latency_mode_t;
  318. /**
  319. * @enum gatt_format_t
  320. * @brief GATT format definitions
  321. */
  322. typedef enum
  323. {
  324. ACI_GATT_FORMAT_NONE = 0x00, /**< No characteristic format available */
  325. ACI_GATT_FORMAT_BOOLEAN = 0x01, /**< Not Supported */
  326. ACI_GATT_FORMAT_2BIT = 0x02, /**< Not Supported */
  327. ACI_GATT_FORMAT_NIBBLE = 0x03, /**< Not Supported */
  328. ACI_GATT_FORMAT_UINT8 = 0x04,
  329. ACI_GATT_FORMAT_UINT12 = 0x05,
  330. ACI_GATT_FORMAT_UINT16 = 0x06,
  331. ACI_GATT_FORMAT_UINT24 = 0x07,
  332. ACI_GATT_FORMAT_UINT32 = 0x08,
  333. ACI_GATT_FORMAT_UINT48 = 0x09,
  334. ACI_GATT_FORMAT_UINT64 = 0x0A,
  335. ACI_GATT_FORMAT_UINT128 = 0x0B,
  336. ACI_GATT_FORMAT_SINT8 = 0x0C,
  337. ACI_GATT_FORMAT_SINT12 = 0x0D,
  338. ACI_GATT_FORMAT_SINT16 = 0x0E,
  339. ACI_GATT_FORMAT_SINT24 = 0x0F,
  340. ACI_GATT_FORMAT_SINT32 = 0x10,
  341. ACI_GATT_FORMAT_SINT48 = 0x11,
  342. ACI_GATT_FORMAT_SINT64 = 0x12,
  343. ACI_GATT_FORMAT_SINT128 = 0x13,
  344. ACI_GATT_FORMAT_FLOAT32 = 0x14,
  345. ACI_GATT_FORMAT_FLOAT64 = 0x15,
  346. ACI_GATT_FORMAT_SFLOAT = 0x16,
  347. ACI_GATT_FORMAT_FLOAT = 0x17,
  348. ACI_GATT_FORMAT_DUINT16 = 0x18,
  349. ACI_GATT_FORMAT_UTF8S = 0x19,
  350. ACI_GATT_FORMAT_UTF16S = 0x1A,
  351. ACI_GATT_FORMAT_STRUCT = 0x1B
  352. } aci_gatt_format_t;
  353. /**
  354. * @brief GATT Bluetooth namespace
  355. */
  356. typedef enum
  357. {
  358. ACI_GATT_NAMESPACE_INVALID = 0x00,
  359. ACI_GATT_NAMESPACE_BTSIG = 0x01 /**< Bluetooth SIG */
  360. } aci_gatt_namespace_t;
  361. /**
  362. * @brief Security key types
  363. */
  364. typedef enum
  365. {
  366. ACI_KEY_TYPE_INVALID = 0x00,
  367. ACI_KEY_TYPE_PASSKEY = 0x01
  368. } aci_key_type_t;
  369. /**
  370. * @enum aci_bond_status_code_t
  371. * @brief Bond status code
  372. */
  373. typedef enum
  374. {
  375. /**
  376. * Bonding succeeded
  377. */
  378. ACI_BOND_STATUS_SUCCESS = 0x00,
  379. /**
  380. * Bonding failed
  381. */
  382. ACI_BOND_STATUS_FAILED = 0x01,
  383. /**
  384. * Bonding error: Timeout can occur when link termination is unexpected or did not get connected OR SMP timer expired
  385. */
  386. ACI_BOND_STATUS_FAILED_TIMED_OUT = 0x02,
  387. /**
  388. * Bonding error: Passkey entry failed
  389. */
  390. ACI_BOND_STATUS_FAILED_PASSKEY_ENTRY_FAILED = 0x81,
  391. /**
  392. * Bonding error: OOB unavailable
  393. */
  394. ACI_BOND_STATUS_FAILED_OOB_UNAVAILABLE = 0x82,
  395. /**
  396. * Bonding error: Authentication request failed
  397. */
  398. ACI_BOND_STATUS_FAILED_AUTHENTICATION_REQ = 0x83,
  399. /**
  400. * Bonding error: Confirm value failed
  401. */
  402. ACI_BOND_STATUS_FAILED_CONFIRM_VALUE = 0x84,
  403. /**
  404. * Bonding error: Pairing unsupported
  405. */
  406. ACI_BOND_STATUS_FAILED_PAIRING_UNSUPPORTED = 0x85,
  407. /**
  408. * Bonding error: Invalid encryption key size
  409. */
  410. ACI_BOND_STATUS_FAILED_ENCRYPTION_KEY_SIZE = 0x86,
  411. /**
  412. * Bonding error: Unsupported SMP command
  413. */
  414. ACI_BOND_STATUS_FAILED_SMP_CMD_UNSUPPORTED = 0x87,
  415. /**
  416. * Bonding error: Unspecified reason
  417. */
  418. ACI_BOND_STATUS_FAILED_UNSPECIFIED_REASON = 0x88,
  419. /**
  420. * Bonding error: Too many attempts
  421. */
  422. ACI_BOND_STATUS_FAILED_REPEATED_ATTEMPTS = 0x89,
  423. /**
  424. * Bonding error: Invalid parameters
  425. */
  426. ACI_BOND_STATUS_FAILED_INVALID_PARAMETERS = 0x8A
  427. } aci_bond_status_code_t;
  428. /**
  429. * @enum aci_bond_status_source_t
  430. * @brief Source of a bond status code
  431. */
  432. typedef enum
  433. {
  434. ACI_BOND_STATUS_SOURCE_INVALID = 0x00,
  435. ACI_BOND_STATUS_SOURCE_LOCAL = 0x01,
  436. ACI_BOND_STATUS_SOURCE_REMOTE = 0x02
  437. } aci_bond_status_source_t;
  438. /**
  439. * @enum aci_status_code_t
  440. * @brief ACI status codes
  441. */
  442. typedef enum
  443. {
  444. /**
  445. * Success
  446. */
  447. ACI_STATUS_SUCCESS = 0x00,
  448. /**
  449. * Transaction continuation status
  450. */
  451. ACI_STATUS_TRANSACTION_CONTINUE = 0x01,
  452. /**
  453. * Transaction completed
  454. */
  455. ACI_STATUS_TRANSACTION_COMPLETE = 0x02,
  456. /**
  457. * Extended status, further checks needed
  458. */
  459. ACI_STATUS_EXTENDED = 0x03,
  460. /**
  461. * Unknown error.
  462. */
  463. ACI_STATUS_ERROR_UNKNOWN = 0x80,
  464. /**
  465. * Internal error.
  466. */
  467. ACI_STATUS_ERROR_INTERNAL = 0x81,
  468. /**
  469. * Unknown command
  470. */
  471. ACI_STATUS_ERROR_CMD_UNKNOWN = 0x82,
  472. /**
  473. * Command invalid in the current device state
  474. */
  475. ACI_STATUS_ERROR_DEVICE_STATE_INVALID = 0x83,
  476. /**
  477. * Invalid length
  478. */
  479. ACI_STATUS_ERROR_INVALID_LENGTH = 0x84,
  480. /**
  481. * Invalid input parameters
  482. */
  483. ACI_STATUS_ERROR_INVALID_PARAMETER = 0x85,
  484. /**
  485. * Busy
  486. */
  487. ACI_STATUS_ERROR_BUSY = 0x86,
  488. /**
  489. * Invalid data format or contents
  490. */
  491. ACI_STATUS_ERROR_INVALID_DATA = 0x87,
  492. /**
  493. * CRC mismatch
  494. */
  495. ACI_STATUS_ERROR_CRC_MISMATCH = 0x88,
  496. /**
  497. * Unsupported setup format
  498. */
  499. ACI_STATUS_ERROR_UNSUPPORTED_SETUP_FORMAT = 0x89,
  500. /**
  501. * Invalid sequence number during a write dynamic data sequence
  502. */
  503. ACI_STATUS_ERROR_INVALID_SEQ_NO = 0x8A,
  504. /**
  505. * Setup data is locked and cannot be modified
  506. */
  507. ACI_STATUS_ERROR_SETUP_LOCKED = 0x8B,
  508. /**
  509. * Setup error due to lock verification failure
  510. */
  511. ACI_STATUS_ERROR_LOCK_FAILED = 0x8C,
  512. /**
  513. * Bond required: Local Pipes need bonded/trusted peer
  514. */
  515. ACI_STATUS_ERROR_BOND_REQUIRED = 0x8D,
  516. /**
  517. * Command rejected as a transaction is still pending
  518. */
  519. ACI_STATUS_ERROR_REJECTED = 0x8E,
  520. /**
  521. * Pipe Error Event : Data size exceeds size specified for pipe : Transmit failed
  522. */
  523. ACI_STATUS_ERROR_DATA_SIZE = 0x8F,
  524. /**
  525. * Pipe Error Event : Invalid pipe
  526. */
  527. ACI_STATUS_ERROR_PIPE_INVALID = 0x90,
  528. /**
  529. * Pipe Error Event : Credit not available
  530. */
  531. ACI_STATUS_ERROR_CREDIT_NOT_AVAILABLE = 0x91,
  532. /**
  533. * Pipe Error Event : Peer device has sent an error on an pipe operation on the remote characteristic
  534. */
  535. ACI_STATUS_ERROR_PEER_ATT_ERROR = 0x92,
  536. /**
  537. * Connection was not established before the BTLE advertising was stopped
  538. */
  539. ACI_STATUS_ERROR_ADVT_TIMEOUT = 0x93,
  540. /**
  541. * Peer has triggered a Security Manager Protocol Error
  542. */
  543. ACI_STATUS_ERROR_PEER_SMP_ERROR = 0x94,
  544. /**
  545. * Pipe Error Event : Pipe type invalid for the selected operation
  546. */
  547. ACI_STATUS_ERROR_PIPE_TYPE_INVALID = 0x95,
  548. /**
  549. * Pipe Error Event : Pipe state invalid for the selected operation
  550. */
  551. ACI_STATUS_ERROR_PIPE_STATE_INVALID = 0x96,
  552. /**
  553. * Invalid key size provided
  554. */
  555. ACI_STATUS_ERROR_INVALID_KEY_SIZE = 0x97,
  556. /**
  557. * Invalid key data provided
  558. */
  559. ACI_STATUS_ERROR_INVALID_KEY_DATA = 0x98,
  560. /**
  561. * Reserved range start
  562. */
  563. ACI_STATUS_RESERVED_START = 0xF0,
  564. /**
  565. * Reserved range end
  566. */
  567. ACI_STATUS_RESERVED_END = 0xFF
  568. } aci_status_code_t;
  569. /**
  570. * @}
  571. */
  572. #endif // ACI_H__