Macros#
SPDX-License-Identifier: BSD-3-Clause SPDX-FileCopyrightText: 2024 Silicon Laboratories Inc.
Functions#
Initializes the User Credential Command Class related application logic upon startup.
Initializes an empty User Credential database with a default User and a default Credential.
Simulates requesting a User to input a new Credential and generates a "Credential Learn done" event after a set delay.
Macro Definition Documentation#
PIN_CODE_ENTRY_SECONDS#
#define PIN_CODE_ENTRY_SECONDSValue:
7
SPDX-License-Identifier: BSD-3-Clause SPDX-FileCopyrightText: 2024 Silicon Laboratories Inc.
How long it takes the user to enter their PIN code, used for simulating local Credential entry during a Credential Learn operation
Function Documentation#
credentials_init#
void credentials_init (void )
Initializes the User Credential Command Class related application logic upon startup.
| Type | Direction | Argument Name | Description |
|---|---|---|---|
| void | N/A |
initialize_user_credential_database#
void initialize_user_credential_database (void )
Initializes an empty User Credential database with a default User and a default Credential.
| Type | Direction | Argument Name | Description |
|---|---|---|---|
| void | N/A |
request_credential_from_user#
void request_credential_from_user (void )
Simulates requesting a User to input a new Credential and generates a "Credential Learn done" event after a set delay.
| Type | Direction | Argument Name | Description |
|---|---|---|---|
| void | N/A |
user_credential_app_event_handler#
void user_credential_app_event_handler (const uint8_t event, const void * data)
| Type | Direction | Argument Name | Description |
|---|---|---|---|
| const uint8_t | N/A | event | |
| const void * | N/A | data |
set_credential_learn_pin#
void set_credential_learn_pin (const uint8_t * data, uint8_t length)
| Type | Direction | Argument Name | Description |
|---|---|---|---|
| const uint8_t * | N/A | data | |
| uint8_t | N/A | length |