MultilevelSwitch#
Modules#
Enumerations#
Enumeration for "Start Level Change" command.
Enumeration for "Start Level Change" command.
Enumeration for "Start Level Change" command.
Typedefs#
Functions#
Initiates the transmission of a "Multilevel Switch Start Level Change" command.
Initiates the transmission of a "Multilevel Switch Stop Level Change" command.
Initiates the transmission of a "Multilevel Switch Set" command.
Sets the value of a given multilevel switch.
Starts changing the value of a given multilevel switch.
Stops an ongoing change of a given multilevel switch.
Returns the current value of a given multilevel switch.
Returns the last on-value of a given multilevel switch.
Returns the min value of all multilevel switches.
Returns the max value of all multilevel switches.
Enumeration Documentation#
CCMLS_PRIMARY_SWITCH_T#
CCMLS_PRIMARY_SWITCH_T
Enumeration for "Start Level Change" command.
Enumerator | |
---|---|
CCMLS_PRIMARY_SWITCH_UP | CCMLS_PRIMARY_SWITCH_UP. |
CCMLS_PRIMARY_SWITCH_DOWN | CCMLS_PRIMARY_SWITCH_DOWN. |
CCMLS_PRIMARY_SWITCH_RESERVED | CCMLS_PRIMARY_SWITCH_RESERVED. |
CCMLS_PRIMARY_SWITCH_NO_UP_DOWN_MOTION | CCMLS_PRIMARY_SWITCH_NO_UP_DOWN_MOTION. |
32
of file /mnt/raid/workspaces/ws.WDdsgIAV6/overlay/gsdk/protocol/z-wave/ZAF/CommandClasses/MultilevelSwitch/inc/CC_MultilevelSwitch_Control.h
CCMLS_IGNORE_START_LEVEL_T#
CCMLS_IGNORE_START_LEVEL_T
Enumeration for "Start Level Change" command.
Enumerator | |
---|---|
CCMLS_IGNORE_START_LEVEL_FALSE | CCMLS_IGNORE_START_LEVEL_FALSE. |
CCMLS_IGNORE_START_LEVEL_TRUE | CCMLS_IGNORE_START_LEVEL_TRUE. |
44
of file /mnt/raid/workspaces/ws.WDdsgIAV6/overlay/gsdk/protocol/z-wave/ZAF/CommandClasses/MultilevelSwitch/inc/CC_MultilevelSwitch_Control.h
CCMLS_SECONDARY_SWITCH_T#
CCMLS_SECONDARY_SWITCH_T
Enumeration for "Start Level Change" command.
Enumerator | |
---|---|
CCMLS_SECONDARY_SWITCH_INCREMENT | CCMLS_SECONDARY_SWITCH_INCREMENT. |
CCMLS_SECONDARY_SWITCH_DECREMENT | CCMLS_SECONDARY_SWITCH_DECREMENT. |
CCMLS_SECONDARY_SWITCH_RESERVED | CCMLS_SECONDARY_SWITCH_RESERVED. |
CCMLS_SECONDARY_SWITCH_NO_INC_DEC | CCMLS_SECONDARY_SWITCH_NO_INC_DEC. |
54
of file /mnt/raid/workspaces/ws.WDdsgIAV6/overlay/gsdk/protocol/z-wave/ZAF/CommandClasses/MultilevelSwitch/inc/CC_MultilevelSwitch_Control.h
Typedef Documentation#
cc_multilevel_switch_t#
typedef struct cc_multilevel_switch_t cc_multilevel_switch_t
38
of file /mnt/raid/workspaces/ws.WDdsgIAV6/overlay/gsdk/protocol/z-wave/ZAF/CommandClasses/MultilevelSwitch/inc/CC_MultilevelSwitch_Support.h
cc_multilevel_switch_callback_t#
typedef void(* cc_multilevel_switch_callback_t) (struct cc_multilevel_switch_t *p_switch) )(struct cc_multilevel_switch_t *p_switch)
40
of file /mnt/raid/workspaces/ws.WDdsgIAV6/overlay/gsdk/protocol/z-wave/ZAF/CommandClasses/MultilevelSwitch/inc/CC_MultilevelSwitch_Support.h
Function Documentation#
CmdClassMultilevelSwitchStartLevelChange#
JOB_STATUS CmdClassMultilevelSwitchStartLevelChange (AGI_PROFILE * pProfile, uint8_t sourceEndpoint, void(*)(TRANSMISSION_RESULT *pTransmissionResult) pCbFunc, CCMLS_PRIMARY_SWITCH_T primarySwitch, CCMLS_IGNORE_START_LEVEL_T fIgnoreStartLevel, CCMLS_SECONDARY_SWITCH_T secondarySwitch, uint8_t primarySwitchStartLevel, uint8_t duration, uint8_t secondarySwitchStepSize)
Initiates the transmission of a "Multilevel Switch Start Level Change" command.
[in] | pProfile | pointer to AGI profile or NULL for lifeline |
[in] | sourceEndpoint | source endpoint |
[out] | pCbFunc | Callback function to be called when transmission is done/failed. |
[in] | primarySwitch | Controls the primary device functionality. |
[in] | fIgnoreStartLevel | Ignore start level. |
[in] | secondarySwitch | Controls the secondary device functionality. |
[in] | primarySwitchStartLevel | Start level for the primary device functionality. |
[in] | duration | The duration from lowest to highest value. |
[in] | secondarySwitchStepSize | Step size for secondary device functionality. |
Returns
Status of the job.
82
of file /mnt/raid/workspaces/ws.WDdsgIAV6/overlay/gsdk/protocol/z-wave/ZAF/CommandClasses/MultilevelSwitch/inc/CC_MultilevelSwitch_Control.h
CmdClassMultilevelSwitchStopLevelChange#
JOB_STATUS CmdClassMultilevelSwitchStopLevelChange (AGI_PROFILE * pProfile, uint8_t sourceEndpoint, void(*)(TRANSMISSION_RESULT *pTransmissionResult) pCbFunc)
Initiates the transmission of a "Multilevel Switch Stop Level Change" command.
[in] | pProfile | pointer to AGI profile |
[in] | sourceEndpoint | source endpoint |
[out] | pCbFunc | Callback function to be called when transmission is done/failed. |
Returns
Status of the job.
102
of file /mnt/raid/workspaces/ws.WDdsgIAV6/overlay/gsdk/protocol/z-wave/ZAF/CommandClasses/MultilevelSwitch/inc/CC_MultilevelSwitch_Control.h
CmdClassMultilevelSwitchSetTransmit#
JOB_STATUS CmdClassMultilevelSwitchSetTransmit (AGI_PROFILE * pProfile, uint8_t sourceEndpoint, void(*)(TRANSMISSION_RESULT *pTransmissionResult) pCbFunc, uint8_t value, uint8_t duration)
Initiates the transmission of a "Multilevel Switch Set" command.
[in] | pProfile | pointer to AGI profile |
[in] | sourceEndpoint | source endpoint |
[out] | pCbFunc | Callback function to be called when transmission is done/failed. |
[in] | value | Multilevel value. |
[in] | duration | The duration from current value to the new given value. |
Returns
Status of the job.
117
of file /mnt/raid/workspaces/ws.WDdsgIAV6/overlay/gsdk/protocol/z-wave/ZAF/CommandClasses/MultilevelSwitch/inc/CC_MultilevelSwitch_Control.h
cc_multilevel_switch_set#
void cc_multilevel_switch_set (cc_multilevel_switch_t * p_switch, uint8_t value, uint8_t duration)
Sets the value of a given multilevel switch.
N/A | p_switch | The switch of which the value is set. |
N/A | value | The value to set. |
N/A | duration | The time it takes to reach the value. |
This function can be used in an application that might have a button.
Must be used for local actuation only.
53
of file /mnt/raid/workspaces/ws.WDdsgIAV6/overlay/gsdk/protocol/z-wave/ZAF/CommandClasses/MultilevelSwitch/inc/CC_MultilevelSwitch_Support.h
cc_multilevel_switch_start_level_change#
void cc_multilevel_switch_start_level_change (cc_multilevel_switch_t * p_switch, bool up, bool ignore_start_level, uint8_t start_level, uint8_t duration)
Starts changing the value of a given multilevel switch.
N/A | p_switch | The multilevel switch of which the value is changed. |
N/A | up | The direction of the change. If true the value will decrease. If false, the value will increase. |
N/A | ignore_start_level | Decides whether the start level is ignored or not. If set to true, the change will start from the current value. If set to false, the value will start it's change from the given start level. |
N/A | start_level | The value to start from if ignore_start_level is set to false. |
N/A | duration | The duration of the change. |
Must be used for local actuation only.
68
of file /mnt/raid/workspaces/ws.WDdsgIAV6/overlay/gsdk/protocol/z-wave/ZAF/CommandClasses/MultilevelSwitch/inc/CC_MultilevelSwitch_Support.h
cc_multilevel_switch_stop_level_change#
void cc_multilevel_switch_stop_level_change (cc_multilevel_switch_t * p_switch)
Stops an ongoing change of a given multilevel switch.
N/A | p_switch | The multilevel switch of which the change will be stopped. |
If no change is ongoing, nothing happens.
Must be used for local actuation only.
82
of file /mnt/raid/workspaces/ws.WDdsgIAV6/overlay/gsdk/protocol/z-wave/ZAF/CommandClasses/MultilevelSwitch/inc/CC_MultilevelSwitch_Support.h
cc_multilevel_switch_get_current_value#
uint8_t cc_multilevel_switch_get_current_value (cc_multilevel_switch_t * p_switch)
Returns the current value of a given multilevel switch.
N/A | p_switch | The multilevel switch of which the value is returned. |
Must be used for local actuation only. Returns
Current value of the given multilevel switch.
91
of file /mnt/raid/workspaces/ws.WDdsgIAV6/overlay/gsdk/protocol/z-wave/ZAF/CommandClasses/MultilevelSwitch/inc/CC_MultilevelSwitch_Support.h
cc_multilevel_switch_get_last_on_value#
uint8_t cc_multilevel_switch_get_last_on_value (cc_multilevel_switch_t * p_switch)
Returns the last on-value of a given multilevel switch.
N/A | p_switch | The multilevel switch of which the last on-value is returned. |
Must be used for local actuation only. Returns
Last on value of the given multilevel switch.
100
of file /mnt/raid/workspaces/ws.WDdsgIAV6/overlay/gsdk/protocol/z-wave/ZAF/CommandClasses/MultilevelSwitch/inc/CC_MultilevelSwitch_Support.h
cc_multilevel_switch_get_min_value#
uint8_t cc_multilevel_switch_get_min_value (void )
Returns the min value of all multilevel switches.
N/A |
Returns
uint8_t Min value of all multilevel switches.
107
of file /mnt/raid/workspaces/ws.WDdsgIAV6/overlay/gsdk/protocol/z-wave/ZAF/CommandClasses/MultilevelSwitch/inc/CC_MultilevelSwitch_Support.h
cc_multilevel_switch_get_max_value#
uint8_t cc_multilevel_switch_get_max_value (void )
Returns the max value of all multilevel switches.
N/A |
Returns
uint8_t Max value of all multilevel switches.
114
of file /mnt/raid/workspaces/ws.WDdsgIAV6/overlay/gsdk/protocol/z-wave/ZAF/CommandClasses/MultilevelSwitch/inc/CC_MultilevelSwitch_Support.h
cc_multilevel_switch_support_cb#
void cc_multilevel_switch_support_cb (struct cc_multilevel_switch_t * p_switch)
N/A | p_switch |
116
of file /mnt/raid/workspaces/ws.WDdsgIAV6/overlay/gsdk/protocol/z-wave/ZAF/CommandClasses/MultilevelSwitch/inc/CC_MultilevelSwitch_Support.h
cc_multilevel_switch_support_config_get_switches#
cc_multilevel_switch_t * cc_multilevel_switch_support_config_get_switches (void )
N/A |
118
of file /mnt/raid/workspaces/ws.WDdsgIAV6/overlay/gsdk/protocol/z-wave/ZAF/CommandClasses/MultilevelSwitch/inc/CC_MultilevelSwitch_Support.h
cc_multilevel_switch_support_config_get_length_switches#
uint8_t cc_multilevel_switch_support_config_get_length_switches (void )
N/A |
119
of file /mnt/raid/workspaces/ws.WDdsgIAV6/overlay/gsdk/protocol/z-wave/ZAF/CommandClasses/MultilevelSwitch/inc/CC_MultilevelSwitch_Support.h
cc_multilevel_switch_support_config_get_default_duration#
uint8_t cc_multilevel_switch_support_config_get_default_duration (void )
N/A |
120
of file /mnt/raid/workspaces/ws.WDdsgIAV6/overlay/gsdk/protocol/z-wave/ZAF/CommandClasses/MultilevelSwitch/inc/CC_MultilevelSwitch_Support.h
cc_multilevel_switch_write#
bool cc_multilevel_switch_write (uint8_t multilevel_component_id, cc_multilevel_switch_t * multilevel_switch)
N/A | multilevel_component_id | |
N/A | multilevel_switch |
18
of file /mnt/raid/workspaces/ws.WDdsgIAV6/overlay/gsdk/protocol/z-wave/ZAF/CommandClasses/MultilevelSwitch/src/cc_multilevel_switch_support_io.h
cc_multilevel_switch_read#
bool cc_multilevel_switch_read (uint8_t multilevel_component_id, cc_multilevel_switch_t * multilevel_switch)
N/A | multilevel_component_id | |
N/A | multilevel_switch |
19
of file /mnt/raid/workspaces/ws.WDdsgIAV6/overlay/gsdk/protocol/z-wave/ZAF/CommandClasses/MultilevelSwitch/src/cc_multilevel_switch_support_io.h