Trident IoT Z-Wave SDK
 
Loading...
Searching...
No Matches
CC_DoorLock.h File Reference
#include <ZW_typedefs.h>
#include <ZW_classcmd.h>
#include <CC_Common.h>
#include <ZW_TransportEndpoint.h>
#include <ZAF_types.h>
#include "ZAF_CC_Invoker.h"
+ Include dependency graph for CC_DoorLock.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  cc_door_lock_capabilities_report_t
 
struct  cc_door_lock_configuration_t
 
struct  cc_door_lock_data_t
 
struct  _door_lock_hw_data_t
 

Macros

#define DOOR_LOCK_OPERATION_SET_TIMEOUT_NOT_SUPPORTED   0xFE
 
#define CC_DOOR_LOCK_CODE_EVENT_TOGGLE   1
 
#define CC_DOOR_LOCK_EVENT_OPERATION_SET_DONE   2
 
#define CC_DOOR_LOCK_EVENT_HW_OPERATION_DONE   3
 

Typedefs

typedef struct _door_lock_hw_data_t door_lock_hw_data_t
 

Enumerations

enum  door_lock_mode_t {
  DOOR_MODE_UNSECURE = DOOR_LOCK_OPERATION_SET_DOOR_UNSECURED_V2 ,
  DOOR_MODE_UNSECURE_TIMEOUT = DOOR_LOCK_OPERATION_SET_DOOR_UNSECURED_WITH_TIMEOUT_V2 ,
  DOOR_MODE_UNSECURE_INSIDE = DOOR_LOCK_OPERATION_SET_DOOR_UNSECURED_FOR_INSIDE_DOOR_HANDLES_V2 ,
  DOOR_MODE_UNSECURE_INSIDE_TIMEOUT = DOOR_LOCK_OPERATION_SET_DOOR_UNSECURED_FOR_INSIDE_DOOR_HANDLES_WITH_TIMEOUT_V2 ,
  DOOR_MODE_UNSECURE_OUTSIDE = DOOR_LOCK_OPERATION_SET_DOOR_UNSECURED_FOR_OUTSIDE_DOOR_HANDLES_V2 ,
  DOOR_MODE_UNSECURE_OUTSIDE_TIMEOUT = DOOR_LOCK_OPERATION_SET_DOOR_UNSECURED_FOR_OUTSIDE_DOOR_HANDLES_WITH_TIMEOUT_V2 ,
  DOOR_MODE_UNKNOWN = DOOR_LOCK_OPERATION_REPORT_DOOR_MODE_UNKNOWN_V4 ,
  DOOR_MODE_SECURED = DOOR_LOCK_OPERATION_SET_DOOR_SECURED_V2
}
 
enum  cc_door_lock_operation_type_t {
  DOOR_OPERATION_CONST = 0x01 ,
  DOOR_OPERATION_TIMED = 0x02 ,
  DOOR_OPERATION_RESERVED = 0x03
}
 
enum  cc_door_lock_door_component_t {
  DOOR_COMPONENT_DOOR = 0x01 ,
  DOOR_COMPONENT_BOLT = 0x02 ,
  DOOR_COMPONENT_LATCH = 0x04
}
 
enum  cc_door_lock_handle_t {
  DOOR_HANDLE_DISABLED = 0x00 ,
  DOOR_HANDLE_1 = 0x01 ,
  DOOR_HANDLE_2 = 0x02 ,
  DOOR_HANDLE_3 = 0x04 ,
  DOOR_HANDLE_4 = 0x08
}
 

Functions

void cc_door_lock_latch_set (bool opened)
 
void cc_door_lock_handle_set (bool opened)
 
void cc_door_lock_bolt_set (bool locked)
 
void CC_DoorLock_SetOutsideDoorHandleState (cc_door_lock_handle_t handle)
 
void CC_DoorLock_ClearOutsideDoorHandleState (cc_door_lock_handle_t handle)
 
uint8_t cc_door_lock_mode_hw_change (door_lock_mode_t mode)
 
bool door_lock_hw_bolt_is_unlocked (void)
 
bool door_lock_hw_latch_is_closed (void)
 
bool door_lock_hw_handle_is_pressed (void)
 

Detailed Description

Handler for Command Class Door Lock.