Trident IoT Z-Wave SDK
Loading...
Searching...
No Matches
CC_BinarySwitch.h File Reference
#include <ZAF_types.h>
#include <ZW_TransportEndpoint.h>
#include "ZAF_Actuator.h"
Include dependency graph for CC_BinarySwitch.h:

Go to the source code of this file.

Data Structures

struct  cc_binary_switch_t

Macros

#define BIN_SWITCH_DURATION_MIN_VAL_SECONDS   0x00
#define BIN_SWITCH_DURATION_MAX_VAL_SECONDS   0x7F
#define BIN_SWITCH_DURATION_MIN_VAL_MINUTES   0x80
#define BIN_SWITCH_DURATION_MAX_VAL_MINUTES   0xFE
#define BIN_SWITCH_DURATION_FACTORY_DEFAULT   0xFF
#define BIN_SWITCH_DURATION_MAX_MINUTES   (BIN_SWITCH_DURATION_MAX_VAL_MINUTES - BIN_SWITCH_DURATION_MIN_VAL_MINUTES)

Typedefs

typedef void(* cc_binary_switch_callback_t) (struct cc_binary_switch_t *p_switch)
typedef struct cc_binary_switch_t cc_binary_switch_t

Functions

e_cmd_handler_return_code_t cc_binary_switch_set_handler (uint8_t value, uint8_t duration, uint8_t endpoint)
void cc_binary_switch_set (cc_binary_switch_t *p_switch, uint8_t value)
uint8_t cc_binary_switch_get_current_value (cc_binary_switch_t *p_switch)
void cc_binary_switch_handler (cc_binary_switch_t *p_switch)
cc_binary_switch_tcc_binary_switch_get_config (void)
uint8_t cc_binary_switch_get_config_length (void)

Detailed Description

Handler for Command Class Binary Switch.