Z-Wave Protocol Controller Reference
zwave_command_class_user_credential_api.h
Go to the documentation of this file.
1/******************************************************************************
2 * # License
3 * <b>Copyright 2024 Silicon Laboratories Inc. www.silabs.com</b>
4 ******************************************************************************
5 * The licensor of this software is Silicon Laboratories Inc. Your use of this
6 * software is governed by the terms of Silicon Labs Master Software License
7 * Agreement (MSLA) available at
8 * www.silabs.com/about-us/legal/master-software-license-agreement. This
9 * software is distributed to you in Source Code format and is governed by the
10 * sections of the MSLA applicable to Source Code.
11 *
12 *****************************************************************************/
13
22#ifndef ZWAVE_COMMAND_CLASS_USER_CREDENTIAL_API_H
23#define ZWAVE_COMMAND_CLASS_USER_CREDENTIAL_API_H
24
25#include "sl_status.h"
27#include "attribute_store.h"
28
29#ifdef __cplusplus
30extern "C" {
31#endif
32
49 attribute_store_node_t endpoint_node,
51 user_credential_type_t user_type,
52 user_credential_rule_t credential_rule,
55 user_credential_user_name_encoding_t user_name_encoding,
56 const char *user_name);
57
58
75 attribute_store_node_t endpoint_node,
77 user_credential_type_t user_type,
78 user_credential_rule_t credential_rule,
81 user_credential_user_name_encoding_t user_name_encoding,
82 const char *user_name);
83
94 attribute_store_node_t endpoint_node,
96
116 attribute_store_node_t endpoint_node,
118 user_credential_type_t credential_type,
119 user_credential_slot_t credential_slot,
120 const char* credential_data);
121
140 attribute_store_node_t endpoint_node,
142 user_credential_type_t credential_type,
143 user_credential_slot_t credential_slot,
144 const char* credential_data
145);
146
159 attribute_store_node_t endpoint_node,
161 user_credential_type_t credential_type,
162 user_credential_slot_t credential_slot);
163
176 attribute_store_node_t endpoint_node);
177
189 attribute_store_node_t endpoint_node);
190
204 attribute_store_node_t endpoint_node,
205 user_credential_type_t credential_type);
206
221 attribute_store_node_t endpoint_node,
223
240 attribute_store_node_t endpoint_node,
242 user_credential_type_t credential_type);
243
244
260 attribute_store_node_t endpoint_node,
262 user_credential_type_t credential_type,
263 user_credential_slot_t credential_slot,
264 user_credential_learn_timeout_t credential_learn_timeout);
265
281 attribute_store_node_t endpoint_node,
283 user_credential_type_t credential_type,
284 user_credential_slot_t credential_slot,
285 user_credential_learn_timeout_t credential_learn_timeout);
286
296 attribute_store_node_t endpoint_node);
297
298
313 attribute_store_node_t endpoint_node,
314 user_credential_type_t credential_type,
316 user_credential_slot_t source_credential_slot,
317 user_credential_user_unique_id_t destination_user_id,
318 user_credential_slot_t destination_credential_slot);
319
330 attribute_store_node_t endpoint_node,
332
333
344 attribute_store_node_t endpoint_node,
345 user_credential_type_t credential_type);
346
347
357 attribute_store_node_t endpoint_node);
358
369 attribute_store_node_t endpoint_node,
370 const char* credential_data);
371
381 attribute_store_node_t endpoint_node);
382
396 attribute_store_node_t endpoint_node, uint8_t command_id);
397
398#ifdef __cplusplus
399}
400#endif
401
402#endif //ZWAVE_COMMAND_CLASS_USER_CREDENTIAL_API_H
uint32_t sl_status_t
Definition: sl_status.h:139
uint16_t user_credential_user_unique_id_t
‍User Unique ID. uint16_t
Definition: zwave_command_class_user_credential_types.h:37
uint8_t user_credential_rule_t
‍Credential rule. uint8_t
Definition: zwave_command_class_user_credential_types.h:64
uint16_t user_credential_slot_t
‍Credential slot. uint16_t
Definition: zwave_command_class_user_credential_types.h:67
uint8_t user_credential_type_t
‍Credential type. uint8_t
Definition: zwave_command_class_user_credential_types.h:61
uint16_t user_credential_expiring_timeout_minutes_t
‍Expiring Timeout for User (Minutes). uint16_t
Definition: zwave_command_class_user_credential_types.h:76
uint8_t user_credential_user_name_encoding_t
‍User name encoding. uint8_t
Definition: zwave_command_class_user_credential_types.h:58
uint8_t user_credential_learn_timeout_t
‍Expiring Timeout for Credential Learn (Seconds). uint8_t
Definition: zwave_command_class_user_credential_types.h:79
uint8_t user_credential_user_active_state_t
‍User active state (0 or 1). uint8_t
Definition: zwave_command_class_user_credential_types.h:56
SL Status Codes.
sl_status_t zwave_command_class_user_credential_set_admin_pin_code(attribute_store_node_t endpoint_node, const char *credential_data)
Send a Set Admin Pin Code command to the end device.
sl_status_t zwave_command_class_user_credential_delete_all_credentials_for_user(attribute_store_node_t endpoint_node, user_credential_user_unique_id_t user_id)
Send a delete all credentials for user command (Credential SET) to the end device.
sl_status_t zwave_command_class_user_credential_modify_user(attribute_store_node_t endpoint_node, user_credential_user_unique_id_t user_id, user_credential_type_t user_type, user_credential_rule_t credential_rule, user_credential_user_active_state_t user_active_state, user_credential_expiring_timeout_minutes_t expiring_timeout, user_credential_user_name_encoding_t user_name_encoding, const char *user_name)
Send a modify user command (User SET) to the end device.
sl_status_t zwave_command_class_user_credential_delete_all_credentials_by_type(attribute_store_node_t endpoint_node, user_credential_type_t credential_type)
Send a delete all credentials by type command (Credential SET) to the end device.
sl_status_t zwave_command_class_user_credential_get_credential_checksum(attribute_store_node_t endpoint_node, user_credential_type_t credential_type)
Send a Credential Checksum Get command to the end device.
sl_status_t zwave_command_class_user_credential_credential_learn_stop(attribute_store_node_t endpoint_node)
Send new credential command (Credential Learn Stop) to the end device.
sl_status_t zwave_command_class_user_credential_credential_learn_start_add(attribute_store_node_t endpoint_node, user_credential_user_unique_id_t user_id, user_credential_type_t credential_type, user_credential_slot_t credential_slot, user_credential_learn_timeout_t credential_learn_timeout)
Send new credential command (Credential Learn Start) with operation type Add to the end device.
sl_status_t zwave_command_class_user_credential_add_new_credential(attribute_store_node_t endpoint_node, user_credential_user_unique_id_t user_id, user_credential_type_t credential_type, user_credential_slot_t credential_slot, const char *credential_data)
Send a new credential command (Credential SET) to the end device.
sl_status_t zwave_command_class_user_credential_delete_user(attribute_store_node_t endpoint_node, user_credential_user_unique_id_t user_id)
Send a delete user command (User SET) to the end device.
bool zwave_command_class_user_credential_supports_admin_pin_code_deactivation(attribute_store_node_t endpoint_node)
Return true if the User Credential Command Class supports the Admin Pin Code Deactivation command.
bool zwave_command_class_user_credential_supports(attribute_store_node_t endpoint_node, uint8_t command_id)
Test if given command id is supported by the User Credential Command Class.
sl_status_t zwave_command_class_user_credential_delete_all_credentials(attribute_store_node_t endpoint_node)
Send a delete all credentials command (Credential SET) to the end device.
sl_status_t zwave_command_class_user_credential_get_user_checksum(attribute_store_node_t endpoint_node, user_credential_user_unique_id_t user_id)
Send a User Checksum Get command to the end device.
sl_status_t zwave_command_class_user_credential_delete_credential(attribute_store_node_t endpoint_node, user_credential_user_unique_id_t user_id, user_credential_type_t credential_type, user_credential_slot_t credential_slot)
Send a delete credential command (Credential SET) to the end device.
sl_status_t zwave_command_class_user_credential_delete_all_users(attribute_store_node_t endpoint_node)
Send a delete all users command (User SET) to the end device.
sl_status_t zwave_command_class_user_credential_delete_all_credentials_for_user_by_type(attribute_store_node_t endpoint_node, user_credential_user_unique_id_t user_id, user_credential_type_t credential_type)
Send a delete all credentials for user by type command (Credential SET) to the end device.
sl_status_t zwave_command_class_user_credential_add_new_user(attribute_store_node_t endpoint_node, user_credential_user_unique_id_t user_id, user_credential_type_t user_type, user_credential_rule_t credential_rule, user_credential_user_active_state_t user_active_state, user_credential_expiring_timeout_minutes_t expiring_timeout, user_credential_user_name_encoding_t user_name_encoding, const char *user_name)
Send a new user command (User SET) to the end device.
sl_status_t zwave_command_class_user_credential_credential_learn_start_modify(attribute_store_node_t endpoint_node, user_credential_user_unique_id_t user_id, user_credential_type_t credential_type, user_credential_slot_t credential_slot, user_credential_learn_timeout_t credential_learn_timeout)
Send new credential command (Credential Learn Start) with operation type Modify to the end device.
sl_status_t zwave_command_class_user_credential_get_all_users_checksum(attribute_store_node_t endpoint_node)
Send a All Users Checksum Get command to the end device.
sl_status_t zwave_command_class_user_credential_modify_credential(attribute_store_node_t endpoint_node, user_credential_user_unique_id_t user_id, user_credential_type_t credential_type, user_credential_slot_t credential_slot, const char *credential_data)
Send a modify credential command (Credential SET) to the end device.
sl_status_t zwave_command_class_user_credential_uuic_association_set(attribute_store_node_t endpoint_node, user_credential_type_t credential_type, user_credential_user_unique_id_t source_user_id, user_credential_slot_t source_credential_slot, user_credential_user_unique_id_t destination_user_id, user_credential_slot_t destination_credential_slot)
Send a User Unique Identifier Credential Association Set to the end device.