![]() |
HAN-FUN API
1.5.3
This project provides the common implementation of ULE Alliance's HAN-FUN application protocol.
|
This module contains the common classes for the Profiles API implementation. More...
Data Structures | |
struct | HF::Profiles::IProfile |
Top level class representing a HAN-FUN profile. More... | |
struct | HF::Profiles::AbstractProfile< _uid > |
Class template for all profile implementations. More... | |
struct | HF::Profiles::Profile< _uid, Interface > |
Class template for profiles containing only one interface. More... | |
class | HF::Profiles::ProfileN< _uid, _Interfaces > |
Class template for profiles containing multiple interfaces. More... | |
struct | HF::Profiles::Profile2< _uid, Interface1, Interface2 > |
Class template for profiles containing two interfaces. More... | |
struct | HF::Profiles::Detector< _uid > |
Class template for Detector type profiles. More... | |
Functions | |
Common::Interface const * | HF::Profiles::interfaces (uint16_t profile, uint16_t &count) |
This function returns a pointer to a entry on a static const array, containing the interfaces the profile with the profile UID. More... | |
This module contains the common classes for the Profiles API implementation.
enum HF::Profiles::UID |
Profiles UID's
Enumerator | |
---|---|
SIMPLE_ONOFF_SWITCHABLE | Allows a unit to receive and interpret on/off requests. |
SIMPLE_ONOFF_SWITCH | Allows a unit to send on/off requests. |
SIMPLE_LEVEL_CONTROLLABLE | Allows a unit to receive and interpret requests for adjustment of some quantity. |
SIMPLE_LEVEL_CONTROL | Allows a unit to send level adjustment requests. |
SIMPLE_LEVEL_CONTROLLABLE_SWITCHABLE | Allows a unit to receive and interpret both on/off and level control requests. |
SIMPLE_LEVEL_CONTROL_SWITCH | Allows a unit to send both on/off and level control requests. |
AC_OUTLET | This unit will be acting upon some physical AC switch. |
AC_OUTLET_WITH_POWER_METERING | This unit will be acting upon some physical AC switch and provides measurements over electric quantities. |
SIMPLE_LIGHT | This unit will be acting upon some physical Light switch. |
DIMMABLE_LIGHT | This unit will be acting upon some dimmable light. |
DIMMER_SWITCH | This unit will be acting upon some dimmable light switch. |
SIMPLE_DOOR_LOCK | This unit will be acting upon some physical door lock switch. |
DOOR_BELL | This unit will be acting upon some physical door bell. |
SIMPLE_POWER_METER | Allows a unit to do and provide measurements over electric quantities. |
SIMPLE_TEMPERATURE_SENSOR | Simple sensor to measure the temperature. |
SIMPLE_HUMIDITY_SENSOR | Simple sensor to measure the relative humidity. |
SIMPLE_AIR_PRESSURE_SENSOR | Simple Air Pressure Sensor. |
SIMPLE_BUTTON | Simple button. |
CONTROLABLE_THERMOSTAT | Controllable thermostat. |
SIMPLE_LED | Simple LED profile. |
ENVIRONMENT_MONITOR | Environment Monitoring. |
COLOUR_BULB | Colour Bulb. |
DIMMABLE_COLOUR_BULB | Dimmable Colour Bulb. |
TRACKER | |
SIMPLE_KEYPAD | Simple Keypad. |
SIMPLE_DETECTOR | Use for a generic detector that senses and sends an alert. |
DOOR_OPEN_CLOSE_DETECTOR | Use for an open/close door detector that senses and sends an alert. |
WINDOW_OPEN_CLOSE_DETECTOR | Use for an open/close window detector that senses and sends an alert. |
MOTION_DETECTOR | Use for a motion detector that senses and sends an alert. |
SMOKE_DETECTOR | Use for a smoke detector that senses and sends an alert. |
GAS_DETECTOR | Use for a carbon monoxide detector that senses and sends an alert. |
FLOOD_DETECTOR | Use for a flood detector that senses and sends an alert. |
GLASS_BREAK_DETECTOR | Use for a glass break detector that senses and sends an alert. |
VIBRATION_DETECTOR | Use for a vibration detector that senses and sends an alert. |
SIMPLE_LIGHT_SENSOR | Allows a unit to provide light readings. |
SIREN | This unit will be acting upon some physical siren that will sound an alert. |
ALERTABLE | This profile can be used to receive alerts. |
SIMPLE_PENDANT | This unit will trigger an alert, much like a panic button. |
USER_INTERFACE_LOCK | User Interface Lock. |
USER_INTERFACE | User Interface unit (e.g. keypad, remote control) |
GENERIC_APPLICATION | Logic Application logic unit, (e.g. can be at the concentrator, Portal, user controller) |
PROPRIETARY_START | Proprietary profiles UID start value. |
PROPRIETARY_END | Proprietary profiles UID end value. |
Definition at line 60 of file profiles.h.
Common::Interface const* HF::Profiles::interfaces | ( | uint16_t | profile, |
uint16_t & | count | ||
) |
This function returns a pointer to a entry on a static const array, containing the interfaces the profile with the profile
UID.
The number of interfaces is given by count
. You can get the addicional interfaces by incrementing the returned pointer.
[in] | profile | the profile UID to retrieve the interfaces for. |
[out] | count | the number of interfaces this profile has. |
nullptr
if the profile is not known or does not use any of the official interfaces.