![]() |
BlueNRG-MS pack for STM32CubeMX
V4.4.0
The BlueNRG-MS pack is an additional software for STM32CubeMX.
|
hci_const.h File Reference
Go to the source code of this file.
Macro Definition Documentation
◆ cmd_opcode_ocf
#define cmd_opcode_ocf | ( | op | ) | (op & 0x03ff) |
◆ cmd_opcode_ogf
#define cmd_opcode_ogf | ( | op | ) | (op >> 10) |
◆ cmd_opcode_pack
#define cmd_opcode_pack | ( | ogf, | |
ocf | |||
) | (uint16_t)((ocf & 0x03ff)|(ogf << 10)) |
◆ DISCONNECT_CP_SIZE
#define DISCONNECT_CP_SIZE 3 |
◆ EVT_CMD_COMPLETE
#define EVT_CMD_COMPLETE 0x0E |
◆ EVT_CMD_COMPLETE_SIZE
#define EVT_CMD_COMPLETE_SIZE 3 |
◆ EVT_CMD_STATUS
#define EVT_CMD_STATUS 0x0F |
◆ EVT_CMD_STATUS_SIZE
#define EVT_CMD_STATUS_SIZE 4 |
◆ EVT_CONN_COMPLETE
#define EVT_CONN_COMPLETE 0x03 |
◆ EVT_CONN_COMPLETE_SIZE
#define EVT_CONN_COMPLETE_SIZE 13 |
◆ EVT_DATA_BUFFER_OVERFLOW
#define EVT_DATA_BUFFER_OVERFLOW 0x1A |
◆ EVT_DATA_BUFFER_OVERFLOW_SIZE
#define EVT_DATA_BUFFER_OVERFLOW_SIZE 1 |
◆ EVT_DISCONN_COMPLETE
#define EVT_DISCONN_COMPLETE 0x05 |
◆ EVT_DISCONN_COMPLETE_SIZE
#define EVT_DISCONN_COMPLETE_SIZE 4 |
◆ EVT_ENCRYPT_CHANGE
#define EVT_ENCRYPT_CHANGE 0x08 |
◆ EVT_ENCRYPT_CHANGE_SIZE
#define EVT_ENCRYPT_CHANGE_SIZE 5 |
◆ EVT_ENCRYPTION_KEY_REFRESH_COMPLETE
#define EVT_ENCRYPTION_KEY_REFRESH_COMPLETE 0x30 |
◆ EVT_ENCRYPTION_KEY_REFRESH_COMPLETE_SIZE
#define EVT_ENCRYPTION_KEY_REFRESH_COMPLETE_SIZE 3 |
◆ EVT_HARDWARE_ERROR
#define EVT_HARDWARE_ERROR 0x10 |
◆ EVT_HARDWARE_ERROR_SIZE
#define EVT_HARDWARE_ERROR_SIZE 1 |
◆ EVT_LE_ADVERTISING_REPORT
#define EVT_LE_ADVERTISING_REPORT 0x02 |
◆ EVT_LE_CONN_COMPLETE
#define EVT_LE_CONN_COMPLETE 0x01 |
◆ EVT_LE_CONN_COMPLETE_SIZE
#define EVT_LE_CONN_COMPLETE_SIZE 18 |
◆ EVT_LE_CONN_UPDATE_COMPLETE
#define EVT_LE_CONN_UPDATE_COMPLETE 0x03 |
◆ EVT_LE_CONN_UPDATE_COMPLETE_SIZE
#define EVT_LE_CONN_UPDATE_COMPLETE_SIZE 9 |
◆ EVT_LE_LTK_REQUEST
#define EVT_LE_LTK_REQUEST 0x05 |
◆ EVT_LE_LTK_REQUEST_SIZE
#define EVT_LE_LTK_REQUEST_SIZE 12 |
◆ EVT_LE_META_EVENT
#define EVT_LE_META_EVENT 0x3E |
◆ EVT_LE_META_EVENT_SIZE
#define EVT_LE_META_EVENT_SIZE 1 |
◆ EVT_LE_READ_REMOTE_USED_FEATURES_COMPLETE
#define EVT_LE_READ_REMOTE_USED_FEATURES_COMPLETE 0x04 |
◆ EVT_LE_READ_REMOTE_USED_FEATURES_COMPLETE_SIZE
#define EVT_LE_READ_REMOTE_USED_FEATURES_COMPLETE_SIZE 11 |
◆ EVT_NUM_COMP_PKTS
#define EVT_NUM_COMP_PKTS 0x13 |
◆ EVT_NUM_COMP_PKTS_PARAM_SIZE
#define EVT_NUM_COMP_PKTS_PARAM_SIZE 1 |
◆ EVT_NUM_COMP_PKTS_SIZE
#define EVT_NUM_COMP_PKTS_SIZE 1 |
◆ EVT_READ_REMOTE_VERSION_COMPLETE
#define EVT_READ_REMOTE_VERSION_COMPLETE 0x0C |
◆ EVT_VENDOR
#define EVT_VENDOR 0xFF |
The event code in the hci_event_pckt structure. If event code is EVT_VENDOR, application can use evt_blue_aci structure to parse the packet.
◆ HCI_ACL_HDR_SIZE
#define HCI_ACL_HDR_SIZE 4 |
◆ HCI_ACLDATA_PKT
#define HCI_ACLDATA_PKT 0x02 |
◆ HCI_COMMAND_HDR_SIZE
#define HCI_COMMAND_HDR_SIZE 3 |
◆ HCI_COMMAND_PKT
#define HCI_COMMAND_PKT 0x01 |
◆ HCI_EVENT_HDR_SIZE
#define HCI_EVENT_HDR_SIZE 2 |
◆ HCI_EVENT_PKT
#define HCI_EVENT_PKT 0x04 |
◆ HCI_HDR_SIZE
#define HCI_HDR_SIZE 1 |
◆ HCI_SCODATA_PKT
#define HCI_SCODATA_PKT 0x03 |
◆ HCI_VENDOR_PKT
#define HCI_VENDOR_PKT 0xff |
◆ LE_ADD_DEVICE_TO_WHITE_LIST_CP_SIZE
#define LE_ADD_DEVICE_TO_WHITE_LIST_CP_SIZE 7 |
◆ LE_ADVERTISING_INFO_SIZE
#define LE_ADVERTISING_INFO_SIZE 9 |
◆ LE_CONN_UPDATE_CP_SIZE
#define LE_CONN_UPDATE_CP_SIZE 14 |
◆ LE_CREATE_CONN_CP_SIZE
#define LE_CREATE_CONN_CP_SIZE 25 |
◆ LE_ENCRYPT_CP_SIZE
#define LE_ENCRYPT_CP_SIZE 32 |
◆ LE_ENCRYPT_RP_SIZE
#define LE_ENCRYPT_RP_SIZE 17 |
◆ LE_LTK_NEG_REPLY_CP_SIZE
#define LE_LTK_NEG_REPLY_CP_SIZE 2 |
◆ LE_LTK_NEG_REPLY_RP_SIZE
#define LE_LTK_NEG_REPLY_RP_SIZE 3 |
◆ LE_LTK_REPLY_CP_SIZE
#define LE_LTK_REPLY_CP_SIZE 18 |
◆ LE_LTK_REPLY_RP_SIZE
#define LE_LTK_REPLY_RP_SIZE 3 |
◆ LE_RAND_RP_SIZE
#define LE_RAND_RP_SIZE 9 |
◆ LE_READ_ADV_CHANNEL_TX_POWER_RP_SIZE
#define LE_READ_ADV_CHANNEL_TX_POWER_RP_SIZE 2 |
◆ LE_READ_BUFFER_SIZE_RP_SIZE
#define LE_READ_BUFFER_SIZE_RP_SIZE 4 |
◆ LE_READ_CHANNEL_MAP_CP_SIZE
#define LE_READ_CHANNEL_MAP_CP_SIZE 2 |
◆ LE_READ_CHANNEL_MAP_RP_SIZE
#define LE_READ_CHANNEL_MAP_RP_SIZE 8 |
◆ LE_READ_LOCAL_SUPPORTED_FEATURES_RP_SIZE
#define LE_READ_LOCAL_SUPPORTED_FEATURES_RP_SIZE 9 |
◆ LE_READ_REMOTE_USED_FEATURES_CP_SIZE
#define LE_READ_REMOTE_USED_FEATURES_CP_SIZE 2 |
◆ LE_READ_SUPPORTED_STATES_RP_SIZE
#define LE_READ_SUPPORTED_STATES_RP_SIZE 9 |
◆ LE_READ_WHITE_LIST_SIZE_RP_SIZE
#define LE_READ_WHITE_LIST_SIZE_RP_SIZE 2 |
◆ LE_RECEIVER_TEST_CP_SIZE
#define LE_RECEIVER_TEST_CP_SIZE 1 |
◆ LE_REMOVE_DEVICE_FROM_WHITE_LIST_CP_SIZE
#define LE_REMOVE_DEVICE_FROM_WHITE_LIST_CP_SIZE 7 |
◆ LE_SET_ADV_DATA_CP_SIZE
#define LE_SET_ADV_DATA_CP_SIZE 32 |
◆ LE_SET_ADV_PARAMETERS_CP_SIZE
#define LE_SET_ADV_PARAMETERS_CP_SIZE 15 |
◆ LE_SET_ADVERTISE_ENABLE_CP_SIZE
#define LE_SET_ADVERTISE_ENABLE_CP_SIZE 1 |
◆ LE_SET_EVENT_MASK_CP_SIZE
#define LE_SET_EVENT_MASK_CP_SIZE 8 |
◆ LE_SET_HOST_CHANNEL_CLASSIFICATION_CP_SIZE
#define LE_SET_HOST_CHANNEL_CLASSIFICATION_CP_SIZE 5 |
◆ LE_SET_RANDOM_ADDRESS_CP_SIZE
#define LE_SET_RANDOM_ADDRESS_CP_SIZE 6 |
◆ LE_SET_SCAN_ENABLE_CP_SIZE
#define LE_SET_SCAN_ENABLE_CP_SIZE 2 |
◆ LE_SET_SCAN_PARAMETERS_CP_SIZE
#define LE_SET_SCAN_PARAMETERS_CP_SIZE 7 |
◆ LE_SET_SCAN_RESPONSE_DATA_CP_SIZE
#define LE_SET_SCAN_RESPONSE_DATA_CP_SIZE 32 |
◆ LE_START_ENCRYPTION_CP_SIZE
#define LE_START_ENCRYPTION_CP_SIZE 28 |
◆ LE_TEST_END_RP_SIZE
#define LE_TEST_END_RP_SIZE 3 |
◆ LE_TRANSMITTER_TEST_CP_SIZE
#define LE_TRANSMITTER_TEST_CP_SIZE 3 |
◆ OCF_DISCONNECT
#define OCF_DISCONNECT 0x0006 |
◆ OCF_HOST_BUFFER_SIZE
#define OCF_HOST_BUFFER_SIZE 0x0033 |
◆ OCF_HOST_NUM_COMP_PKTS
#define OCF_HOST_NUM_COMP_PKTS 0x0035 |
◆ OCF_LE_ADD_DEVICE_TO_WHITE_LIST
#define OCF_LE_ADD_DEVICE_TO_WHITE_LIST 0x0011 |
◆ OCF_LE_CLEAR_WHITE_LIST
#define OCF_LE_CLEAR_WHITE_LIST 0x0010 |
◆ OCF_LE_CONN_UPDATE
#define OCF_LE_CONN_UPDATE 0x0013 |
◆ OCF_LE_CREATE_CONN
#define OCF_LE_CREATE_CONN 0x000D |
◆ OCF_LE_CREATE_CONN_CANCEL
#define OCF_LE_CREATE_CONN_CANCEL 0x000E |
◆ OCF_LE_ENCRYPT
#define OCF_LE_ENCRYPT 0x0017 |
◆ OCF_LE_LTK_NEG_REPLY
#define OCF_LE_LTK_NEG_REPLY 0x001B |
◆ OCF_LE_LTK_REPLY
#define OCF_LE_LTK_REPLY 0x001A |
◆ OCF_LE_RAND
#define OCF_LE_RAND 0x0018 |
◆ OCF_LE_READ_ADV_CHANNEL_TX_POWER
#define OCF_LE_READ_ADV_CHANNEL_TX_POWER 0x0007 |
◆ OCF_LE_READ_BUFFER_SIZE
#define OCF_LE_READ_BUFFER_SIZE 0x0002 |
◆ OCF_LE_READ_CHANNEL_MAP
#define OCF_LE_READ_CHANNEL_MAP 0x0015 |
◆ OCF_LE_READ_LOCAL_SUPPORTED_FEATURES
#define OCF_LE_READ_LOCAL_SUPPORTED_FEATURES 0x0003 |
◆ OCF_LE_READ_REMOTE_USED_FEATURES
#define OCF_LE_READ_REMOTE_USED_FEATURES 0x0016 |
◆ OCF_LE_READ_SUPPORTED_STATES
#define OCF_LE_READ_SUPPORTED_STATES 0x001C |
◆ OCF_LE_READ_WHITE_LIST_SIZE
#define OCF_LE_READ_WHITE_LIST_SIZE 0x000F |
◆ OCF_LE_RECEIVER_TEST
#define OCF_LE_RECEIVER_TEST 0x001D |
◆ OCF_LE_REMOVE_DEVICE_FROM_WHITE_LIST
#define OCF_LE_REMOVE_DEVICE_FROM_WHITE_LIST 0x0012 |
◆ OCF_LE_SET_ADV_DATA
#define OCF_LE_SET_ADV_DATA 0x0008 |
◆ OCF_LE_SET_ADV_PARAMETERS
#define OCF_LE_SET_ADV_PARAMETERS 0x0006 |
◆ OCF_LE_SET_ADVERTISE_ENABLE
#define OCF_LE_SET_ADVERTISE_ENABLE 0x000A |
◆ OCF_LE_SET_EVENT_MASK
#define OCF_LE_SET_EVENT_MASK 0x0001 |
◆ OCF_LE_SET_HOST_CHANNEL_CLASSIFICATION
#define OCF_LE_SET_HOST_CHANNEL_CLASSIFICATION 0x0014 |
◆ OCF_LE_SET_RANDOM_ADDRESS
#define OCF_LE_SET_RANDOM_ADDRESS 0x0005 |
◆ OCF_LE_SET_SCAN_ENABLE
#define OCF_LE_SET_SCAN_ENABLE 0x000C |
◆ OCF_LE_SET_SCAN_PARAMETERS
#define OCF_LE_SET_SCAN_PARAMETERS 0x000B |
◆ OCF_LE_SET_SCAN_RESPONSE_DATA
#define OCF_LE_SET_SCAN_RESPONSE_DATA 0x0009 |
◆ OCF_LE_START_ENCRYPTION
#define OCF_LE_START_ENCRYPTION 0x0019 |
◆ OCF_LE_TEST_END
#define OCF_LE_TEST_END 0x001F |
◆ OCF_LE_TRANSMITTER_TEST
#define OCF_LE_TRANSMITTER_TEST 0x001E |
◆ OCF_READ_BD_ADDR
#define OCF_READ_BD_ADDR 0x0009 |
◆ OCF_READ_LOCAL_COMMANDS
#define OCF_READ_LOCAL_COMMANDS 0x0002 |
◆ OCF_READ_LOCAL_FEATURES
#define OCF_READ_LOCAL_FEATURES 0x0003 |
◆ OCF_READ_LOCAL_VERSION
#define OCF_READ_LOCAL_VERSION 0x0001 |
◆ OCF_READ_RSSI
#define OCF_READ_RSSI 0x0005 |
◆ OCF_READ_TRANSMIT_POWER_LEVEL
#define OCF_READ_TRANSMIT_POWER_LEVEL 0x002D |
◆ OCF_RESET
#define OCF_RESET 0x0003 |
◆ OCF_SET_CONTROLLER_TO_HOST_FC
#define OCF_SET_CONTROLLER_TO_HOST_FC 0x0031 |
◆ OCF_SET_EVENT_MASK
#define OCF_SET_EVENT_MASK 0x0001 |
◆ OGF_HOST_CTL
#define OGF_HOST_CTL 0x03 |
◆ OGF_INFO_PARAM
#define OGF_INFO_PARAM 0x04 |
◆ OGF_LE_CTL
#define OGF_LE_CTL 0x08 |
◆ OGF_LINK_CTL
#define OGF_LINK_CTL 0x01 |
◆ OGF_STATUS_PARAM
#define OGF_STATUS_PARAM 0x05 |
◆ OGF_VENDOR_CMD
#define OGF_VENDOR_CMD 0x3f |
◆ READ_BD_ADDR_RP_SIZE
#define READ_BD_ADDR_RP_SIZE 7 |
◆ READ_LOCAL_VERSION_RP_SIZE
#define READ_LOCAL_VERSION_RP_SIZE 9 |
◆ READ_RSSI_CP_SIZE
#define READ_RSSI_CP_SIZE 2 |
◆ READ_RSSI_RP_SIZE
#define READ_RSSI_RP_SIZE 4 |
◆ READ_TRANSMIT_POWER_LEVEL_CP_SIZE
#define READ_TRANSMIT_POWER_LEVEL_CP_SIZE 3 |
◆ READ_TRANSMIT_POWER_LEVEL_RP_SIZE
#define READ_TRANSMIT_POWER_LEVEL_RP_SIZE 4 |
Typedef Documentation
◆ disconnect_cp
typedef __packed struct _disconnect_cp disconnect_cp |
◆ evt_cmd_complete
typedef __packed struct _evt_cmd_complete evt_cmd_complete |
◆ evt_cmd_status
typedef __packed struct _evt_cmd_status evt_cmd_status |
◆ evt_conn_complete
typedef __packed struct _evt_conn_complete evt_conn_complete |
◆ evt_data_buffer_overflow
typedef __packed struct _evt_data_buffer_overflow evt_data_buffer_overflow |
◆ evt_disconn_complete
typedef __packed struct _evt_disconn_complete evt_disconn_complete |
◆ evt_encrypt_change
typedef __packed struct _evt_encrypt_change evt_encrypt_change |
◆ evt_encryption_key_refresh_complete
typedef __packed struct _evt_encryption_key_refresh_complete evt_encryption_key_refresh_complete |
◆ evt_hardware_error
typedef __packed struct _evt_hardware_error evt_hardware_error |
◆ evt_le_connection_complete
typedef __packed struct _evt_le_connection_complete evt_le_connection_complete |
◆ evt_le_connection_update_complete
typedef __packed struct _evt_le_connection_update_complete evt_le_connection_update_complete |
◆ evt_le_long_term_key_request
typedef __packed struct _evt_le_long_term_key_request evt_le_long_term_key_request |
◆ evt_le_meta_event
typedef __packed struct _evt_le_meta_event evt_le_meta_event |
◆ evt_le_read_remote_used_features_complete
typedef __packed struct _evt_le_read_remote_used_features_complete evt_le_read_remote_used_features_complete |
◆ evt_num_comp_pkts
typedef __packed struct _evt_num_comp_pkts evt_num_comp_pkts |
◆ evt_num_comp_pkts_param
typedef __packed struct _evt_num_comp_pkts_param evt_num_comp_pkts_param |
◆ hci_acl_hdr
typedef __packed struct _hci_acl_hdr hci_acl_hdr |
◆ hci_command_hdr
typedef __packed struct _hci_command_hdr hci_command_hdr |
◆ hci_event_pckt
typedef __packed struct _hci_event_pckt hci_event_pckt |
◆ hci_packet_complete_callback
typedef void(* hci_packet_complete_callback) (void *pckt, uint16_t len) |
◆ hci_uart_pckt
typedef __packed struct _hci_uart_pckt hci_uart_pckt |
◆ le_add_device_to_white_list_cp
typedef __packed struct _le_add_device_to_white_list_cp le_add_device_to_white_list_cp |
◆ le_advertising_info
typedef __packed struct _le_advertising_info le_advertising_info |
◆ le_connection_update_cp
typedef __packed struct _le_connection_update_cp le_connection_update_cp |
◆ le_create_connection_cp
typedef __packed struct _le_create_connection_cp le_create_connection_cp |
◆ le_encrypt_cp
typedef __packed struct _le_encrypt_cp le_encrypt_cp |
◆ le_encrypt_rp
typedef __packed struct _le_encrypt_rp le_encrypt_rp |
◆ le_ltk_neg_reply_cp
typedef __packed struct _le_ltk_neg_reply_cp le_ltk_neg_reply_cp |
◆ le_ltk_neg_reply_rp
typedef __packed struct _le_ltk_neg_reply_rp le_ltk_neg_reply_rp |
◆ le_ltk_reply_cp
typedef __packed struct _le_ltk_reply_cp le_ltk_reply_cp |
◆ le_ltk_reply_rp
typedef __packed struct _le_ltk_reply_rp le_ltk_reply_rp |
◆ le_rand_rp
typedef __packed struct _le_rand_rp le_rand_rp |
◆ le_read_adv_channel_tx_power_rp
typedef __packed struct _le_read_adv_channel_tx_power_rp le_read_adv_channel_tx_power_rp |
◆ le_read_buffer_size_rp
typedef __packed struct _le_read_buffer_size_rp le_read_buffer_size_rp |
◆ le_read_channel_map_cp
typedef __packed struct _le_read_channel_map_cp le_read_channel_map_cp |
◆ le_read_channel_map_rp
typedef __packed struct _le_read_channel_map_rp le_read_channel_map_rp |
◆ le_read_local_supported_features_rp
typedef __packed struct _le_read_local_supported_features_rp le_read_local_supported_features_rp |
◆ le_read_remote_used_features_cp
typedef __packed struct _le_read_remote_used_features_cp le_read_remote_used_features_cp |
◆ le_read_supported_states_rp
typedef __packed struct _le_read_supported_states_rp le_read_supported_states_rp |
◆ le_read_white_list_size_rp
typedef __packed struct _le_read_white_list_size_rp le_read_white_list_size_rp |
◆ le_receiver_test_cp
typedef __packed struct _le_receiver_test_cp le_receiver_test_cp |
◆ le_remove_device_from_white_list_cp
typedef __packed struct _le_remove_device_from_white_list_cp le_remove_device_from_white_list_cp |
◆ le_set_adv_data_cp
typedef __packed struct _le_set_adv_data_cp le_set_adv_data_cp |
◆ le_set_adv_parameters_cp
typedef __packed struct _le_set_adv_parameters_cp le_set_adv_parameters_cp |
◆ le_set_advertise_enable_cp
typedef __packed struct _le_set_advertise_enable_cp le_set_advertise_enable_cp |
◆ le_set_event_mask_cp
typedef __packed struct _le_set_event_mask_cp le_set_event_mask_cp |
◆ le_set_host_channel_classification_cp
typedef __packed struct _le_set_host_channel_classification_cp le_set_host_channel_classification_cp |
◆ le_set_random_address_cp
typedef __packed struct _le_set_random_address_cp le_set_random_address_cp |
◆ le_set_scan_enable_cp
typedef __packed struct _le_set_scan_enable_cp le_set_scan_enable_cp |
◆ le_set_scan_parameters_cp
typedef __packed struct _le_set_scan_parameters_cp le_set_scan_parameters_cp |
◆ le_set_scan_response_data_cp
typedef __packed struct _le_set_scan_response_data_cp le_set_scan_response_data_cp |
◆ le_start_encryption_cp
typedef __packed struct _le_start_encryption_cp le_start_encryption_cp |
◆ le_test_end_rp
typedef __packed struct _le_test_end_rp le_test_end_rp |
◆ le_transmitter_test_cp
typedef __packed struct _le_transmitter_test_cp le_transmitter_test_cp |
◆ read_bd_addr_rp
typedef __packed struct _read_bd_addr_rp read_bd_addr_rp |
◆ read_local_version_rp
typedef __packed struct _read_local_version_rp read_local_version_rp |
◆ read_rssi_cp
typedef __packed struct _read_rssi_cp read_rssi_cp |
◆ read_rssi_rp
typedef __packed struct _read_rssi_rp read_rssi_rp |
◆ read_transmit_power_level_cp
typedef __packed struct _read_transmit_power_level_cp read_transmit_power_level_cp |
◆ read_transmit_power_level_rp
typedef __packed struct _read_transmit_power_level_rp read_transmit_power_level_rp |
Enumeration Type Documentation
◆ hci_state
enum hci_state |
Generated on Mon Apr 15 2019 18:10:39 for BlueNRG-MS pack for STM32CubeMX by
