QKnxLightApplicationMode Class
The QKnxLightApplicationMode class is a datapoint type for storing the light application mode. More...
Header: | #include <QKnxLightApplicationMode> |
qmake: | QT += knx |
Inherits: | QKnx1Byte |
Public Types
enum class | Mode { Normal, PresenceSimulation, NightRound, Invalid } |
Public Functions
QKnxLightApplicationMode(QKnxLightApplicationMode::Mode mode) | |
QKnxLightApplicationMode() | |
QKnxLightApplicationMode::Mode | mode() const |
bool | setMode(QKnxLightApplicationMode::Mode mode) |
Detailed Description
The range for the Mode value is from Normal, 0
to Night round, 2
.
This is a fixed size datapoint type with the length of 1 byte.
See also QKnxDatapointType, QKnx1Byte, and Qt KNX Datapoint Type Classes.
Member Type Documentation
enum class QKnxLightApplicationMode::Mode
This enum holds the light application mode stored in the datapoint type.
Constant | Value | Description |
---|---|---|
QKnxLightApplicationMode::Mode::Normal | 0x00 | Normal |
QKnxLightApplicationMode::Mode::PresenceSimulation | 0x01 | Presence simulation |
QKnxLightApplicationMode::Mode::NightRound | 0x02 | Night round |
QKnxLightApplicationMode::Mode::Invalid | 0xff | The value is invalid. |
Member Function Documentation
QKnxLightApplicationMode::QKnxLightApplicationMode(QKnxLightApplicationMode::Mode mode)
Creates a fixed size datapoint type with the mode set to mode.
QKnxLightApplicationMode::QKnxLightApplicationMode()
Creates a fixed size datapoint type with the mode set to Normal
.
QKnxLightApplicationMode::Mode QKnxLightApplicationMode::mode() const
Returns the mode stored in the datapoint type.
See also setMode().
bool QKnxLightApplicationMode::setMode(QKnxLightApplicationMode::Mode mode)
Sets the mode stored in the datapoint type to mode.
Returns true
if the byte was set; otherwise returns false
.
See also mode().