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

Data Structures

struct  pbl_bt_conn_params_update_req
 Connection parameter update request. More...
 

Macros

Minimum latency timeouts

Longest time, in seconds, each module may keep the connection in PBL_BT_RESPONSE_TIME_MIN.

#define PBL_BT_MIN_LATENCY_MODE_TIMEOUT_AUDIO_SECS   (10)
 Audio.
 
#define PBL_BT_MIN_LATENCY_MODE_TIMEOUT_APP_FETCH_SECS   (5)
 App fetch.
 
#define PBL_BT_MIN_LATENCY_MODE_TIMEOUT_APP_MESSAGE_SECS   (10)
 App messages.
 
#define PBL_BT_MIN_LATENCY_MODE_TIMEOUT_CD_SECS   (10)
 Core dump transfer.
 
#define PBL_BT_MIN_LATENCY_MODE_TIMEOUT_PROTOCOL_RECV_SECS   (60)
 Pebble Protocol reception.
 
#define PBL_BT_MIN_LATENCY_MODE_TIMEOUT_PUT_BYTES_SECS   (60)
 Put bytes.
 
#define PBL_BT_MIN_LATENCY_MODE_TIMEOUT_SCREENSHOT_SECS   (5)
 Screenshots.
 
#define PBL_BT_MIN_LATENCY_MODE_TIMEOUT_TIMELINE_ACTION_MENU_SECS   (10)
 Timeline action menu.
 
#define PBL_BT_MIN_LATENCY_MODE_TIMEOUT_VOICE_SECS   (10)
 Voice.
 

Typedefs

typedef void(* pbl_bt_responsiveness_granted_cb_t) (void)
 Called when the requested response time has been negotiated and granted.
 

Enumerations

enum  pbl_bt_consumer {
  PBL_BT_CONSUMER_NONE = 0 , PBL_BT_CONSUMER_APP , PBL_BT_CONSUMER_LE_PAIRING , PBL_BT_CONSUMER_LE_SERVICE_DISCOVERY ,
  PBL_BT_CONSUMER_MUSIC_SERVICE_INDEFINITE , PBL_BT_CONSUMER_MUSIC_SERVICE_MOMENTARY , PBL_BT_CONSUMER_PP_APP_FETCH , PBL_BT_CONSUMER_PP_APP_MESSAGE ,
  PBL_BT_CONSUMER_PP_AUDIO_ENDPOINT , PBL_BT_CONSUMER_PP_GET_BYTES , PBL_BT_CONSUMER_PP_LOG_DUMP , PBL_BT_CONSUMER_PP_PUT_BYTES ,
  PBL_BT_CONSUMER_PP_SCREENSHOT , PBL_BT_CONSUMER_PP_VOICE_ENDPOINT , PBL_BT_CONSUMER_PROMPT , PBL_BT_CONSUMER_TIMELINE_ACTION_MENU ,
  PBL_BT_CONSUMER_PRF , PBL_BT_CONSUMER_PPS_REMOTE_DEVICE , PBL_BT_CONSUMER_UNIT_TESTS , PBL_BT_CONSUMER_NUM
}
 Firmware modules that request a response time. More...
 
enum  pbl_bt_response_time_state {
  PBL_BT_RESPONSE_TIME_INVALID = -1 , PBL_BT_RESPONSE_TIME_MAX = 0 , PBL_BT_RESPONSE_TIME_MIDDLE , PBL_BT_RESPONSE_TIME_MIN ,
  PBL_BT_RESPONSE_TIME_NUM
}
 Connection response time. More...
 

Functions

bool pbl_bt_le_connection_parameter_update (const struct pbl_bt_device_internal *addr, const struct pbl_bt_conn_params_update_req *req)
 Request new connection parameters.