50 #define UDSC_UCP_OPCODE_RNU 0x01 51 #define UDSC_UCP_OPCODE_CONSENT 0x02 52 #define UDSC_UCP_OPCODE_DUD 0x03 53 #define UDSC_UCP_OPCODE_RESPONSE 0x20 60 #define UDSC_UCP_RSP_SUCCESS 0x01 61 #define UDSC_UCP_RSP_OP_NOT_SUPPORTED 0x02 62 #define UDSC_UCP_RSP_INVALID_PARAMETER 0x03 63 #define UDSC_UCP_RSP_OP_FAILED 0x04 64 #define UDSC_UCP_RSP_NOT_AUTHORIZED 0x05 void UdscClose(void)
Called by the application when a connection closes.
uint8_t dmConnId_t
Connection identifier.
void UdscReadDatabaseChangeIncrement(dmConnId_t connId, uint16_t handle)
Read the database change increment characteristic.
void UdscDiscover(dmConnId_t connId, uint16_t *pHdlList)
Perform service and characteristic discovery for User Data service. Parameter pHdlList must point to ...
uint8_t UdscValueUpdate(uint16_t *pHdlList, attEvt_t *pMsg)
Process a value received in an ATT read response, notification, or indication message. Parameter pHdlList must point to an array of length UDSC_HDL_LIST_LEN. If the ATT handle of the message matches a handle in the handle list the value is processed, otherwise it is ignored.
Database Change Interval CCC descriptor.
void UdscReadUserIndex(dmConnId_t connId, uint16_t handle)
Read the user index characteristic.
User Control Point CCC descriptor.
unsigned long uint32_t
Unsigned 32-bit value.
uint8_t wsfHandlerId_t
Event handler ID data type.
void(* UdsRspCback_t)(dmConnId_t connId, uint8_t opcode, uint8_t response, uint8_t index)
UDS Control Point Response Callback.
unsigned short uint16_t
Unsigned 16-bit value.
void UdscRegisterNewUser(dmConnId_t connId, uint16_t handle, uint16_t consentCode)
Write to the user control point characteristic - Register New User.
void UdscWriteDatabaseChangeIncrement(dmConnId_t connId, uint16_t handle, uint32_t increment)
Write the database change increment characteristic.
void UdscConsent(dmConnId_t connId, uint16_t handle, uint8_t index, uint16_t consentCode)
Write to the user control point characteristic - Consent.
Attribute protocol client and server API.
void UdscDeleteUserData(dmConnId_t connId, uint16_t handle)
Write to the user control point characteristic - Delete User Data.
Database Change Interval.
void UdscInit(wsfHandlerId_t handlerId, uint8_t timerEvent, UdsRspCback_t rspCback)
Initialize User Data Service collector callbacks.
unsigned char uint8_t
Unsigned 8-bit value.