Leosac  0.8.0
Open Source Access Control
Leosac::Module::Piface::PFGPIO Class Reference

Piface Module GPIO descriptor. More...

#include <PFGPIO.hpp>

+ Inheritance diagram for Leosac::Module::Piface::PFGPIO:
+ Collaboration diagram for Leosac::Module::Piface::PFGPIO:

Public Member Functions

 PFGPIO ()
 
uint8_t hardware_address () const
 
void hardware_address (uint8_t addr)
 
- Public Member Functions inherited from Leosac::Hardware::GPIO
 GPIO ()
 
virtual ~GPIO ()=default
 
uint16_t number () const
 
void number (uint16_t number)
 
Direction direction () const
 
void direction (Direction direction)
 
bool default_value () const
 
void default_value (bool default_value)
 
void validation_callback (odb::callback_event e, odb::database &) const override
 
- Public Member Functions inherited from Leosac::Hardware::Device
 Device ()
 
 Device (DeviceClass device_class)
 
virtual ~Device ()=default
 
UUID id () const
 
const std::string & name () const
 
void name (const std::string &name)
 
DeviceClass device_class () const
 
void device_class (DeviceClass d)
 
bool enabled () const
 
void enabled (bool e)
 
uint64_t odb_version () const
 

Private Attributes

uint8_t hardware_address_
 Hardware address of the piface digital device. More...
 

Additional Inherited Members

- Public Types inherited from Leosac::Hardware::GPIO
enum  Direction { Direction::In = 0, Direction::Out = 1 }
 

Detailed Description

Piface Module GPIO descriptor.

It inherits Hardware::GPIO and adds Piface specific data.

Definition at line 44 of file PFGPIO.hpp.

Constructor & Destructor Documentation

◆ PFGPIO()

Leosac::Module::Piface::PFGPIO::PFGPIO ( )

Definition at line 32 of file PFGPIO.cpp.

Member Function Documentation

◆ hardware_address() [1/2]

uint8_t Leosac::Module::Piface::PFGPIO::hardware_address ( ) const
inline

Definition at line 49 of file PFGPIO.hpp.

◆ hardware_address() [2/2]

void Leosac::Module::Piface::PFGPIO::hardware_address ( uint8_t  addr)
inline

Definition at line 54 of file PFGPIO.hpp.

Member Data Documentation

◆ hardware_address_

uint8_t Leosac::Module::Piface::PFGPIO::hardware_address_
private

Hardware address of the piface digital device.

This should be 0 when using a single piface.

Definition at line 65 of file PFGPIO.hpp.


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