36#ifndef _OS_PERSISTENTGPIO_HXX_
37#define _OS_PERSISTENTGPIO_HXX_
53 void restore()
const {
OS-independent abstraction for GPIO.
virtual void write(Value new_state) const =0
Writes a GPIO output pin (set or clear to a specific state).
virtual Direction direction() const =0
Gets the GPIO direction.
virtual void clr() const =0
Clears the GPIO output pin to low.
Value
Defines the options for GPIO level.
virtual void set_direction(Direction dir) const =0
Sets the GPIO direction.
virtual void set() const =0
Sets the GPIO output pin to high.
Direction
Defines the options for GPIO direction.
virtual Value read() const =0
Retrieves the current Value of a GPIO input pin.
void set_direction(Direction dir) const OVERRIDE
Sets the GPIO direction.
Direction direction() const OVERRIDE
Gets the GPIO direction.
const Gpio * impl_
Implementation of the gpio object.
void write(Value new_state) const OVERRIDE
Writes a GPIO output pin (set or clear to a specific state).
Value read() const OVERRIDE
Retrieves the current Value of a GPIO input pin.
void set() const OVERRIDE
Sets the GPIO output pin to high.
const unsigned bit_
Implementation of the gpio object.
void clr() const OVERRIDE
Clears the GPIO output pin to low.
Abstract class for representing a set of numbered bits that are stored persistently in some backing s...
virtual bool get_bit(unsigned offset)=0
Retrieves an individual bit.
virtual void lock_and_flush()=0
Grabs a lock and writes the current values to persistent storage.
virtual StoredBitSet & set_bit(unsigned offset, bool value)=0
Sets an individual bit to a specific value.
#define OVERRIDE
Function attribute for virtual functions declaring that this funciton is overriding a funciton that s...