![]() |
OS
v1.8.0
Documentation
|
A digital input-channel object. More...
#include <input.hpp>
Public Member Functions | |
| digitalChannel (const uint8_t inputChannel, bool invert=false) noexcept | |
| Constructor for the digital input channel instance. | |
| type | getType (void) const noexcept override |
| Get the channel type. | |
| bool | setTime (const event e, const qOS::duration_t t) noexcept override |
| Set the timeout for the specified event. | |
| bool | setParameter (const event e, const analogValue_t p) noexcept override |
| Set the parameter for the specified event. | |
| uint8_t | getCount (void) const noexcept override |
| Get pulsation count for the digital input. | |
| bool | isShared (void) const noexcept override |
| Check if the channel value is shared with other channel with the same (pin) number. | |
| bool | setReader (digitalReaderFcn_t r) noexcept override |
| Assign the function that is in charge of reading the specific digital input. | |
Public Member Functions inherited from qOS::input::channel | |
| 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 | 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 | |
A digital input-channel object.
|
inlineexplicitnoexcept |
Constructor for the digital input channel instance.
| [in] | inputChannel | The specified channel(pin) number to read. |
| [in] | invert | To invert/negate the raw-reading. |
|
inlineoverridevirtualnoexcept |
Get pulsation count for the digital input.
Implements qOS::input::channel.
|
inlineoverridevirtualnoexcept |
|
inlineoverridevirtualnoexcept |
Check if the channel value is shared with other channel with the same (pin) number.
true if shared. Otherwise false. Implements qOS::input::channel.
|
overridevirtualnoexcept |
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. Implements qOS::input::channel.
|
inlineoverridenoexcept |
Assign the function that is in charge of reading the specific digital input.
| [in] | r | The channel reader function. |
true on success. Otherwise false.
|
overridevirtualnoexcept |
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. Implements qOS::input::channel.