PebbleOS v4.47.0-512-g5285d4236
Loading...
Searching...
No Matches
protocol.h File Reference
#include <stdint.h>
#include <pbl/kernel/compiler.h>

Data Structures

struct  pbl_pp_header
 Message header, big endian on the wire. More...
 
struct  pbl_pp_capabilities
 Capabilities as sent by the phone, bit for bit as pbl_pp_capability. More...
 
union  pbl_pp_capabilities.__unnamed42__
 
struct  pbl_pp_capabilities.__unnamed42__.__unnamed44__
 

Macros

#define PBL_PP_MAX_INBOUND_PAYLOAD_PRIVATE   2044
 Largest inbound payload accepted from the Pebble mobile app.
 
#define PBL_PP_MAX_INBOUND_PAYLOAD_PUBLIC   144
 Largest inbound payload accepted from third party phone apps.
 
#define PBL_PP_MAX_OUTBOUND_PAYLOAD   656
 Largest outbound payload the phone accepts.
 
#define PBL_PP_REMOTE_OS_MASK   0x7U
 Bits of the reported platform bitfield that hold a pbl_pp_remote_os.
 
Endpoint IDs

Written as four hex digits: PBL_PP_ENDPOINT_DEFINE() turns the ID into a symbol name, so that defining an endpoint twice fails to link.

#define PBL_PP_ENDPOINT_META   0x0000
 
#define PBL_PP_ENDPOINT_CLOCK   0x000b
 
#define PBL_PP_ENDPOINT_SYSTEM_VERSION   0x0010
 
#define PBL_PP_ENDPOINT_REMOTE_VERSION   0x0011
 
#define PBL_PP_ENDPOINT_SYSTEM_MESSAGE   0x0012
 
#define PBL_PP_ENDPOINT_MUSIC   0x0020
 
#define PBL_PP_ENDPOINT_PHONE   0x0021
 
#define PBL_PP_ENDPOINT_APP_MESSAGE   0x0030
 
#define PBL_PP_ENDPOINT_LAUNCHER_APP_MESSAGE   0x0031
 
#define PBL_PP_ENDPOINT_APP_CUSTOMIZE   0x0032
 
#define PBL_PP_ENDPOINT_BLE_CONTROL   0x0033
 
#define PBL_PP_ENDPOINT_APP_RUN_STATE   0x0034
 
#define PBL_PP_ENDPOINT_IMAGING   0x0035
 
#define PBL_PP_ENDPOINT_HEALTH_SYNC   0x038f
 
#define PBL_PP_ENDPOINT_PING   0x07d1
 
#define PBL_PP_ENDPOINT_LOG_DUMP   0x07d2
 
#define PBL_PP_ENDPOINT_RESET   0x07d3
 
#define PBL_PP_ENDPOINT_APP_LOG   0x07d6
 
#define PBL_PP_ENDPOINT_FACTORY_REGISTRY   0x1389
 
#define PBL_PP_ENDPOINT_APP_FETCH   0x1771
 
#define PBL_PP_ENDPOINT_DATA_LOGGING   0x1a7a
 
#define PBL_PP_ENDPOINT_SCREENSHOT   0x1f40
 
#define PBL_PP_ENDPOINT_GET_BYTES   0x2328
 
#define PBL_PP_ENDPOINT_AUDIO   0x2710
 
#define PBL_PP_ENDPOINT_VOICE   0x2af8
 
#define PBL_PP_ENDPOINT_TIMELINE_ACTION   0x2cb0
 
#define PBL_PP_ENDPOINT_APP_ORDER   0xabcd
 
#define PBL_PP_ENDPOINT_BLOB_DB   0xb1db
 
#define PBL_PP_ENDPOINT_BLOB_DB2   0xb2db
 
#define PBL_PP_ENDPOINT_PUT_BYTES   0xbeef
 
#define PBL_PP_ENDPOINT_POLL_REMOTE   0xcafe
 
#define PBL_PP_ENDPOINT_XSBUG   0xcaff
 
#define PBL_PP_ENDPOINT_REMOTE_INPUT   0xf00d
 

Enumerations

enum  pbl_pp_capability : uint32_t {
  PBL_PP_CAP_RUN_STATE = 1U << 0 , PBL_PP_CAP_INFINITE_LOG_DUMPING = 1U << 1 , PBL_PP_CAP_EXTENDED_MUSIC = 1U << 2 , PBL_PP_CAP_EXTENDED_NOTIFICATIONS = 1U << 3 ,
  PBL_PP_CAP_LANGUAGE_PACK = 1U << 4 , PBL_PP_CAP_APP_MESSAGE_8K = 1U << 5 , PBL_PP_CAP_ACTIVITY_INSIGHTS = 1U << 6 , PBL_PP_CAP_VOICE_API = 1U << 7 ,
  PBL_PP_CAP_SEND_TEXT = 1U << 8 , PBL_PP_CAP_NOTIFICATION_FILTERING = 1U << 9 , PBL_PP_CAP_UNREAD_COREDUMP = 1U << 10 , PBL_PP_CAP_WEATHER_APP = 1U << 11 ,
  PBL_PP_CAP_REMINDERS_APP = 1U << 12 , PBL_PP_CAP_WORKOUT_APP = 1U << 13 , PBL_PP_CAP_SMOOTH_FW_INSTALL_PROGRESS = 1U << 14 , PBL_PP_CAP_IMAGING = 1U << 17 ,
  PBL_PP_CAP_SETTINGS_SYNC = 1U << 23 , PBL_PP_CAP_NOTIFICATION_WINDOW_STATE = 1U << 26
}
 Protocol capabilities announced by the phone, one bit each. More...
 
enum  pbl_pp_remote_os : uint8_t {
  PBL_PP_REMOTE_OS_UNKNOWN = 0 , PBL_PP_REMOTE_OS_IOS = 1 , PBL_PP_REMOTE_OS_ANDROID = 2 , PBL_PP_REMOTE_OS_OSX = 3 ,
  PBL_PP_REMOTE_OS_LINUX = 4 , PBL_PP_REMOTE_OS_WINDOWS = 5
}
 Operating system of the phone, as reported by the Pebble mobile app. More...