PebbleOS
Loading...
Searching...
No Matches
Data Structures | Macros | Typedefs | Enumerations | Functions
pebble_pairing_service.h File Reference
#include <pbl/kernel/compiler.h>
#include <pbl/bluetooth/pebble_bt.h>
#include <pbl/bluetooth/responsiveness.h>

Data Structures

struct  pbl_bt_pps_connectivity_status
 Connectivity Status value, with respect to the device reading it. More...
 
struct  pbl_bt_pps_trigger_request
 Value written to the Trigger Pairing characteristic. More...
 
struct  pbl_bt_pps_conn_param_set
 A connection parameter set, in the Connection Parameters characteristic format. More...
 
struct  pbl_bt_pps_conn_params_read_notif
 Connection Parameters read or notified value, for the reading device's connection. More...
 
struct  pbl_bt_pps_remote_param_mgmt_settings
 Payload of PBL_BT_PPS_CONN_PARAMS_WRITE_CMD_SET_REMOTE_PARAM_MGMT_SETTINGS. More...
 
struct  pbl_bt_pps_remote_desired_state
 Payload of PBL_BT_PPS_CONN_PARAMS_WRITE_CMD_SET_REMOTE_DESIRED_STATE. More...
 
struct  pbl_bt_pps_packet_length_extension
 Payload of PBL_BT_PPS_CONN_PARAMS_WRITE_CMD_ENABLE_PACKET_LENGTH_EXTENSION. More...
 
struct  pbl_bt_pps_inhibit_ble_sleep
 Payload of PBL_BT_PPS_CONN_PARAMS_WRITE_CMD_INHIBIT_BLE_SLEEP. More...
 
struct  pbl_bt_pps_conn_params_write
 Value written to the Connection Parameters characteristic. More...
 
union  pbl_bt_pps_connectivity_status.__unnamed1__
 
struct  pbl_bt_pps_connectivity_status.__unnamed1__.__unnamed3__
 
union  pbl_bt_pps_conn_params_write.__unnamed5__
 Command payload, selected by cmd. More...
 

Macros

#define PBL_BT_PPS_CONNECTION_STATUS_UUID   PBL_BT_PEBBLE_UUID_EXPAND(1)
 UUID of the Connectivity Status characteristic, as an initializer list.
 
#define PBL_BT_PPS_TRIGGER_PAIRING_UUID   PBL_BT_PEBBLE_UUID_EXPAND(2)
 UUID of the Trigger Pairing characteristic, as an initializer list.
 
#define PBL_BT_PPS_CONNECTION_PARAMETERS_UUID   PBL_BT_PEBBLE_UUID_EXPAND(5)
 UUID of the Connection Parameters characteristic, as an initializer list.
 
#define PBL_BT_PPS_REMOTE_PARAM_MGMT_SETTINGS_SIZE_WITH_PARAM_SETS
 Size of struct pbl_bt_pps_remote_param_mgmt_settings with all parameter sets.
 
#define PBL_BT_PPS_CONN_PARAMS_WRITE_SIZE_WITH_PARAM_SETS
 Size of a parameter management settings write with all parameter sets.
 

Typedefs

typedef struct GAPLEConnection GAPLEConnection
 LE connection state kept by the firmware (see comm/ble/gap_le_connection.h).
 

Enumerations

enum  pbl_bt_pps_gatt_error {
  PBL_BT_PPS_GATT_ERROR_UNKNOWN_COMMAND_ID = PBL_BT_GATT_ERROR_APPLICATION_SPECIFIC_ERROR_START , PBL_BT_PPS_GATT_ERROR_CONN_PARAMS_INVALID_REMOTE_DESIRED_STATE , PBL_BT_PPS_GATT_ERROR_CONN_PARAMS_MIN_SLOTS_TOO_SMALL , PBL_BT_PPS_GATT_ERROR_CONN_PARAMS_MIN_SLOTS_TOO_LARGE ,
  PBL_BT_PPS_GATT_ERROR_CONN_PARAMS_MAX_SLOTS_TOO_LARGE , PBL_BT_PPS_GATT_ERROR_CONN_PARAMS_SUPERVISION_TIMEOUT_TOO_SMALL , PBL_BT_PPS_GATT_ERROR_DEVICE_DOES_NOT_SUPPORT_PLE
}
 Application specific ATT errors returned by the service. More...
 
enum  pbl_bt_pps_conn_params_write_cmd {
  PBL_BT_PPS_CONN_PARAMS_WRITE_CMD_SET_REMOTE_PARAM_MGMT_SETTINGS = 0x00 , PBL_BT_PPS_CONN_PARAMS_WRITE_CMD_SET_REMOTE_DESIRED_STATE = 0x01 , PBL_BT_PPS_CONN_PARAMS_WRITE_CMD_ENABLE_PACKET_LENGTH_EXTENSION = 0x02 , PBL_BT_PPS_CONN_PARAMS_WRITE_CMD_INHIBIT_BLE_SLEEP = 0x03 ,
  PBL_BT_PPS_CONN_PARAMS_WRITE_CMD_NUM
}
 Commands written to the Connection Parameters characteristic. More...
 

Functions

void pbl_bt_pps_handle_status_change (const GAPLEConnection *connection)
 Signal a change of the connection status (pairing, encryption, ...).
 
void pbl_bt_cb_pps_handle_ios_app_termination_detected (void)
 Called when the Connectivity Status characteristic is unsubscribed from.
 
void pbl_bt_cb_pps_handle_connection_parameter_write (const struct pbl_bt_device_internal *device, const struct pbl_bt_pps_conn_params_write *conn_params, size_t conn_params_length)
 Called when the Connection Parameters characteristic was written.