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 10
#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
#define | UDS_MEAS_FLAG_DEFAULT 0x3E

## Detailed Description

## Macro Definition Documentation

## ◆ UDS_AGE_VAL_LEN_MAX

#define UDS_AGE_VAL_LEN_MAX 2

Maximum length of Age Characteristic value.

Definition at line 73 of file uds.h.

## ◆ UDS_CONNECTION_MAX

#define UDS_CONNECTION_MAX 10

Maximum number of UDS connections.

Definition at line 72 of file uds.h.

## ◆ UDS_CONSENT_CODE_VAL_MAX

#define UDS_CONSENT_CODE_VAL_MAX 0x270F

Maximum value of Consent Code.

Definition at line 92 of file uds.h.

## ◆ UDS_CONSENT_TRY_NUM_MAX

#define UDS_CONSENT_TRY_NUM_MAX 0x04

Maximum number of consent tries.

Definition at line 93 of file uds.h.

## ◆ UDS_CTRL_PT_RSP_LEN_MAX

#define UDS_CTRL_PT_RSP_LEN_MAX 20

Maximum length of User Control Point response value.

Definition at line 81 of file uds.h.

## ◆ UDS_CTRL_PT_RSP_LEN_MIN

#define UDS_CTRL_PT_RSP_LEN_MIN 3

Mimimum length of User Control Point response value.

Definition at line 80 of file uds.h.

## ◆ UDS_CTRL_PT_VAL_LEN_MAX

#define UDS_CTRL_PT_VAL_LEN_MAX 19

Maximum length of User Control Point value.

Definition at line 82 of file uds.h.

## ◆ UDS_DATE_OF_BIRTH_VAL_LEN_MAX

#define UDS_DATE_OF_BIRTH_VAL_LEN_MAX 4

Maximum length of Date of Birth Characteristic value.

Definition at line 74 of file uds.h.

## ◆ UDS_DB_CHANGE_INCR_DEFAULT_VAL

#define UDS_DB_CHANGE_INCR_DEFAULT_VAL 0x00

Database Change Increment default value.

Definition at line 90 of file uds.h.

## ◆ UDS_DB_CHANGE_INCR_VAL_LEN_MAX

#define UDS_DB_CHANGE_INCR_VAL_LEN_MAX 4

Maximum length of Database Change Increment value.

Definition at line 78 of file uds.h.

## ◆ UDS_ERROR_CCCD_INVALID

#define UDS_ERROR_CCCD_INVALID 0xFD

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

Definition at line 88 of file uds.h.

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

Definition at line 87 of file uds.h.

## ◆ UDS_ERROR_UD_ACCESS_NOT_PERMIT

#define UDS_ERROR_UD_ACCESS_NOT_PERMIT 0x80

Error code: The user data access is not permitted.

Definition at line 86 of file uds.h.

## ◆ UDS_FIRST_NAME_VAL_LEN_MAX

#define UDS_FIRST_NAME_VAL_LEN_MAX 50

Maximum length of First Name Characteristic value.

Definition at line 75 of file uds.h.

## ◆ UDS_FIRST_REGI_USER_SEGM

#define UDS_FIRST_REGI_USER_SEGM 0x01

The first segment of Registered User Characterristic value.

Definition at line 96 of file uds.h.

## ◆ UDS_GENDER_VAL_LEN_MAX

#define UDS_GENDER_VAL_LEN_MAX 2

Maximum length of Gender Characteristic value.

Definition at line 77 of file uds.h.

## ◆ UDS_HEIGHT_VAL_LEN_MAX

#define UDS_HEIGHT_VAL_LEN_MAX 2

Maximum length of Height Characteristic value.

Definition at line 76 of file uds.h.

## ◆ UDS_LAST_REGI_USER_SEGM

#define UDS_LAST_REGI_USER_SEGM 0x02

The last segment of Registered User Characterristic value.

Definition at line 97 of file uds.h.

## ◆ UDS_MEAS_FLAG_DEFAULT

#define UDS_MEAS_FLAG_DEFAULT 0x3E

The default flag of UDS MEAS

Definition at line 100 of file uds.h.

## ◆ UDS_MIDDLE_REGI_USER_SEGM

#define UDS_MIDDLE_REGI_USER_SEGM 0x00

The middle segment of Registered User Characterristic value.

Definition at line 95 of file uds.h.

## ◆ UDS_ONLY_REGI_USER_SEGM

#define UDS_ONLY_REGI_USER_SEGM 0x03

The only segment of Registered User Characterristic value.

Definition at line 98 of file uds.h.

## ◆ UDS_REGI_USER_DATA_LEN_MAX

#define UDS_REGI_USER_DATA_LEN_MAX 19

Maximum length of Registered User Data value.

Definition at line 83 of file uds.h.

## ◆ UDS_REGI_USER_VAL_LEN_MAX

#define UDS_REGI_USER_VAL_LEN_MAX 20

Maximum length of Registered User Characteristic value.

Definition at line 84 of file uds.h.

## ◆ UDS_UNKNOWN_USER

#define UDS_UNKNOWN_USER 0xFF

Unknown User.

Definition at line 91 of file uds.h.

## ◆ UDS_USER_INDEX_VAL_LEN_MAX

#define UDS_USER_INDEX_VAL_LEN_MAX 1

Maximum length of User Index value.

Definition at line 79 of file uds.h.