17 #ifndef HF_ITF_SIMPLE_BUTTON_H 18 #define HF_ITF_SIMPLE_BUTTON_H 32 namespace SimpleButton
56 namespace SimpleButton
76 typedef enum _Attributes
164 #ifdef HF_ITF_SIMPLE_BUTTON_DOUBLE_CLICK_PRESS_CMD 165 uint16_t _double_click_gap_duration;
171 #ifdef HF_ITF_SIMPLE_BUTTON_DOUBLE_CLICK_PRESS_CMD 172 bool _short_click_cmd;
183 #ifdef HF_ITF_SIMPLE_BUTTON_DOUBLE_CLICK_PRESS_CMD
187 #ifdef HF_ITF_SIMPLE_BUTTON_DOUBLE_CLICK_PRESS_CMD
188 _short_click_cmd(false)
289 #ifdef HF_ITF_SIMPLE_BUTTON_EXTRA_LONG_PRESS_CMD 302 void extra_long_press()
305 extra_long_press(addr);
309 #ifdef HF_ITF_SIMPLE_BUTTON_DOUBLE_CLICK_PRESS_CMD 322 void double_click_press()
325 double_click_press(addr);
366 #ifdef HF_ITF_SIMPLE_BUTTON_DOUBLE_CLICK_PRESS_CMD 372 uint16_t double_click_gap_duration()
const;
379 virtual void double_click_gap_duration(uint16_t __value);
420 #ifdef HF_ITF_SIMPLE_BUTTON_SHORT_PRESS_CMD 430 #ifdef HF_ITF_SIMPLE_BUTTON_LONG_PRESS_CMD 440 #ifdef HF_ITF_SIMPLE_BUTTON_EXTRA_LONG_PRESS_CMD 450 #ifdef HF_ITF_SIMPLE_BUTTON_DOUBLE_CLICK_PRESS_CMD 503 std::ostream &
operator<<(std::ostream &stream,
Return all mandatory attributes for the interface.
Helper class template for parent class implementation of the interfaces.
This file contains the definitions for the HAN-FUN protocol messages.
This file contains the definitions common to all interfaces.
Simple Button interface UID.
HF::Interface const * owner() const
This class represents a byte array.
uint16_t uid() const
This method returns the interface 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.
Interface/Service Attribute API.
Helper class template for implementing a given interface role.
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.
Common interface for all Interfaces.
Result
Commands result codes.
Top-level namespace for the HAN-FUN library.