72 # define _aci_packed_ __attribute__((__packed__)) 74 # error "older g++ versions don't handle packed attribute in typedefs" 96 #define ACI_ASSERT_SIZE(x,y) typedef char x ## _assert_size_t[-1+10*(sizeof(x) == (y))] 104 #define ACI_VERSION (0x02) 109 #define BTLE_DEVICE_ADDRESS_SIZE (6) 114 #define ACI_PACKET_MAX_LEN (32) 119 #define ACI_ECHO_DATA_MAX_LEN (ACI_PACKET_MAX_LEN - 3) 124 #define ACI_DEVICE_MAX_PIPES (62) 129 #define ACI_PIPE_TX_DATA_MAX_LEN (20) 134 #define ACI_PIPE_RX_DATA_MAX_LEN (22) 139 #define ACI_GAP_DEVNAME_MAX_LEN (20) 144 #define ACI_AD_PACKET_MAX_LEN (31) 149 #define ACI_AD_PACKET_MAX_USER_LEN (31 - 3) 154 #define ACI_PIPE_INVALID (0xFF) 162 ACI_STORE_INVALID = 0x0,
163 ACI_STORE_LOCAL= 0x01,
164 ACI_STORE_REMOTE= 0x02
173 ACI_TX_BROADCAST = 0x0001,
181 ACI_TX_SIGN = 0x0100,
182 ACI_RX_SIGN = 0x0200,
183 ACI_RX_ACK_AUTO = 0x0400
186 ACI_ASSERT_SIZE(aci_pipe_type_t, 2);
194 ACI_BD_ADDR_TYPE_INVALID = 0x00,
195 ACI_BD_ADDR_TYPE_PUBLIC = 0x01,
196 ACI_BD_ADDR_TYPE_RANDOM_STATIC = 0x02,
197 ACI_BD_ADDR_TYPE_RANDOM_PRIVATE_RESOLVABLE = 0x03,
198 ACI_BD_ADDR_TYPE_RANDOM_PRIVATE_UNRESOLVABLE = 0x04
219 ACI_DEVICE_INVALID =0x00,
220 ACI_DEVICE_TEST =0x01,
221 ACI_DEVICE_SETUP =0x02,
222 ACI_DEVICE_STANDBY =0x03,
223 ACI_DEVICE_SLEEP =0x04
233 ACI_REASON_BAD_TIMING =0x02
242 ACI_TEST_MODE_DTM_UART = 0x01,
243 ACI_TEST_MODE_DTM_ACI = 0x02,
244 ACI_TEST_MODE_EXIT = 0xFF
248 ACI_ASSERT_SIZE(aci_test_mode_change_t, 1);
256 ACI_PERMISSIONS_NONE =0x00,
257 ACI_PERMISSIONS_LINK_AUTHENTICATED =0x01
265 #define ACI_VS_UUID_128_MAX_COUNT 64 274 #define ACI_PPCP_MIN_CONN_INTVL_NONE 0xFFFF 275 #define ACI_PPCP_MIN_CONN_INTVL_MIN 0x0006 276 #define ACI_PPCP_MIN_CONN_INTVL_MAX 0x0C80 278 #define ACI_PPCP_MAX_CONN_INTVL_NONE 0xFFFF 279 #define ACI_PPCP_MAX_CONN_INTVL_MIN 0x0006 280 #define ACI_PPCP_MAX_CONN_INTVL_MAX 0x0C80 282 #define ACI_PPCP_SLAVE_LATENCY_MAX 0x03E8 284 #define ACI_PPCP_TIMEOUT_MULT_NONE 0xFFFF 285 #define ACI_PPCP_TIMEOUT_MULT_MIN 0x000A 286 #define ACI_PPCP_TIMEOUT_MULT_MAX 0x0C80 293 #define aci_gap_ppcp_t aci_ll_conn_params_t 300 #define ACI_AD_LOC_SVCUUID_16_MAX_COUNT 5 307 #define ACI_AD_LOC_SVCUUID_128_MAX_COUNT 1 314 #define ACI_AD_SOL_SVCUUID_16_MAX_COUNT 5 321 #define ACI_AD_SOL_SVCUUID_128_MAX_COUNT 1 327 #define ACI_SEC_ENCKEY_SIZE_MIN 7 332 #define ACI_SEC_ENCKEY_SIZE_MAX 16 337 #define ACI_CUSTOM_AD_TYPE_MAX_COUNT 8 342 #define ACI_CUSTOM_AD_TYPE_MAX_DATA_LENGTH 20 374 ACI_HW_ERROR_NONE = 0x00,
375 ACI_HW_ERROR_FATAL = 0x01
384 ACI_CLOCK_ACCURACY_500_PPM = 0x00,
385 ACI_CLOCK_ACCURACY_250_PPM = 0x01,
386 ACI_CLOCK_ACCURACY_150_PPM = 0x02,
387 ACI_CLOCK_ACCURACY_100_PPM = 0x03,
388 ACI_CLOCK_ACCURACY_75_PPM = 0x04,
389 ACI_CLOCK_ACCURACY_50_PPM = 0x05,
390 ACI_CLOCK_ACCURACY_30_PPM = 0x06,
391 ACI_CLOCK_ACCURACY_20_PPM = 0x07
400 ACI_APP_LATENCY_DISABLE = 0,
401 ACI_APP_LATENCY_ENABLE = 1
414 ACI_GATT_FORMAT_UINT8 = 0x04,
415 ACI_GATT_FORMAT_UINT12 = 0x05,
416 ACI_GATT_FORMAT_UINT16 = 0x06,
417 ACI_GATT_FORMAT_UINT24 = 0x07,
418 ACI_GATT_FORMAT_UINT32 = 0x08,
419 ACI_GATT_FORMAT_UINT48 = 0x09,
420 ACI_GATT_FORMAT_UINT64 = 0x0A,
421 ACI_GATT_FORMAT_UINT128 = 0x0B,
422 ACI_GATT_FORMAT_SINT8 = 0x0C,
423 ACI_GATT_FORMAT_SINT12 = 0x0D,
424 ACI_GATT_FORMAT_SINT16 = 0x0E,
425 ACI_GATT_FORMAT_SINT24 = 0x0F,
426 ACI_GATT_FORMAT_SINT32 = 0x10,
427 ACI_GATT_FORMAT_SINT48 = 0x11,
428 ACI_GATT_FORMAT_SINT64 = 0x12,
429 ACI_GATT_FORMAT_SINT128 = 0x13,
430 ACI_GATT_FORMAT_FLOAT32 = 0x14,
431 ACI_GATT_FORMAT_FLOAT64 = 0x15,
432 ACI_GATT_FORMAT_SFLOAT = 0x16,
433 ACI_GATT_FORMAT_FLOAT = 0x17,
434 ACI_GATT_FORMAT_DUINT16 = 0x18,
435 ACI_GATT_FORMAT_UTF8S = 0x19,
436 ACI_GATT_FORMAT_UTF16S = 0x1A,
437 ACI_GATT_FORMAT_STRUCT = 0x1B
445 ACI_GATT_NAMESPACE_INVALID = 0x00,
454 ACI_KEY_TYPE_INVALID = 0x00,
455 ACI_KEY_TYPE_PASSKEY = 0x01
519 ACI_ASSERT_SIZE(aci_bond_status_code_t, 1);
527 ACI_BOND_STATUS_SOURCE_INVALID = 0x00,
528 ACI_BOND_STATUS_SOURCE_LOCAL = 0x01,
529 ACI_BOND_STATUS_SOURCE_REMOTE = 0x02
666 ACI_ASSERT_SIZE(aci_status_code_t, 1);
uint16_t min_conn_interval
Definition: aci.h:273
#define ACI_PIPE_RX_DATA_MAX_LEN
Maximum length in bytes of a reception data pipe packet.
Definition: aci.h:134
uint16_t slave_latency
Definition: aci.h:281
uint16_t max_conn_interval
Definition: aci.h:277
#define ACI_PIPE_TX_DATA_MAX_LEN
Maximum length in bytes of a transmission data pipe packet.
Definition: aci.h:129
Structure for the ACI_CMD_SET_LOCAL_DATA ACI command parameters.
Definition: aci.h:271
uint16_t timeout_mult
Definition: aci.h:283