Macros

#define PCS_CONNECTION_MAX   10
 
#define PCS_MAX_DATA_LEN   244
 
#define PCS_SERVICE_UUID
 
#define PCS_SET_PARAM_SUCCESS   0x00
 
#define PCS_SET_PARAM_FAIL   0x81
 
#define PCS_SET_ADV_DATA_3B   0x03
 
#define PCS_SET_ADV_DATA_10B   0x0a
 
#define PCS_SET_ADV_DATA_17B   0x11
 
#define PCS_SET_ADV_DATA_24B   0x18
 
#define PCS_SET_ADV_DATA_31B   0x1f
 

Detailed Description

Macro Definition Documentation

◆ PCS_CONNECTION_MAX

#define PCS_CONNECTION_MAX   10

Maximum number of Power Consumption Service connections.

Definition at line 68 of file pcs.h.

◆ PCS_MAX_DATA_LEN

#define PCS_MAX_DATA_LEN   244

Maximum length of application data packet which is transmitted via PCS.

Definition at line 69 of file pcs.h.

◆ PCS_SERVICE_UUID

#define PCS_SERVICE_UUID
Value:
0x1B, 0xD7, 0x90, 0xEC, 0xE8, 0xB9, 0x75, 0x80,\
0x0A, 0x46, 0x44, 0xD3, 0x01, 0x05, 0xED, 0xA6

The UUID of Power Consumption Service for setting advertising data.

Definition at line 71 of file pcs.h.

◆ PCS_SET_ADV_DATA_10B

#define PCS_SET_ADV_DATA_10B   0x0a

Set 10 byte advertising data.

Definition at line 77 of file pcs.h.

◆ PCS_SET_ADV_DATA_17B

#define PCS_SET_ADV_DATA_17B   0x11

Set 17 byte advertising data.

Definition at line 78 of file pcs.h.

◆ PCS_SET_ADV_DATA_24B

#define PCS_SET_ADV_DATA_24B   0x18

Set 24 byte advertising data.

Definition at line 79 of file pcs.h.

◆ PCS_SET_ADV_DATA_31B

#define PCS_SET_ADV_DATA_31B   0x1f

Set 31 byte advertising data.

Definition at line 80 of file pcs.h.

◆ PCS_SET_ADV_DATA_3B

#define PCS_SET_ADV_DATA_3B   0x03

Set 3 byte advertising data.

Definition at line 76 of file pcs.h.

◆ PCS_SET_PARAM_FAIL

#define PCS_SET_PARAM_FAIL   0x81

PCS parameters set unsuccessfully.

Definition at line 74 of file pcs.h.

◆ PCS_SET_PARAM_SUCCESS

#define PCS_SET_PARAM_SUCCESS   0x00

PCS parameters set successfully.

Definition at line 73 of file pcs.h.