|
SmartSnippets DA1459x SDK
|
Go to the documentation of this file.
54 #if (dg_configBLE_PRIVACY_1_2 == 1)
56 BLE_MGR_RAL_OP_NONE = 0,
57 BLE_MGR_RAL_OP_ADV_DIRECTED,
58 BLE_MGR_RAL_OP_ADV_UNDIRECTED,
60 BLE_MGR_RAL_OP_CONNECT,
61 BLE_MGR_RAL_OP_NO_PRIVACY,
105 #if (dg_configBLE_PRIVACY_1_2 == 1)
106 ble_mgr_ral_op_t prev_privacy_operation;
108 #if (dg_configBLE_2MBIT_PHY == 1)
109 uint8_t tx_phy_pref_default;
110 uint8_t rx_phy_pref_default;
111 bool phy_set_pending;
130 #if (BLE_MGR_USE_EVT_LIST == 0)
294 #if (BLE_MGR_DIRECT_ACCESS == 1)
gap_conn_mode_t adv_type
Definition: ble_mgr.h:88
Definition: ble_gap.h:574
uint16_t scan_rsp_data_length
Definition: ble_mgr.h:97
void ble_mgr_notify_event_consumed(void)
Notifies BLE manager that posted event was consumed.
BLE configuration options.
uint8_t scan_rsp_data[BLE_SCAN_RSP_LEN_MAX]
Definition: ble_mgr.h:98
ble_dev_params_t * ble_mgr_dev_params_acquire(void)
Get a pointer to the BLE device parameters structure.
OS_BASE_TYPE ble_mgr_response_queue_get(void *item, OS_TICK_TIME wait_ticks)
Get message from BLE Manager's response queue.
Definition: ble_common.h:201
BLE manager command definitions.
irk_t irk
Definition: ble_mgr.h:80
OS_BASE_TYPE ble_mgr_command_queue_send_from_isr(const void *item)
Send a message to the BLE Manager's command queue from an ISR.
void ble_mgr_init(void)
Initialize BLE Manager - create command and event queues.
bool ble_mgr_is_own_task(void)
Checks if current task is BLE Manager task.
gap_io_cap_t
Definition: ble_gap.h:541
gap_io_cap_t io_capabilities
Definition: ble_mgr.h:104
enum ble_stack_msg_types ble_stack_msg_type_t
OS_BASE_TYPE ble_mgr_response_queue_send(const void *item, OS_TICK_TIME wait_ticks)
Send message to BLE Manager's response queue.
#define BLE_NON_CONN_ADV_DATA_LEN_MAX
Definition: ble_gap.h:55
BLE Manager Configuration.
ble_stack_msg_types
Definition: ble_mgr.h:118
void ble_mgr_register_application(OS_TASK task)
Register application in BLE Manager.
OS_QUEUE rsp_q
Definition: ble_mgr.h:135
bool advertising
Definition: ble_mgr.h:73
Definition: ble_gap.h:582
ble_status_t status
Definition: ble_mgr.h:71
adv_filt_pol_t adv_filter_policy
Definition: ble_mgr.h:93
uint16_t adv_intv_max
Definition: ble_mgr.h:92
bool scanning
Definition: ble_mgr.h:75
OS_TASK task
Definition: ble_mgr.h:128
void ble_mgr_notify_app_task(uint32_t notif_value)
Send a task notification to the application task registered to the BLE Manager.
Definition: ble_gap.h:458
#define BLE_SCAN_RSP_LEN_MAX
Definition: ble_gap.h:58
void ble_mgr_waitqueue_release(void)
Release the BLE manager waitqueue.
OS abstraction layer API.
void ble_mgr_dev_params_release(void)
Release the BLE device parameters.
uint8_t adv_channel_map
Definition: ble_mgr.h:90
gap_disc_mode_t adv_mode
Definition: ble_mgr.h:89
uint16_t adv_intv_min
Definition: ble_mgr.h:91
struct ble_dev_params_tag ble_dev_params_t
void ble_mgr_event_queue_flush(void)
Flush BLE Manager's event queue.
bool ble_mgr_adapter_is_blocked(void)
Returns current adapter status (blocked or not)
uint16_t addr_renew_duration
Definition: ble_mgr.h:78
int8_t conn_rssi
Definition: ble_mgr.h:114
gap_conn_params_t gap_ppcp
Definition: ble_mgr.h:102
Definition: ble_mgr.h:127
OS_QUEUE cmd_q
Definition: ble_mgr.h:129
void ble_mgr_notify_adapter_blocked(bool status)
Notifies BLE manager that BLE adapter is blocked or unblocked on its event queue.
OS_BASE_TYPE ble_mgr_command_queue_send(const void *item, OS_TICK_TIME wait_ticks)
Send a message to the BLE Manager's command queue.
gap_role_t
Definition: ble_gap.h:448
bool connecting
Definition: ble_mgr.h:74
OS_BASE_TYPE ble_mgr_event_queue_send(const void *item, OS_TICK_TIME wait_ticks)
Send a message to the BLE Manager's event queue.
uint16_t adv_data_length
Definition: ble_mgr.h:95
gap_conn_mode_t
Definition: ble_gap.h:470
char dev_name[BLE_GAP_DEVNAME_LEN_MAX+1]
Definition: ble_mgr.h:68
uint16_t mtu_size
Definition: ble_mgr.h:84
void ble_mgr_waitqueue_acquire(void)
Acquire the BLE manager waitqueue.
void ble_mgr_acquire(void)
Acquire the BLE manager interface.
gap_chnl_map_t channel_map
Definition: ble_mgr.h:86
void ble_mgr_set_status(ble_status_t status)
Set BLE status.
uint8_t adv_data[BLE_NON_CONN_ADV_DATA_LEN_MAX]
Definition: ble_mgr.h:96
uint8_t att_db_cfg
Definition: ble_mgr.h:83
OS_BASE_TYPE ble_mgr_event_queue_get(void *item, OS_TICK_TIME wait_ticks)
Get message from BLE Manager's event queue.
const ble_mgr_interface_t * ble_mgr_get_interface(void)
Get BLE Manager interface structure.
ble_status_t ble_mgr_get_status(void)
Get the status of BLE.
uint16_t addr_resolv_req_pending
Definition: ble_mgr.h:81
void ble_mgr_release(void)
Release the BLE manager interface.
ble_status_t
Definition: ble_common.h:170
void * evt_q
Definition: ble_mgr.h:133
gap_appearance_t appearance
Definition: ble_mgr.h:69
adv_filt_pol_t
Definition: ble_gap.h:493
gap_role_t role
Definition: ble_mgr.h:76
void ble_mgr_notify_commit_storage(void)
Notifies BLE manager to commit storage changes, if any.
Definition: ble_common.h:217
bd_address_t adv_direct_address
Definition: ble_mgr.h:94
gap_appearance_t
Definition: ble_gap.h:111
gap_disc_mode_t
Definition: ble_gap.h:478
gap_scan_params_t scan_params
Definition: ble_mgr.h:100
OS_BASE_TYPE ble_mgr_event_queue_peek(void *item, OS_TICK_TIME wait_ticks)
Peek message from BLE Manager's event queue.
void ble_mgr_dev_params_set_default(void)
Set default dev_params.
own_address_t own_addr
Definition: ble_mgr.h:79
Definition: ble_common.h:195