PebbleOS
Loading...
Searching...
No Matches
Data Structures | Macros
Device Information Service

Values served by the GATT Device Information Service. More...

Data Structures

struct  pbl_bt_dis_info
 Device Information Service values, NUL-terminated strings. More...
 

Macros

#define PBL_BT_DIS_MODEL_NUMBER_LEN   (10)
 Length of the model number, MFG_HW_VERSION_SIZE + 1.
 
#define PBL_BT_DIS_MANUFACTURER_LEN   (18)
 Length of the manufacturer name, at least sizeof(BT_VENDOR_NAME).
 
#define PBL_BT_DIS_SERIAL_NUMBER_LEN   (13)
 Length of the serial number, MFG_SERIAL_NUMBER_SIZE + 1.
 
#define PBL_BT_DIS_FW_REVISION_LEN   (32)
 Length of the firmware revision, FW_METADATA_VERSION_TAG_BYTES.
 
#define PBL_BT_DIS_SW_REVISION_LEN   (8)
 Length of the software revision, formatted as xx.xxx.
 

Detailed Description

Values served by the GATT Device Information Service.

The lengths are spelled out instead of derived from the firmware headers that define them, so this header stays usable by the stack. The firmware checks at build time that they are large enough. All lengths include the terminator.


Data Structure Documentation

◆ pbl_bt_dis_info

struct pbl_bt_dis_info

Device Information Service values, NUL-terminated strings.

Data Fields
char fw_revision[PBL_BT_DIS_FW_REVISION_LEN] Firmware Revision String.
char manufacturer[PBL_BT_DIS_MANUFACTURER_LEN] Manufacturer Name String.
char model_number[PBL_BT_DIS_MODEL_NUMBER_LEN] Model Number String.
char serial_number[PBL_BT_DIS_SERIAL_NUMBER_LEN] Serial Number String.
char sw_revision[PBL_BT_DIS_SW_REVISION_LEN] Software Revision String.

Macro Definition Documentation

◆ PBL_BT_DIS_FW_REVISION_LEN

#define PBL_BT_DIS_FW_REVISION_LEN   (32)

Length of the firmware revision, FW_METADATA_VERSION_TAG_BYTES.

◆ PBL_BT_DIS_MANUFACTURER_LEN

#define PBL_BT_DIS_MANUFACTURER_LEN   (18)

Length of the manufacturer name, at least sizeof(BT_VENDOR_NAME).

◆ PBL_BT_DIS_MODEL_NUMBER_LEN

#define PBL_BT_DIS_MODEL_NUMBER_LEN   (10)

Length of the model number, MFG_HW_VERSION_SIZE + 1.

◆ PBL_BT_DIS_SERIAL_NUMBER_LEN

#define PBL_BT_DIS_SERIAL_NUMBER_LEN   (13)

Length of the serial number, MFG_SERIAL_NUMBER_SIZE + 1.

◆ PBL_BT_DIS_SW_REVISION_LEN

#define PBL_BT_DIS_SW_REVISION_LEN   (8)

Length of the software revision, formatted as xx.xxx.