Trident IoT Zigbee SDK
 
Loading...
Searching...
No Matches
lock.h File Reference

door lock sample app deadbolt simulator More...

#include "tr_hal_config.h"
+ Include dependency graph for lock.h:

Go to the source code of this file.

Data Structures

struct  lock_params_t
 

Macros

#define DOOR_LOCK_APP_ENDPOINT   1
 

Functions

tr_door_lock_state_t get_lock_state (zb_uint8_t endpoint)
 
void set_led_to_lock_state (tr_door_lock_state_t state)
 
void update_lock_state (zb_uint8_t endpoint, tr_door_lock_state_t state, tr_door_lock_event_source_t source)
 
void move_deadbolt (zb_uint8_t endpoint, zb_bool_t lock, tr_door_lock_event_source_t source, zb_uint16_t user, zb_uint8_t *pin_code)
 

Detailed Description

door lock sample app deadbolt simulator


SPDX-License-Identifier: LicenseRef-TridentMSLA SPDX-FileCopyrightText: 2025 Trident IoT, LLC https://www.tridentiot.com


Macro Definition Documentation

◆ DOOR_LOCK_APP_ENDPOINT

#define DOOR_LOCK_APP_ENDPOINT   1

Function Documentation

◆ get_lock_state()

tr_door_lock_state_t get_lock_state ( zb_uint8_t endpoint)

◆ move_deadbolt()

void move_deadbolt ( zb_uint8_t endpoint,
zb_bool_t lock,
tr_door_lock_event_source_t source,
zb_uint16_t user,
zb_uint8_t * pin_code )

◆ set_led_to_lock_state()

void set_led_to_lock_state ( tr_door_lock_state_t state)

◆ update_lock_state()

void update_lock_state ( zb_uint8_t endpoint,
tr_door_lock_state_t state,
tr_door_lock_event_source_t source )