Rpi-hw  0.7.2
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Pages
Public Member Functions | List of all members
rpihw::iface::encoderOut Class Reference

Encoder output interface. More...

#include <encoder-out.hpp>

+ Inheritance diagram for rpihw::iface::encoderOut:

Public Member Functions

 encoderOut (std::initializer_list< uint8_t > pins)
 Constructor method. More...
 
 encoderOut (const std::vector< uint8_t > &pins)
 Constructor method. More...
 
virtual ~encoderOut ()
 Destructor method.
 
virtual void write (size_t value)
 Writes a value on the interface. More...
 
- Public Member Functions inherited from rpihw::iface::output
 output (std::initializer_list< uint8_t > pins)
 Constructor method. More...
 
 output (const std::vector< uint8_t > &pins)
 Constructor method. More...
 
virtual ~output ()
 Destructor method.
 
virtual void setPin (uint8_t index, uint8_t pin)
 Sets an output pin. More...
 
virtual void write (uint8_t index, bool data)
 Writes a data on the interface pin. More...
 
- Public Member Functions inherited from rpihw::iface::base
 base (std::initializer_list< uint8_t > pins)
 Constructor method. More...
 
 base (const std::vector< uint8_t > &pins)
 Constructor method. More...
 
virtual ~base ()
 Destructor method.
 
virtual uint8_t getPin (uint8_t index) const
 Returns an interface pin. More...
 
virtual uint8_t size () const
 Returns the number of the pins.
 

Additional Inherited Members

- Protected Attributes inherited from rpihw::iface::base
std::vector< uint8_t > m_pins
 Vector containing interface pins.
 
gpiom_gpio
 Virtual GPIO controller.
 

Detailed Description

Encoder output interface.

Definition at line 44 of file encoder-out.hpp.

Constructor & Destructor Documentation

rpihw::iface::encoderOut::encoderOut ( std::initializer_list< uint8_t >  pins)

Constructor method.

Parameters
[in]pinsSequence of uint8_t containing the GPIO pins.
rpihw::iface::encoderOut::encoderOut ( const std::vector< uint8_t > &  pins)

Constructor method.

Parameters
[in]pinsVector containing the GPIO pins.

Member Function Documentation

void rpihw::iface::encoderOut::write ( size_t  value)
inlinevirtual

Writes a value on the interface.

Parameters
[in]valueThe value to be written.

Reimplemented from rpihw::iface::output.

Definition at line 30 of file encoder-out-inl.hpp.


The documentation for this class was generated from the following files: