|
Veethree D7 SDK
|
The digital_in_channel class.
This class holds the configuration for a particular digital input channel. It is also responsible for enabling/disabling the channel.
#include <digital_in_channel.h>
Public Member Functions | |
| digital_in_channel (const digital_in_descriptor &desc) | |
| The class constructor. | |
| digital_in_channel (std::shared_ptr< digital_context_interface > instance, const digital_in_descriptor &desc) | |
| The class constructor. | |
| digital_result | read () const |
| Read the current state of the input. | |
| digital_in_descriptor | descriptor () const |
| Return a descriptor with the channel configuration used when the class was instantiated. | |
| digital_in_channel (const digital_in_channel &other)=delete | |
| digital_in_channel (digital_in_channel &&other) noexcept | |
| digital_in_channel & | operator= (const digital_in_channel &other)=delete |
| digital_in_channel & | operator= (digital_in_channel &&other) noexcept |
| Public Member Functions inherited from vsdk::io::event_notification | |
| virtual event_notification_id | add_notification (const event_notification_descriptor &desc) |
| Add a definition when an event must be notified. | |
| virtual bool | remove_notification (event_notification_id id) |
| Remove a notification identified by 'id'. | |
| virtual void | remove_all_notifications () |
| Remove all notifications. | |
| virtual void | start_notifications () |
| Start the event notifications. | |
| virtual void | stop_notifications () |
| Stop the event notifications. | |
| event_notification () | |
| Class constructors. | |
| event_notification (const event_notification &other)=delete | |
| Class constructors. | |
| event_notification (event_notification &&other) noexcept | |
| Class constructors. | |
| event_notification & | operator= (const event_notification &other)=delete |
| Assignment operators. | |
| event_notification & | operator= (event_notification &&other) noexcept |
| Assignment operators. | |
Protected Member Functions | |
| bool | process_notification (const event_notification_descriptor &desc) const noexcept override |
| process_notification | |
The digital_in_channel class.
This class holds the configuration for a particular digital input channel. It is also responsible for enabling/disabling the channel.
|
explicit |
The class constructor.
| desc | The channel configuration. |
|
explicit |
The class constructor.
| instance | An class instance that conforms to digital_context_interface. |
| desc | The channel configuration. |
|
delete |
Standard constructors
|
noexcept |
Standard constructors
| digital_in_descriptor vsdk::io::digital_in_channel::descriptor | ( | ) | const |
Return a descriptor with the channel configuration used when the class was instantiated.
|
delete |
Standard assignment operators
|
noexcept |
Standard assignment operators
|
overrideprotectedvirtualnoexcept |
process_notification
When a notification is a vsdk::io::event_notification_frequency::single_shot, once that notification is generated it is automatically removed, so attempting to use its vsdk::io::event_notification_id in the remove_notification function will result in a false return value.
| desc | A notification description, see vsdk::io::event_notification_descriptor. |
Implements vsdk::io::event_notification.
| digital_result vsdk::io::digital_in_channel::read | ( | ) | const |
Read the current state of the input.