16 #ifndef __BLUENRG_HAL_ACI_H__ 17 #define __BLUENRG_HAL_ACI_H__ 163 #define EVT_BLUE_HAL_INITIALIZED (0x0001) 178 #define EVT_BLUE_HAL_EVENTS_LOST_IDB05A1 (0x0002) 180 uint8_t lost_events[8];
189 #define EVT_BLUE_HAL_CRASH_INFO_IDB05A1 (0x0003) 217 #define RESET_NORMAL 1 218 #define RESET_UPDATER_ACI 2 219 #define RESET_UPDATER_BAD_FLAG 3 220 #define RESET_UPDATER_PIN 4 221 #define RESET_WATCHDOG 5 222 #define RESET_LOCKUP 6 223 #define RESET_BROWNOUT 7 224 #define RESET_CRASH 8 225 #define RESET_ECC_ERR 9 243 #define CONFIG_DATA_PUBADDR_OFFSET (0x00) 244 #define CONFIG_DATA_DIV_OFFSET (0x06) 245 #define CONFIG_DATA_ER_OFFSET (0x08) 246 #define CONFIG_DATA_IR_OFFSET (0x18) 247 #define CONFIG_DATA_LL_WITHOUT_HOST (0x2C) 249 #define CONFIG_DATA_RANDOM_ADDRESS (0x80) 258 #define CONFIG_DATA_MODE_OFFSET (0x2D) 260 #define CONFIG_DATA_WATCHDOG_DISABLE (0x2F) 271 #define CONFIG_DATA_PUBADDR_LEN (6) 272 #define CONFIG_DATA_DIV_LEN (2) 273 #define CONFIG_DATA_ER_LEN (16) 274 #define CONFIG_DATA_IR_LEN (16) 275 #define CONFIG_DATA_LL_WITHOUT_HOST_LEN (1) 276 #define CONFIG_DATA_MODE_LEN (1) 277 #define CONFIG_DATA_WATCHDOG_DISABLE_LEN (1) 288 #define STATUS_IDLE 0 289 #define STATUS_ADVERTISING 1 290 #define STATUS_CONNECTED_AS_SLAVE 2 291 #define STATUS_SCANNING 3 292 #define STATUS_CONNECTED_AS_MASTER 5 293 #define STATUS_TX_TEST 6 294 #define STATUS_RX_TEST 7 309 #define EVT_DISCONN_COMPLETE_BIT 0 310 #define EVT_ENCRYPT_CHANGE_BIT 1 311 #define EVT_READ_REMOTE_VERSION_COMPLETE_BIT 2 312 #define EVT_CMD_COMPLETE_BIT 3 313 #define EVT_CMD_STATUS_BIT 4 314 #define EVT_HARDWARE_ERROR_BIT 5 315 #define EVT_NUM_COMP_PKTS_BIT 6 316 #define EVT_ENCRYPTION_KEY_REFRESH_BIT 7 317 #define EVT_BLUE_HAL_INITIALIZED_BIT 8 318 #define EVT_BLUE_GAP_SET_LIMITED_DISCOVERABLE_BIT 9 319 #define EVT_BLUE_GAP_PAIRING_CMPLT_BIT 10 320 #define EVT_BLUE_GAP_PASS_KEY_REQUEST_BIT 11 321 #define EVT_BLUE_GAP_AUTHORIZATION_REQUEST_BIT 12 322 #define EVT_BLUE_GAP_SECURITY_REQ_INITIATED_BIT 13 323 #define EVT_BLUE_GAP_BOND_LOST_BIT 14 324 #define EVT_BLUE_GAP_PROCEDURE_COMPLETE_BIT 15 325 #define EVT_BLUE_GAP_ADDR_NOT_RESOLVED_BIT 16 326 #define EVT_BLUE_L2CAP_CONN_UPDATE_RESP_BIT 17 327 #define EVT_BLUE_L2CAP_PROCEDURE_TIMEOUT_BIT 18 328 #define EVT_BLUE_L2CAP_CONN_UPDATE_REQ_BIT 19 329 #define EVT_BLUE_GATT_ATTRIBUTE_MODIFIED_BIT 20 330 #define EVT_BLUE_GATT_PROCEDURE_TIMEOUT_BIT 21 331 #define EVT_BLUE_EXCHANGE_MTU_RESP_BIT 22 332 #define EVT_BLUE_ATT_FIND_INFORMATION_RESP_BIT 23 333 #define EVT_BLUE_ATT_FIND_BY_TYPE_VAL_RESP_BIT 24 334 #define EVT_BLUE_ATT_READ_BY_TYPE_RESP_BIT 25 335 #define EVT_BLUE_ATT_READ_RESP_BIT 26 336 #define EVT_BLUE_ATT_READ_BLOB_RESP_BIT 27 337 #define EVT_BLUE_ATT_READ_MULTIPLE_RESP_BIT 28 338 #define EVT_BLUE_ATT_READ_BY_GROUP_RESP_BIT 29 339 #define EVT_BLUE_ATT_WRITE_RESP_BIT 30 340 #define EVT_BLUE_ATT_PREPARE_WRITE_RESP_BIT 31 341 #define EVT_BLUE_ATT_EXEC_WRITE_RESP_BIT 32 342 #define EVT_BLUE_GATT_INDICATION_BIT 33 343 #define EVT_BLUE_GATT_NOTIFICATION_BIT 34 344 #define EVT_BLUE_GATT_PROCEDURE_COMPLETE_BIT 35 345 #define EVT_BLUE_GATT_ERROR_RESP_BIT 36 346 #define EVT_BLUE_GATT_DISC_READ_CHARAC_BY_UUID_RESP_BIT 37 347 #define EVT_BLUE_GATT_WRITE_PERMIT_REQ_BIT 38 348 #define EVT_BLUE_GATT_READ_PERMIT_REQ_BIT 39 349 #define EVT_BLUE_GATT_READ_MULTI_PERMIT_REQ_BIT 40 350 #define EVT_BLUE_GATT_TX_POOL_AVAILABLE_BIT 41 351 #define EVT_BLUE_GATT_SERVER_RX_CONFIRMATION_BIT 42 352 #define EVT_BLUE_GATT_PREPARE_WRITE_PERMIT_REQ_BIT 43 353 #define EVT_LL_CONNECTION_COMPLETE_BIT 44 354 #define EVT_LL_ADVERTISING_REPORT_BIT 45 355 #define EVT_LL_CONNECTION_UPDATE_COMPLETE_BIT 46 356 #define EVT_LL_READ_REMOTE_USED_FEATURES_BIT 47 357 #define EVT_LL_LTK_REQUEST_BIT 48 370 #define SPI_FRAMING_ERROR 0 375 #define RADIO_STATE_ERROR 1 380 #define TIMER_OVERRUN_ERROR 2 uint8_t crash_type
Definition: bluenrg_hal_aci.h:191
__packed struct _evt_hal_initialized evt_hal_initialized
tBleStatus aci_hal_tone_start(uint8_t rf_channel)
This command starts a carrier frequency, i.e. a tone, on a specific channel.
Definition: bluenrg_hal_aci.c:176
tBleStatus aci_hal_le_tx_test_packet_number(uint32_t *number_of_packets)
This command returns the number of packets sent in Direct Test Mode.
Definition: bluenrg_hal_aci.c:136
__packed struct _evt_hal_crash_info evt_hal_crash_info_IDB05A1
Definition: bluenrg_hal_aci.h:164
tBleStatus aci_hal_get_fw_build_number(uint16_t *build_number)
This command retrieves the buid number of the firmware.
Definition: bluenrg_hal_aci.c:27
#define VARIABLE_SIZE
Definition: bluenrg_types.h:31
uint32_t sp
Definition: bluenrg_hal_aci.h:192
uint32_t lr
Definition: bluenrg_hal_aci.h:198
tBleStatus aci_hal_read_config_data(uint8_t offset, uint16_t data_len, uint8_t *data_len_out_p, uint8_t *data)
This command requests the value in the low level configure data structure. The number of read bytes c...
Definition: bluenrg_hal_aci.c:84
uint32_t r2
Definition: bluenrg_hal_aci.h:195
tBleStatus aci_hal_set_tx_power_level(uint8_t en_high_power, uint8_t pa_level)
This command sets the TX power level of the BlueNRG.
Definition: bluenrg_hal_aci.c:113
uint32_t xpsr
Definition: bluenrg_hal_aci.h:200
tBleStatus aci_hal_tone_stop(void)
Definition: bluenrg_hal_aci.c:198
uint8_t tBleStatus
Definition: bluenrg_def.h:37
tBleStatus aci_hal_get_anchor_period(uint32_t *anchor_period, uint32_t *max_free_slot)
This command returns the anchor period and the largest available slot.
Definition: bluenrg_hal_aci.c:239
uint32_t r0
Definition: bluenrg_hal_aci.h:193
tBleStatus aci_hal_device_standby(void)
Put the device in standby mode.
Definition: bluenrg_hal_aci.c:159
__packed struct _evt_hal_events_lost evt_hal_events_lost_IDB05A1
Definition: bluenrg_hal_aci.h:190
#define PACKED
Definition: bluenrg_types.h:63
uint32_t pc
Definition: bluenrg_hal_aci.h:199
tBleStatus aci_hal_get_link_status(uint8_t link_status[8], uint16_t conn_handle[8])
This command returns the status of all the connections.
Definition: bluenrg_hal_aci.c:215
uint32_t r12
Definition: bluenrg_hal_aci.h:197
uint8_t reason_code
Definition: bluenrg_hal_aci.h:165
uint32_t r1
Definition: bluenrg_hal_aci.h:194
uint8_t debug_data_len
Definition: bluenrg_hal_aci.h:201
tBleStatus aci_hal_write_config_data(uint8_t offset, uint8_t len, const uint8_t *val)
This command writes a value to a low level configure data structure.
Definition: bluenrg_hal_aci.c:49
Definition: bluenrg_hal_aci.h:179
uint32_t r3
Definition: bluenrg_hal_aci.h:196