![]() |
OS
v1.8.0
Documentation
|
#include <input.hpp>
Public Member Functions | |
| virtual type | getType (void) const noexcept=0 |
| Get the channel type. | |
| event | getEvent (void) const noexcept |
| Retrieves the last event for the given input channel. | |
| bool | setCallback (const eventCallback_t cb) noexcept |
| Set the callback function when event are detected on the input input channel. | |
| bool | setChannel (const uint8_t inputChannel) noexcept |
| Set/Change the channel(pin) number. | |
| uint8_t | getChannel (void) const noexcept |
| Get the channel(pin) number. | |
| void | setUserData (void *pUserData) noexcept |
| Set the channel user-data. | |
| void * | getUserData (void) noexcept |
| Get the channel user-data. | |
| virtual bool | isShared (void) const noexcept=0 |
| Check if the channel value is shared with other channel with the same (pin) number. | |
| virtual bool | setTime (const event e, const qOS::duration_t t) noexcept=0 |
| Set the timeout for the specified event. | |
| virtual bool | setParameter (const event e, const analogValue_t p) noexcept=0 |
| Set the parameter for the specified event. | |
| virtual uint8_t | getCount (void) const noexcept=0 |
| Get pulsation count for the digital input. | |
| virtual bool | unShare (void) noexcept=0 |
Additional Inherited Members | |
Protected Member Functions inherited from qOS::node | |
| list * | getContainer (void) const noexcept |
| Get a pointer to the list in which this node is contained. | |
| node () noexcept | |
|
inlinenoexcept |
Get the channel(pin) number.
|
pure virtualnoexcept |
Get pulsation count for the digital input.
Implemented in qOS::input::analogChannel, and qOS::input::digitalChannel.
|
inlinenoexcept |
Retrieves the last event for the given input channel.
The last input-channel event.
|
pure virtualnoexcept |
Get the channel type.
Implemented in qOS::input::analogChannel, and qOS::input::digitalChannel.
|
inlinenoexcept |
Get the channel user-data.
|
pure virtualnoexcept |
Check if the channel value is shared with other channel with the same (pin) number.
true if shared. Otherwise false. Implemented in qOS::input::analogChannel, and qOS::input::digitalChannel.
|
inlinenoexcept |
Set the callback function when event are detected on the input input channel.
| [in] | cb | The callback function |
|
inlinenoexcept |
Set/Change the channel(pin) number.
| [in] | inputChannel | The specified channel number (pin) to read. |
true on success. Otherwise false.
|
pure virtualnoexcept |
Set the parameter for the specified event.
| [in] | e | The event where the parameter will be set. |
| [in] | p | The value of the parameter. |
true on success. Otherwise false. Implemented in qOS::input::analogChannel, and qOS::input::digitalChannel.
|
pure virtualnoexcept |
Set the timeout for the specified event.
| [in] | e | The event where the timeout will be set. |
| [in] | t | The value of the timeout. |
true on success. Otherwise false. Implemented in qOS::input::analogChannel, and qOS::input::digitalChannel.
|
inlinenoexcept |
Set the channel user-data.
| [in] | pUserData | A pointer to the user-data |
|
pure virtualnoexcept |
Implemented in qOS::input::analogChannel.