Macros
Defines
BLE Services » Electronic Shelf Label Service (ESLS)

## Macros
#define | PAWR_MAX_SENT_DATA_LEN 250
#define | PAWR_SENT_DATA_LEN_OFFSET 0
#define | PAWR_SENT_DATA_TYPE_OFFSET 1
#define | ESLS_CONNECTION_MAX 10
#define | ESL_ADDR_LEN 2
#define | ESL_SESSION_KEY_LEN 16
#define | ESL_IV_LEN 8
#define | AP_SYNC_KEY_MATERIAL_LEN (ESL_SESSION_KEY_LEN + ESL_IV_LEN)
#define | ESL_RSP_KEY_MATERIAL_LEN (ESL_SESSION_KEY_LEN + ESL_IV_LEN)
#define | ESL_CTL_PT_TLV_MIN_LEN 2
#define | ESL_CTL_PT_TLV_MAX_LEN 17
#define | ESL_MAX_VAL_LEN 512
#define | ESL_ADDR_ESL_ID_BROAD_ADDR 0xFF
#define | ESL_CTL_PT_SENSOR_DATA_MAX_LEN 15
#define | ESL_VENDOR_DATA_MAX_LEN 15
#define | esls_sensor_size00(x) x&0xFF, (x>>8)&0xFF
#define | esls_sensor_size01(y) y&0xFF, (y>>8)&0xFF, (y>>16)&0xFF, (y>>24)&0xFF
#define | GRP_ID_MSK(esl_addr) (esl_addr & 0x7F)
#define | ESL_TLV_CMD_TAG(OPCODE) (OPCODE & 0xF)
#define | ESL_TLV_CMD_LEN(OPCODE) ((OPCODE>>4) & 0xF)
#define | ESL_VEND_TAG 0x0F
#define | ESL_LED_INFOR_TYPE_RGB(x) (x & 0x3F)
#define | ESL_LED_INFOR_TYPE_MON(y) ((y & 0x3F)|(0x40))

## Detailed Description

## Macro Definition Documentation

## ◆ AP_SYNC_KEY_MATERIAL_LEN

#define AP_SYNC_KEY_MATERIAL_LEN (ESL_SESSION_KEY_LEN + ESL_IV_LEN)

The encryption keys of AP sent data .

Definition at line 75 of file esls.h.

## ◆ ESL_ADDR_ESL_ID_BROAD_ADDR

#define ESL_ADDR_ESL_ID_BROAD_ADDR 0xFF

The value 0xFF is reserved for the Broadcast Address.

Definition at line 81 of file esls.h.

## ◆ ESL_ADDR_LEN

#define ESL_ADDR_LEN 2

Maximum length of heart rate measurement characteristic.

Definition at line 72 of file esls.h.

## ◆ ESL_CTL_PT_SENSOR_DATA_MAX_LEN

#define ESL_CTL_PT_SENSOR_DATA_MAX_LEN 15

The max sensor data length.

Definition at line 83 of file esls.h.

## ◆ ESL_CTL_PT_TLV_MAX_LEN

#define ESL_CTL_PT_TLV_MAX_LEN 17

The longest TLV length .

Definition at line 78 of file esls.h.

## ◆ ESL_CTL_PT_TLV_MIN_LEN

#define ESL_CTL_PT_TLV_MIN_LEN 2

The shortest TLV length .

Definition at line 77 of file esls.h.

## ◆ ESL_IV_LEN

#define ESL_IV_LEN 8

The length of initialization vector.

Definition at line 74 of file esls.h.

## ◆ ESL_LED_INFOR_TYPE_MON

#define ESL_LED_INFOR_TYPE_MON | ( |  | y | ) | ((y & 0x3F)|(0x40))

Monochrome LED Type.

Definition at line 94 of file esls.h.

## ◆ ESL_LED_INFOR_TYPE_RGB

#define ESL_LED_INFOR_TYPE_RGB | ( |  | x | ) | (x & 0x3F)

sRGB LED Type.

Definition at line 93 of file esls.h.

## ◆ ESL_MAX_VAL_LEN

#define ESL_MAX_VAL_LEN 512

Definition at line 79 of file esls.h.

## ◆ ESL_RSP_KEY_MATERIAL_LEN

#define ESL_RSP_KEY_MATERIAL_LEN (ESL_SESSION_KEY_LEN + ESL_IV_LEN)

The encryption keys of ESL response data .

Definition at line 76 of file esls.h.

## ◆ ESL_SESSION_KEY_LEN

#define ESL_SESSION_KEY_LEN 16

The length of shared session key.

Definition at line 73 of file esls.h.

## ◆ ESL_TLV_CMD_LEN

#define ESL_TLV_CMD_LEN | ( |  | OPCODE | ) | ((OPCODE>>4) & 0xF)

Get opcode length field.

Definition at line 91 of file esls.h.

## ◆ ESL_TLV_CMD_TAG

#define ESL_TLV_CMD_TAG | ( |  | OPCODE | ) | (OPCODE & 0xF)

Get opcode tag field.

Definition at line 90 of file esls.h.

## ◆ ESL_VEND_TAG

#define ESL_VEND_TAG 0x0F

Vendor tag field.

Definition at line 92 of file esls.h.

## ◆ ESL_VENDOR_DATA_MAX_LEN

#define ESL_VENDOR_DATA_MAX_LEN 15

The max vendor data length.

Definition at line 84 of file esls.h.

## ◆ ESLS_CONNECTION_MAX

#define ESLS_CONNECTION_MAX 10

Maximum number of Electronic Shelf Label Service connections.

Definition at line 71 of file esls.h.

## ◆ esls_sensor_size00

#define esls_sensor_size00 | ( |  | x | ) | x&0xFF, (x>>8)&0xFF

Definition at line 86 of file esls.h.

## ◆ esls_sensor_size01

#define esls_sensor_size01 | ( |  | y | ) | y&0xFF, (y>>8)&0xFF, (y>>16)&0xFF, (y>>24)&0xFF

Definition at line 87 of file esls.h.

## ◆ GRP_ID_MSK

#define GRP_ID_MSK | ( |  | esl_addr | ) | (esl_addr & 0x7F)

Definition at line 89 of file esls.h.

## ◆ PAWR_MAX_SENT_DATA_LEN

#define PAWR_MAX_SENT_DATA_LEN 250

Maximum data length per subevt.

Definition at line 67 of file esls.h.

## ◆ PAWR_SENT_DATA_LEN_OFFSET

#define PAWR_SENT_DATA_LEN_OFFSET 0

Advertising data length field offset.

Definition at line 68 of file esls.h.

## ◆ PAWR_SENT_DATA_TYPE_OFFSET

#define PAWR_SENT_DATA_TYPE_OFFSET 1

Advertising data type field offset.

Definition at line 69 of file esls.h.