Macros
Defines
BLE Services » Shelf Label AP Client (ESLS_C)

## Macros
#define | ESL_CTL_PT_TLV_MAX_LEN 17
#define | ESL_TLV_CMD_TAG(OPCODE) (OPCODE & 0xF)
#define | ESL_TLV_CMD_LEN(OPCODE) ((OPCODE>>4) & 0xF)
#define | ESL_TLV_CMD_CHECK(OPCODE, length) ((ESL_TLV_CMD_LEN(OPCODE)==(length -2))?true:false)
#define | ESL_BASIC_STATE_SERV_NEED_POS 0
#define | ESL_BASIC_STATE_SYNC_POS 1
#define | ESL_BASIC_STATE_ACTIVE_LED_POS 2
#define | ESL_BASIC_STATE_LED_UPDATE_POS 3
#define | ESL_BASIC_STATE_DISP_UPDATE_POS 4
#define | ESL_ADDR_ESL_ID_BROAD_ADDR 0xFF
#define | ESL_ADDR_INVALID_GRP_ID 0xFF

## Detailed Description

## Macro Definition Documentation

## ◆ 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 85 of file esls_c.h.

## ◆ ESL_ADDR_INVALID_GRP_ID

#define ESL_ADDR_INVALID_GRP_ID 0xFF

The value 0xFF is reserved for the Invalid Group Address.

Definition at line 86 of file esls_c.h.

## ◆ ESL_BASIC_STATE_ACTIVE_LED_POS

#define ESL_BASIC_STATE_ACTIVE_LED_POS 2

Definition at line 81 of file esls_c.h.

## ◆ ESL_BASIC_STATE_DISP_UPDATE_POS

#define ESL_BASIC_STATE_DISP_UPDATE_POS 4

Definition at line 83 of file esls_c.h.

## ◆ ESL_BASIC_STATE_LED_UPDATE_POS

#define ESL_BASIC_STATE_LED_UPDATE_POS 3

Definition at line 82 of file esls_c.h.

## ◆ ESL_BASIC_STATE_SERV_NEED_POS

#define ESL_BASIC_STATE_SERV_NEED_POS 0

Offset for basic state bits.

Definition at line 79 of file esls_c.h.

## ◆ ESL_BASIC_STATE_SYNC_POS

#define ESL_BASIC_STATE_SYNC_POS 1

Definition at line 80 of file esls_c.h.

## ◆ ESL_CTL_PT_TLV_MAX_LEN

#define ESL_CTL_PT_TLV_MAX_LEN 17

Value for MAX esl TlV data len.

Definition at line 71 of file esls_c.h.

## ◆ ESL_TLV_CMD_CHECK

#define ESL_TLV_CMD_CHECK | ( |  | OPCODE,
|  |  | length
| ) |  | ((ESL_TLV_CMD_LEN(OPCODE)==(length -2))?true:false)

Definition at line 76 of file esls_c.h.

## ◆ ESL_TLV_CMD_LEN

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

Definition at line 74 of file esls_c.h.

## ◆ ESL_TLV_CMD_TAG

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

Definition at line 73 of file esls_c.h.