Modules | Macros
Defines
BLE Services » User Data Service (UDS)

## Modules
| Characteristics Mask
| Bit masks for the initialization of uds_init_t::char_mask.

## Macros
#define | UDS_CONNECTION_MAX
#define | UDS_AGE_VAL_LEN_MAX 2
#define | UDS_DATE_OF_BIRTH_VAL_LEN_MAX 4
#define | UDS_FIRST_NAME_VAL_LEN_MAX 50
#define | UDS_HEIGHT_VAL_LEN_MAX 2
#define | UDS_GENDER_VAL_LEN_MAX 2
#define | UDS_DB_CHANGE_INCR_VAL_LEN_MAX 4
#define | UDS_USER_INDEX_VAL_LEN_MAX 1
#define | UDS_CTRL_PT_RSP_LEN_MIN 3
#define | UDS_CTRL_PT_RSP_LEN_MAX 20
#define | UDS_CTRL_PT_VAL_LEN_MAX 19
#define | UDS_REGI_USER_DATA_LEN_MAX 19
#define | UDS_REGI_USER_VAL_LEN_MAX 20
#define | UDS_ERROR_UD_ACCESS_NOT_PERMIT 0x80
#define | UDS_ERROR_PROC_IN_PROGRESS 0xFE
#define | UDS_ERROR_CCCD_INVALID 0xFD
#define | UDS_DB_CHANGE_INCR_DEFAULT_VAL 0x00
#define | UDS_UNKNOWN_USER 0xFF
#define | UDS_CONSENT_CODE_VAL_MAX 0x270F
#define | UDS_CONSENT_TRY_NUM_MAX 0x04
#define | UDS_MIDDLE_REGI_USER_SEGM 0x00
#define | UDS_FIRST_REGI_USER_SEGM 0x01
#define | UDS_LAST_REGI_USER_SEGM 0x02
#define | UDS_ONLY_REGI_USER_SEGM 0x03

## Detailed Description

## Macro Definition Documentation

## ◆ UDS_AGE_VAL_LEN_MAX

#define UDS_AGE_VAL_LEN_MAX 2

Maximum length of Age Characteristic value.

## ◆ UDS_CONNECTION_MAX

#define UDS_CONNECTION_MAX

Value:
(10 < CFG_MAX_CONNECTIONS ?\
10 : CFG_MAX_CONNECTIONS)

Maximum number of UDS connections.

## ◆ UDS_CONSENT_CODE_VAL_MAX

#define UDS_CONSENT_CODE_VAL_MAX 0x270F

Maximum value of Consent Code.

## ◆ UDS_CONSENT_TRY_NUM_MAX

#define UDS_CONSENT_TRY_NUM_MAX 0x04

Maximum number of consent tries.

## ◆ UDS_CTRL_PT_RSP_LEN_MAX

#define UDS_CTRL_PT_RSP_LEN_MAX 20

Maximum length of User Control Point response value.

## ◆ UDS_CTRL_PT_RSP_LEN_MIN

#define UDS_CTRL_PT_RSP_LEN_MIN 3

Mimimum length of User Control Point response value.

## ◆ UDS_CTRL_PT_VAL_LEN_MAX

#define UDS_CTRL_PT_VAL_LEN_MAX 19

Maximum length of User Control Point value.

## ◆ UDS_DATE_OF_BIRTH_VAL_LEN_MAX

#define UDS_DATE_OF_BIRTH_VAL_LEN_MAX 4

Maximum length of Date of Birth Characteristic value.

## ◆ UDS_DB_CHANGE_INCR_DEFAULT_VAL

#define UDS_DB_CHANGE_INCR_DEFAULT_VAL 0x00

Database Change Increment default value.

## ◆ UDS_DB_CHANGE_INCR_VAL_LEN_MAX

#define UDS_DB_CHANGE_INCR_VAL_LEN_MAX 4

Maximum length of Database Change Increment value.

## ◆ UDS_ERROR_CCCD_INVALID

#define UDS_ERROR_CCCD_INVALID 0xFD

Error code: The Client Characteristic Configuration descriptor is not configured.

## ◆ UDS_ERROR_PROC_IN_PROGRESS

#define UDS_ERROR_PROC_IN_PROGRESS 0xFE

Error code: A previously triggered User Control Point operation is still in progress.

## ◆ UDS_ERROR_UD_ACCESS_NOT_PERMIT

#define UDS_ERROR_UD_ACCESS_NOT_PERMIT 0x80

Error code: The user data access is not permitted.

## ◆ UDS_FIRST_NAME_VAL_LEN_MAX

#define UDS_FIRST_NAME_VAL_LEN_MAX 50

Maximum length of First Name Characteristic value.

## ◆ UDS_FIRST_REGI_USER_SEGM

#define UDS_FIRST_REGI_USER_SEGM 0x01

The first segment of Registered User Characterristic value.

## ◆ UDS_GENDER_VAL_LEN_MAX

#define UDS_GENDER_VAL_LEN_MAX 2

Maximum length of Gender Characteristic value.

## ◆ UDS_HEIGHT_VAL_LEN_MAX

#define UDS_HEIGHT_VAL_LEN_MAX 2

Maximum length of Height Characteristic value.

## ◆ UDS_LAST_REGI_USER_SEGM

#define UDS_LAST_REGI_USER_SEGM 0x02

The last segment of Registered User Characterristic value.

## ◆ UDS_MIDDLE_REGI_USER_SEGM

#define UDS_MIDDLE_REGI_USER_SEGM 0x00

The middle segment of Registered User Characterristic value.

## ◆ UDS_ONLY_REGI_USER_SEGM

#define UDS_ONLY_REGI_USER_SEGM 0x03

The only segment of Registered User Characterristic value.

## ◆ UDS_REGI_USER_DATA_LEN_MAX

#define UDS_REGI_USER_DATA_LEN_MAX 19

Maximum length of Registered User Data value.

## ◆ UDS_REGI_USER_VAL_LEN_MAX

#define UDS_REGI_USER_VAL_LEN_MAX 20

Maximum length of Registered User Characteristic value.

## ◆ UDS_UNKNOWN_USER

#define UDS_UNKNOWN_USER 0xFF

Unknown User.

## ◆ UDS_USER_INDEX_VAL_LEN_MAX

#define UDS_USER_INDEX_VAL_LEN_MAX 1

Maximum length of User Index value.