Model Railroad System 2.2.2
Public Member Functions | Private Attributes | List of all members
linuxgpio::GpioOutputSafeLow Class Reference

Output pin, initialized to low. More...

Public Member Functions

 GpioOutputSafeLow (name,...)
 Constructor, used to set up the GPIO pin. More...
 
 ~GpioOutputSafeLow ()
 Destructor. More...
 

Private Attributes

 basepin
 The base pin. More...
 

Detailed Description

Output pin, initialized to low.

Parameters
nameName of the pin.
...Options:
  • -pinnumber The pin number, readonly, defaults to 0 and can be any positive integer.
Author
Robert Heller <heller@deepsoft.com>

Constructor & Destructor Documentation

◆ GpioOutputSafeLow()

linuxgpio::GpioOutputSafeLow::GpioOutputSafeLow ( name  ,
  ... 
)

Constructor, used to set up the GPIO pin.

The pin number is written to the export control file and then the pin's diection control file is computed and the pin's direction is written.

Parameters
nameThe name of the pin.
...Options:
  • -pinnumber The pin number, readonly, defaults to 0 and can be any positive integer.
Author
Robert Heller <heller@deepsoft.com>

puts stderr "$type create $self $args"

◆ ~GpioOutputSafeLow()

linuxgpio::GpioOutputSafeLow::~GpioOutputSafeLow ( )

Destructor.

Unexport the pin.

Member Data Documentation

◆ basepin

linuxgpio::GpioOutputSafeLow::basepin
private

The base pin.