Trident IoT Zigbee SDK
 
Loading...
Searching...
No Matches
lock.h
Go to the documentation of this file.
1
10#ifndef LOCK_H
11#define LOCK_H
12#include "tr_hal_config.h"
13
14// for this application, we are defining the door lock to be on endpoint 1
15// there could actually be multiple locks on different endpoints
16#define DOOR_LOCK_APP_ENDPOINT 1
17
18// structure used for maintaing information about the current door lock operation
19// this is used for asynchronously sending the operation event notification once the
20// simulated deadbolt completes its travel
29
35void move_deadbolt(zb_uint8_t endpoint,
36 zb_bool_t lock,
38 zb_uint16_t user,
39 zb_uint8_t *pin_code);
40
41#endif // ifndef LOCK_H
#define TR_DOOR_LOCK_SERVER_MAX_PIN_LEN
Definition tr_plugin_config.h:84
tr_door_lock_state_t
Definition tr_zcl_type.h:680
tr_door_lock_event_source_t
Definition tr_zcl_type.h:589
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 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)
void update_lock_state(zb_uint8_t endpoint, tr_door_lock_state_t state, tr_door_lock_event_source_t source)
Definition lock.h:22
zb_uint8_t endpoint
Definition lock.h:23
tr_door_lock_event_source_t source
Definition lock.h:26
zb_uint16_t user
Definition lock.h:24
tr_door_lock_state_t state
Definition lock.h:25
zb_uint8_t code[TR_DOOR_LOCK_SERVER_MAX_PIN_LEN+1]
Definition tr_door_lock_server.h:21
zb_uint8_t pin_code[]
Definition tr_door_lock_server.h:30
zb_uint8_t endpoint
Definition tr_nvram_attr.h:23