PebbleOS
Loading...
Searching...
No Matches
Data Structures | Enumerations | Functions
gap_le_connect.h File Reference
#include <inttypes.h>
#include <pbl/bluetooth/types.h>
#include <pbl/bluetooth/sm_types.h>
#include <pbl/kernel/compiler.h>
#include <pbl/bluetooth/hci_types.h>

Data Structures

struct  pbl_bt_conn_params
 Parameters of an established connection. More...
 
struct  pbl_bt_remote_version_info
 Link layer version of a peer, as in LL_VERSION_IND (v4.2, Vol 6, Part B, 2.4.2.13). More...
 
struct  pbl_bt_remote_version_info_received_event
 Remote version information of a peer was received. More...
 
struct  pbl_bt_conn_complete_event
 A connection was established (LE Connection Complete Event, 7.7.65.1). More...
 
struct  pbl_bt_disconn_complete_event
 A connection was terminated (Disconnection Complete Event, 7.7.5). More...
 
struct  pbl_bt_conn_update_complete_event
 Connection parameters were updated (LE Connection Update Complete Event, 7.7.65.3). More...
 
struct  pbl_bt_encryption_change
 Link encryption changed (Encryption Change Event, 7.7.8). More...
 
struct  pbl_bt_addr_change
 The address of a connected peer changed, typically once its identity was resolved. More...
 
struct  pbl_bt_irk_change
 The IRK of a peer changed. More...
 

Enumerations

enum  pbl_bt_addr_type { PBL_BT_ADDR_TYPE_PUBLIC , PBL_BT_ADDR_TYPE_RANDOM }
 LE address type. More...
 

Functions

int pbl_bt_gap_le_disconnect (const struct pbl_bt_device_internal *peer_address)
 Terminate a connection.
 
void pbl_bt_handle_le_connection_complete_event (const struct pbl_bt_conn_complete_event *event)
 Called when a connection is established.
 
void pbl_bt_handle_le_disconnection_complete_event (const struct pbl_bt_disconn_complete_event *event)
 Called when a connection is terminated.
 
void pbl_bt_handle_le_encryption_change_event (const struct pbl_bt_encryption_change *event)
 Called when the encryption of a connection changes.
 
void pbl_bt_handle_le_conn_params_update_event (const struct pbl_bt_conn_update_complete_event *event)
 Called when the parameters of a connection were updated.
 
void pbl_bt_handle_le_connection_handle_update_address (const struct pbl_bt_addr_change *e)
 Called when the identity address of a connected peer was resolved.
 
void pbl_bt_handle_le_connection_handle_update_irk (const struct pbl_bt_irk_change *e)
 Called when a new IRK of a peer was stored.
 
void pbl_bt_handle_peer_version_info_event (const struct pbl_bt_remote_version_info_received_event *e)
 Called when the link layer version of a peer was received.