6#include "../../global.hpp"
21 explicit DigitalIO(
const DevicePtr &device)
125 using Driver::DigitalIO;
bool ReadInputBit(int port) const
Reads a single input port from the device.
Definition detail_digital_io.hpp:35
void WriteOutputBit(int port, bool value)
Write a single output port to the device.
Definition detail_digital_io.hpp:71
int InputCount() const
Gets the number of digital input ports of the device.
Definition detail_digital_io.hpp:17
int OutputCount() const
Gets the number of digital output ports of the device.
Definition detail_digital_io.hpp:26
void WriteOutputGroup(int group, std::bitset< 32 > value)
Writes the output group to the device.
Definition decl_digital_io.hpp:99
std::bitset< 32 > ReadInputGroup(int group) const
Reads a group of input ports from the device.
Definition detail_digital_io.hpp:44
bool ReadOutputBit(int port) const
Reads a single output port from the device.
Definition detail_digital_io.hpp:53
std::bitset< 32 > ReadOutputGroup(int group) const
Reads a group of output ports from the device.
Definition detail_digital_io.hpp:62
DevicePtr Parent() const noexcept
Gets the parent device of this interface.
Definition decl_digital_io.hpp:31
Namespace for driver or device related operations.
Definition decl_composite.hpp:28
Root namespace for the Image Manager interface.
Definition c_bayer_to_rgb.h:17
std::shared_ptr< Device > DevicePtr
Convenience shared pointer for Device.
Definition global.hpp:98