BlueNRG-MS pack for STM32CubeMX: hci/controller/bluenrg_gap_aci.c File Reference

STM32CubeMX BlueNRG-MS

BlueNRG-MS pack for STM32CubeMX  V4.4.0
The BlueNRG-MS pack is an additional software for STM32CubeMX.
bluenrg_gap_aci.c File Reference
#include "bluenrg_types.h" #include "bluenrg_def.h"
#include "hci_const.h"
#include "bluenrg_aci_const.h"
#include "bluenrg_gap_aci.h"
#include "bluenrg_gatt_server.h"
#include "bluenrg_gap.h"

Macros

#define MIN(a, b)   ((a) < (b) )? (a) : (b)
 
#define MAX(a, b)   ((a) > (b) )? (a) : (b)
 

Functions

tBleStatus aci_gap_init_IDB05A1 (uint8_t role, uint8_t privacy_enabled, uint8_t device_name_char_len, uint16_t *service_handle, uint16_t *dev_name_char_handle, uint16_t *appearance_char_handle)
 Initialize the GAP layer. More...
 
tBleStatus aci_gap_init_IDB04A1 (uint8_t role, uint16_t *service_handle, uint16_t *dev_name_char_handle, uint16_t *appearance_char_handle)
 Initialize the GAP layer. More...
 
tBleStatus aci_gap_set_non_discoverable (void)
 Set the Device in non-discoverable mode. More...
 
tBleStatus aci_gap_set_limited_discoverable (uint8_t AdvType, uint16_t AdvIntervMin, uint16_t AdvIntervMax, uint8_t OwnAddrType, uint8_t AdvFilterPolicy, uint8_t LocalNameLen, const char *LocalName, uint8_t ServiceUUIDLen, uint8_t *ServiceUUIDList, uint16_t SlaveConnIntervMin, uint16_t SlaveConnIntervMax)
 Put the device in limited discoverable mode (as defined in GAP specification volume 3, section 9.2.3). More...
 
tBleStatus aci_gap_set_discoverable (uint8_t AdvType, uint16_t AdvIntervMin, uint16_t AdvIntervMax, uint8_t OwnAddrType, uint8_t AdvFilterPolicy, uint8_t LocalNameLen, const char *LocalName, uint8_t ServiceUUIDLen, uint8_t *ServiceUUIDList, uint16_t SlaveConnIntervMin, uint16_t SlaveConnIntervMax)
 Put the Device in general discoverable mode (as defined in GAP specification volume 3, section 9.2.4). More...
 
tBleStatus aci_gap_set_direct_connectable_IDB05A1 (uint8_t own_addr_type, uint8_t directed_adv_type, uint8_t initiator_addr_type, const uint8_t *initiator_addr, uint16_t adv_interv_min, uint16_t adv_interv_max)
 Set the Device in direct connectable mode (as defined in GAP specification Volume 3, Section 9.3.3). More...
 
tBleStatus aci_gap_set_direct_connectable_IDB04A1 (uint8_t own_addr_type, uint8_t initiator_addr_type, const uint8_t *initiator_addr)
 Set the Device in direct connectable mode (as defined in GAP specification Volume 3, Section 9.3.3). More...
 
tBleStatus aci_gap_set_io_capability (uint8_t io_capability)
 Set the IO capabilities of the device. More...
 
tBleStatus aci_gap_set_auth_requirement (uint8_t mitm_mode, uint8_t oob_enable, uint8_t oob_data[16], uint8_t min_encryption_key_size, uint8_t max_encryption_key_size, uint8_t use_fixed_pin, uint32_t fixed_pin, uint8_t bonding_mode)
 Set the authentication requirements for the device. More...
 
tBleStatus aci_gap_set_author_requirement (uint16_t conn_handle, uint8_t authorization_enable)
 Set the authorization requirements of the device. More...
 
tBleStatus aci_gap_pass_key_response (uint16_t conn_handle, uint32_t passkey)
 Provide the pass key that will be used during pairing. More...
 
tBleStatus aci_gap_authorization_response (uint16_t conn_handle, uint8_t authorize)
 Authorize a device to access attributes. More...
 
tBleStatus aci_gap_set_non_connectable_IDB05A1 (uint8_t adv_type, uint8_t own_address_type)
 Put the device into non-connectable mode. More...
 
tBleStatus aci_gap_set_non_connectable_IDB04A1 (uint8_t adv_type)
 Put the device into non-connectable mode. More...
 
tBleStatus aci_gap_set_undirected_connectable (uint8_t own_addr_type, uint8_t adv_filter_policy)
 Put the device into undirected connectable mode. More...
 
tBleStatus aci_gap_slave_security_request (uint16_t conn_handle, uint8_t bonding, uint8_t mitm_protection)
 Send a slave security request to the master. More...
 
tBleStatus aci_gap_update_adv_data (uint8_t AdvLen, const uint8_t *AdvData)
 Update advertising data. More...
 
tBleStatus aci_gap_delete_ad_type (uint8_t ad_type)
 Delete an AD Type. More...
 
tBleStatus aci_gap_get_security_level (uint8_t *mitm_protection, uint8_t *bonding, uint8_t *oob_data, uint8_t *passkey_required)
 Get the current security settings. More...
 
tBleStatus aci_gap_configure_whitelist (void)
 Add addresses of bonded devices into the controller's whitelist. More...
 
tBleStatus aci_gap_terminate (uint16_t conn_handle, uint8_t reason)
 Terminate a connection. More...
 
tBleStatus aci_gap_clear_security_database (void)
 Clear the security database. More...
 
tBleStatus aci_gap_allow_rebond_IDB05A1 (uint16_t conn_handle)
 Allows the security manager to complete the pairing procedure and re-bond with the master. More...
 
tBleStatus aci_gap_allow_rebond_IDB04A1 (void)
 Allows the security manager to complete the pairing procedure and re-bond with the master. More...
 
tBleStatus aci_gap_start_limited_discovery_proc (uint16_t scanInterval, uint16_t scanWindow, uint8_t own_address_type, uint8_t filterDuplicates)
 Start the limited discovery procedure. More...
 
tBleStatus aci_gap_start_general_discovery_proc (uint16_t scanInterval, uint16_t scanWindow, uint8_t own_address_type, uint8_t filterDuplicates)
 Start the general discovery procedure. More...
 
tBleStatus aci_gap_start_name_discovery_proc (uint16_t scanInterval, uint16_t scanWindow, uint8_t peer_bdaddr_type, tBDAddr peer_bdaddr, uint8_t own_bdaddr_type, uint16_t conn_min_interval, uint16_t conn_max_interval, uint16_t conn_latency, uint16_t supervision_timeout, uint16_t min_conn_length, uint16_t max_conn_length)
 Start the name discovery procedure. More...
 
tBleStatus aci_gap_start_auto_conn_establish_proc_IDB05A1 (uint16_t scanInterval, uint16_t scanWindow, uint8_t own_bdaddr_type, uint16_t conn_min_interval, uint16_t conn_max_interval, uint16_t conn_latency, uint16_t supervision_timeout, uint16_t min_conn_length, uint16_t max_conn_length, uint8_t num_whitelist_entries, const uint8_t *addr_array)
 Start the auto connection establishment procedure. More...
 
tBleStatus aci_gap_start_auto_conn_establish_proc_IDB04A1 (uint16_t scanInterval, uint16_t scanWindow, uint8_t own_bdaddr_type, uint16_t conn_min_interval, uint16_t conn_max_interval, uint16_t conn_latency, uint16_t supervision_timeout, uint16_t min_conn_length, uint16_t max_conn_length, uint8_t use_reconn_addr, const tBDAddr reconn_addr, uint8_t num_whitelist_entries, const uint8_t *addr_array)
 
tBleStatus aci_gap_start_general_conn_establish_proc_IDB05A1 (uint8_t scan_type, uint16_t scan_interval, uint16_t scan_window, uint8_t own_address_type, uint8_t filter_duplicates)
 Start a general connection establishment procedure. More...
 
tBleStatus aci_gap_start_general_conn_establish_proc_IDB04A1 (uint8_t scan_type, uint16_t scan_interval, uint16_t scan_window, uint8_t own_address_type, uint8_t filter_duplicates, uint8_t use_reconn_addr, const tBDAddr reconn_addr)
 
tBleStatus aci_gap_start_selective_conn_establish_proc (uint8_t scan_type, uint16_t scan_interval, uint16_t scan_window, uint8_t own_address_type, uint8_t filter_duplicates, uint8_t num_whitelist_entries, const uint8_t *addr_array)
 Start a selective connection establishment procedure. More...
 
tBleStatus aci_gap_create_connection (uint16_t scanInterval, uint16_t scanWindow, uint8_t peer_bdaddr_type, tBDAddr peer_bdaddr, uint8_t own_bdaddr_type, uint16_t conn_min_interval, uint16_t conn_max_interval, uint16_t conn_latency, uint16_t supervision_timeout, uint16_t min_conn_length, uint16_t max_conn_length)
 Start the direct connection establishment procedure. More...
 
tBleStatus aci_gap_terminate_gap_procedure (uint8_t procedure_code)
 Terminate the specified GAP procedure. EVT_BLUE_GAP_PROCEDURE_COMPLETE event is returned with the procedure code set to the corresponding procedure. More...
 
tBleStatus aci_gap_start_connection_update (uint16_t conn_handle, uint16_t conn_min_interval, uint16_t conn_max_interval, uint16_t conn_latency, uint16_t supervision_timeout, uint16_t min_conn_length, uint16_t max_conn_length)
 Start the connection parameter update procedure. More...
 
tBleStatus aci_gap_send_pairing_request (uint16_t conn_handle, uint8_t force_rebond)
 Send a pairing request. More...
 
tBleStatus aci_gap_resolve_private_address_IDB05A1 (const tBDAddr private_address, tBDAddr actual_address)
 Resolve a private address. More...
 
tBleStatus aci_gap_resolve_private_address_IDB04A1 (const tBDAddr address)
 Resolve a private address. More...
 
tBleStatus aci_gap_set_broadcast_mode (uint16_t adv_interv_min, uint16_t adv_interv_max, uint8_t adv_type, uint8_t own_addr_type, uint8_t adv_data_length, const uint8_t *adv_data, uint8_t num_whitelist_entries, const uint8_t *addr_array)
 Puts the device into broadcast mode. More...
 
tBleStatus aci_gap_start_observation_procedure (uint16_t scan_interval, uint16_t scan_window, uint8_t scan_type, uint8_t own_address_type, uint8_t filter_duplicates)
 Starts an observation procedure, when the device is in Observer role. More...
 
tBleStatus aci_gap_is_device_bonded (uint8_t peer_address_type, const tBDAddr peer_address)
 The command finds whether a device is bonded. More...
 
tBleStatus aci_gap_get_bonded_devices (uint8_t *num_devices, uint8_t *device_list, uint8_t device_list_size)
 This command gets the list of bonded devices. More...
 

Macro Definition Documentation

◆ MAX

#define MAX (   a,
 
)    ((a) > (b) )? (a) : (b)

◆ MIN

#define MIN (   a,
 
)    ((a) < (b) )? (a) : (b)
Generated on Mon Apr 15 2019 18:10:39 for BlueNRG-MS pack for STM32CubeMX by   doxygen 1.8.13