PebbleOS v4.48.0-75-g7416f78a1
Loading...
Searching...
No Matches

Pebble protocol over USB, for development tools: a function of the USB device. More...

Macros

#define PBL_PP_USB_CLASS   0xffU
 Interface class, vendor-specific.
 
#define PBL_PP_USB_SUBCLASS   0x50U
 Interface subclass, which tells the interface from other vendor-specific ones.
 
#define PBL_PP_USB_PROTOCOL   0x01U
 Interface protocol.
 

Variables

const struct pbl_pp_transport pbl_pp_usb_transport
 The transport, to tell its sessions from others, see pbl_pp_session_get_transport().
 

Detailed Description

Pebble protocol over USB, for development tools: a function of the USB device.

An interface of its own class, with a bulk OUT and a bulk IN endpoint, which carry the Pebble protocol messages as a byte stream each way. A transfer ends with a short packet, a zero-length one if it fills its last packet. The host opens a session with the vendor request 0x01 to the interface, which also ends the session open before, and closes it with 0x02. The application connects the device to the bus with pbl_usbd_enable().

Macro Definition Documentation

◆ PBL_PP_USB_CLASS

#define PBL_PP_USB_CLASS   0xffU

Interface class, vendor-specific.

◆ PBL_PP_USB_PROTOCOL

#define PBL_PP_USB_PROTOCOL   0x01U

Interface protocol.

◆ PBL_PP_USB_SUBCLASS

#define PBL_PP_USB_SUBCLASS   0x50U

Interface subclass, which tells the interface from other vendor-specific ones.

Variable Documentation

◆ pbl_pp_usb_transport

const struct pbl_pp_transport pbl_pp_usb_transport
extern

The transport, to tell its sessions from others, see pbl_pp_session_get_transport().