Macros
Defines
BLE Services » Power Consumption Service (PCS)
Collaboration diagram for Defines:

## Macros
#define | PCS_CONNECTION_MAX 10
| Maximum number of Power Consumption Service connections. More...
#define | PCS_MAX_DATA_LEN 244
| Maximum length of application data packet which is transmitted via PCS. More...
#define | PCS_SERVICE_UUID
| The UUID of Power Consumption Service for setting advertising data. More...
#define | PCS_SET_PARAM_SUCCESS 0x00
| PCS parameters set successfully. More...
#define | PCS_SET_PARAM_FAIL 0x81
| PCS parameters set unsuccessfully. More...
#define | PCS_SET_ADV_DATA_3B 0x03
| Set 3 byte advertising data. More...
#define | PCS_SET_ADV_DATA_10B 0x0a
| Set 10 byte advertising data. More...
#define | PCS_SET_ADV_DATA_17B 0x11
| Set 17 byte advertising data. More...
#define | PCS_SET_ADV_DATA_24B 0x18
| Set 24 byte advertising data. More...
#define | PCS_SET_ADV_DATA_31B 0x1f
| Set 31 byte advertising data. More...

## 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.