OS
v1.7.5
Documentation
|
An analog input-channel object. More...
#include <input.hpp>
Public Member Functions | |
analogChannel (const uint8_t inputChannel, const analogValue_t lowerThreshold, const analogValue_t upperThreshold, const analogValue_t h=20) | |
Constructor for the analog 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 (analogReaderFcn_t r) noexcept override |
Assign the function that is in charge of reading the specific analog input. | |
bool | unShare (void) noexcept override |
Unshares the specified input channel if was marked as shared. | |
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. | |
Additional Inherited Members | |
Protected Member Functions inherited from qOS::node | |
list * | getContainer (void) noexcept |
Get a pointer to the list in which this node is contained. | |
node () | |
An analog input-channel object.
|
inline |
Constructor for the analog input channel instance.
[in] | inputChannel | The specified channel(pin) number to read. |
[in] | lowerThreshold | The lower threshold value. |
[in] | upperThreshold | The upper threshold value. |
[in] | h | Hysteresis for the in-band transition. |
|
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 analog 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.
|
inlineoverridevirtualnoexcept |
Unshares the specified input channel if was marked as shared.
true
on success. Otherwise false
. Implements qOS::input::channel.