17 #ifndef HF_ITF_SIMPLE_AIR_PRESSURE_H 18 #define HF_ITF_SIMPLE_AIR_PRESSURE_H 28 namespace SimpleAirPressure
52 namespace SimpleAirPressure
62 typedef enum _Attributes
184 uint16_t
value()
const;
191 void value(uint16_t __value);
205 void maximum(uint16_t __value);
219 void minimum(uint16_t __value);
283 std::ostream &
operator<<(std::ostream &stream,
std::ostream & operator<<(std::ostream &stream, const HF::Interfaces::SimpleAirPressure::Attributes attribute)
Convert the given attribute into a string and write it to the given stream.
static constexpr uint8_t ID
Attribute UID.
Return all mandatory attributes for the interface.
Helper class template for parent class implementation of the interfaces.
static constexpr bool WRITABLE
Attribute Read/Write.
This file contains the definitions for the HAN-FUN protocol messages.
Helper class to handle the Maximum attribute for the Simple Air Pressure interface.
Simple Air Pressure Interface : Client side implementation.
Helper class to handle the Minimum attribute for the Simple Air Pressure interface.
This file contains the definitions common to all interfaces.
Simple Air Pressure Interface : Parent.
Helper class to handle the Tolerance attribute for the Simple Air Pressure interface.
uint16_t _minimum
Minimum.
virtual ~Server()
Destructor.
HF::Interface const * owner() const
HF::Attributes::IAttribute * attribute(uint8_t uid)
Return a pointer to the interface attribute with the given uid.
HF::Attributes::IAttribute * create_attribute(uint8_t uid)
Create an attribute object that can hold the attribute with the given uid. (HF::Interfaces::SimpleAir...
uint16_t maximum() const
Get the Maximum for the Simple Air Pressure server.
static constexpr bool WRITABLE
Attribute Read/Write.
uint16_t uid() const
This method returns the interface UID.
Helper class to handle the Value attribute for the Simple Air Pressure interface. ...
static constexpr uint8_t ID
Attribute UID.
HF::Attributes::IAttribute * create_attribute(HF::Interfaces::Alert::Server *server, uint8_t uid)
Create an attribute object that can hold the attribute with the given uid.
static constexpr bool WRITABLE
Attribute Read/Write.
Interface/Service Attribute API.
Simple Air Pressure interface UID.
HF::Attributes::UIDS attributes(uint8_t pack_id=HF::Attributes::Pack::MANDATORY) const
Return a vector containing the attribute UIDs, for the given pack ID.
static constexpr uint8_t ID
Attribute UID.
uint16_t tolerance() const
Get the Tolerance for the Simple Air Pressure server.
static constexpr bool WRITABLE
Attribute Read/Write.
uint16_t _tolerance
Tolerance.
Helper class template for implementing a given interface role.
static constexpr uint8_t ID
Attribute UID.
Helper template class to declare an attribute with the given T type.
Attribute(const uint16_t interface, const uint8_t uid, const HF::Interface *__owner, uint16_t data, bool writable=false)
Attribute template constructor.
Simple Air Pressure Interface : Server side implementation.
Common interface for all Interfaces.
uint16_t _maximum
Maximum.
uint16_t value() const
Get the Value for the Simple Air Pressure server.
uint16_t minimum() const
Get the Minimum for the Simple Air Pressure server.
Top-level namespace for the HAN-FUN library.