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
| Maximum number of UDS connections. More...
#define | UDS_AGE_VAL_LEN_MAX 2
| Maximum length of Age Characteristic value. More...
#define | UDS_DATE_OF_BIRTH_VAL_LEN_MAX 4
| Maximum length of Date of Birth Characteristic value. More...
#define | UDS_FIRST_NAME_VAL_LEN_MAX 50
| Maximum length of First Name Characteristic value. More...
#define | UDS_HEIGHT_VAL_LEN_MAX 2
| Maximum length of Height Characteristic value. More...
#define | UDS_GENDER_VAL_LEN_MAX 2
| Maximum length of Gender Characteristic value. More...
#define | UDS_DB_CHANGE_INCR_VAL_LEN_MAX 4
| Maximum length of Database Change Increment value. More...
#define | UDS_USER_INDEX_VAL_LEN_MAX 1
| Maximum length of User Index value. More...
#define | UDS_CTRL_PT_RSP_LEN_MIN 3
| Mimimum length of User Control Point response value. More...
#define | UDS_CTRL_PT_RSP_LEN_MAX 20
| Maximum length of User Control Point response value. More...
#define | UDS_CTRL_PT_VAL_LEN_MAX 19
| Maximum length of User Control Point value. More...
#define | UDS_REGI_USER_DATA_LEN_MAX 19
| Maximum length of Registered User Data value. More...
#define | UDS_REGI_USER_VAL_LEN_MAX 20
| Maximum length of Registered User Characteristic value. More...
#define | UDS_ERROR_UD_ACCESS_NOT_PERMIT 0x80
| Error code: The user data access is not permitted. More...
#define | UDS_ERROR_PROC_IN_PROGRESS 0xFE
| Error code: A previously triggered User Control Point operation is still in progress. More...
#define | UDS_ERROR_CCCD_INVALID 0xFD
| Error code: The Client Characteristic Configuration descriptor is not configured. More...
#define | UDS_DB_CHANGE_INCR_DEFAULT_VAL 0x00
| Database Change Increment default value. More...
#define | UDS_UNKNOWN_USER 0xFF
| Unknown User. More...
#define | UDS_CONSENT_CODE_VAL_MAX 0x270F
| Maximum value of Consent Code. More...
#define | UDS_CONSENT_TRY_NUM_MAX 0x04
| Maximum number of consent tries. More...
#define | UDS_MIDDLE_REGI_USER_SEGM 0x00
| The middle segment of Registered User Characterristic value. More...
#define | UDS_FIRST_REGI_USER_SEGM 0x01
| The first segment of Registered User Characterristic value. More...
#define | UDS_LAST_REGI_USER_SEGM 0x02
| The last segment of Registered User Characterristic value. More...
#define | UDS_ONLY_REGI_USER_SEGM 0x03
| The only segment of Registered User Characterristic value. More...

## 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 75 of file uds.h.

## ◆ UDS_CONNECTION_MAX

#define UDS_CONNECTION_MAX

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

Maximum number of UDS connections.

Definition at line 73 of file uds.h.

## ◆ UDS_CONSENT_CODE_VAL_MAX

#define UDS_CONSENT_CODE_VAL_MAX 0x270F

Maximum value of Consent Code.

Definition at line 94 of file uds.h.

## ◆ UDS_CONSENT_TRY_NUM_MAX

#define UDS_CONSENT_TRY_NUM_MAX 0x04

Maximum number of consent tries.

Definition at line 95 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 83 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 82 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 84 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 76 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 92 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 80 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 90 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 89 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 88 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 77 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 98 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 79 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 78 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 99 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 97 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 100 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 85 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 86 of file uds.h.

## ◆ UDS_UNKNOWN_USER

#define UDS_UNKNOWN_USER 0xFF

Unknown User.

Definition at line 93 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 81 of file uds.h.