Trident IoT Z-Wave SDK
 
Loading...
Searching...
No Matches
CC_UserCode.h
Go to the documentation of this file.
1
25#ifndef _COMMANDCLASSUSERCODE_H_
26#define _COMMANDCLASSUSERCODE_H_
27
28/****************************************************************************/
29/* INCLUDE FILES */
30/****************************************************************************/
31#include <CC_Common.h>
32
40/****************************************************************************/
41/* EXPORTED TYPES and DEFINITIONS */
42/****************************************************************************/
43
57typedef enum
58{
62 USER_ID_NO_STATUS = 0xFE
65
67
71#define USERCODE_MIN_LEN 4
72
76#define USERCODE_MAX_LEN 10
77
78// Used by application file system.
85
94
100#define CC_USER_CODE_EVENT_VALIDATE 1
101
102typedef struct {
103 uint8_t id;
104 uint8_t *data;
105 uint8_t length;
107
108#define CC_USER_CODE_EVENT_VALIDATE_VALID 2
109#define CC_USER_CODE_EVENT_VALIDATE_INVALID 3
110
115/****************************************************************************/
116/* EXPORTED DATA */
117/****************************************************************************/
118
119// Nothing here.
120
121/****************************************************************************/
122/* EXPORTED FUNCTIONS */
123/****************************************************************************/
124
136 uint8_t identifier,
138 uint8_t* pUserCode,
139 uint8_t len,
140 uint8_t endpoint);
141
150 uint8_t identifier,
151 USER_ID_STATUS* pId,
152 uint8_t endpoint );
153
154
165 uint8_t identifier,
166 uint8_t* pUserCode,
167 size_t *pLen,
168 uint8_t endpoint );
169
170
178uint8_t CC_UserCode_UsersNumberReport_handler( uint8_t endpoint );
179
185
199 AGI_PROFILE* pProfile,
200 uint8_t sourceEndpoint,
201 uint8_t userIdentifier,
202 uint8_t userIdStatus,
203 uint8_t* pUserCode,
204 uint8_t userCodeLen,
205 VOID_CALLBACKFUNC(pCallback)(TRANSMISSION_RESULT * pTransmissionResult));
206
212#endif /* _COMMANDCLASSUSERCODE_H_ */
213
zaf_job_status_t
Definition ZAF_types.h:149
e_cmd_handler_return_code_t
Definition ZAF_types.h:95
struct s_CC_userCode_data_t_ s_CC_userCode_data_t
user_id_status_t USER_ID_STATUS
Definition CC_UserCode.h:66
bool CC_UserCode_Report_handler(uint8_t identifier, uint8_t *pUserCode, size_t *pLen, uint8_t endpoint)
The User Code Report Command can be used by e.g. a door lock device to send a report either unsolicit...
JOB_STATUS CC_UserCode_SupportReport(AGI_PROFILE *pProfile, uint8_t sourceEndpoint, uint8_t userIdentifier, uint8_t userIdStatus, uint8_t *pUserCode, uint8_t userCodeLen, void(*pCallback)(TRANSMISSION_RESULT *pTransmissionResult))
Send a Command Class User code support report.
uint8_t CC_UserCode_UsersNumberReport_handler(uint8_t endpoint)
The Users Number Report Command used to report the maximum number of USER CODES the given node suppor...
user_id_status_t
Definition CC_UserCode.h:58
#define USERCODE_MAX_LEN
Definition CC_UserCode.h:76
bool CC_UserCode_getId_handler(uint8_t identifier, USER_ID_STATUS *pId, uint8_t endpoint)
The User Code Get ID.
struct SUserCode SUserCode
e_cmd_handler_return_code_t CC_UserCode_Set_handler(uint8_t identifier, USER_ID_STATUS id, uint8_t *pUserCode, uint8_t len, uint8_t endpoint)
The User Code Set Command used to set a User Code in the device.
void CC_UserCode_reset_data(void)
Resets the data used by the command class.
@ USER_ID_RESERVED
Definition CC_UserCode.h:61
@ USER_ID_OCCUPIED
Definition CC_UserCode.h:60
@ USER_ID_AVAILABLE
Definition CC_UserCode.h:59
@ USER_ID_NO_STATUS
Definition CC_UserCode.h:62
#define VOID_CALLBACKFUNC(completedFunc)
Definition ZW_typedefs.h:46
Definition CC_UserCode.h:80
uint8_t userCode[USERCODE_MAX_LEN]
Definition CC_UserCode.h:82
USER_ID_STATUS user_id_status
Definition CC_UserCode.h:81
uint8_t userCodeLen
Definition CC_UserCode.h:83
Definition ZAF_types.h:71
Definition ZAF_types.h:135
Definition CC_UserCode.h:102
uint8_t * data
Definition CC_UserCode.h:104
uint8_t id
Definition CC_UserCode.h:103
uint8_t length
Definition CC_UserCode.h:105
Definition CC_UserCode.h:90
RECEIVE_OPTIONS_TYPE_EX rxOptions
Definition CC_UserCode.h:91
uint8_t userIdentifier
Definition CC_UserCode.h:92
Definition ZAF_types.h:178