10 #ifndef DIGITALPINACCESSBASE_HPP 11 #define DIGITALPINACCESSBASE_HPP 13 #include <boost/noncopyable.hpp> 16 namespace duds {
namespace hardware {
namespace interface {
114 #endif // #ifndef DIGITALPINACCESSBASE_HPP PortData()
Default contructor ensures a null pointer.
DigitalPort * port() const
Returns a pointer to the port that controls the pin(s) that are operated through this object...
DigitalPinAccessBase(DigitalPort *port)
Initializes the port pointer.
Represents an interface to a group of hardware related digital GPIO lines.
DigitalPinAccessBase()
Cannot be constructed using this base class, but allows the construction of a useless access object w...
void reset()
Loses the pointer to the DigitalPort rendering the access object useless.
std::int16_t int16[2]
Two integers available for use by DigitalPort implementations to manage additional implementation spe...
A type for holding arbitrary port-specific data within a DigitalPinAccess or DigitalPinSetAccess obje...
PortData portdata
Port specific information.
DigitalPinAccessBase & operator=(DigitalPinAccessBase &&old) noexcept
Allows moving access objects.
The base class for the digital pin access classes.
DigitalPort * dp
A pointer to the port object handling the pin(s).
void * pointer
A pointer available for use by DigitalPort implementations to manage additional implementation specif...
std::intptr_t integer
An integer available for use by DigitalPort implementations to manage additional implementation speci...
~DigitalPinAccessBase()=default
Cannot be destructed using this base class to avoid the need for a virtual destructor.