CoreComponents 3.0.0
A Modern C++ Toolkit
Loading...
Searching...
No Matches
Raspin::Pin Class Reference

A single GPIO pin. More...

#include <Raspin>

Public Member Functions

void setup (Mode mode)
 Configure GPIO pin.
 
Mode mode () const
 Get currently active GPIO mode.
 
int index () const
 Get GPIO number.
 
 operator Level () const
 Get GPIO level (either input or output level)
 
Pinoperator= (Level level)
 Set GPIO output level.
 

Detailed Description

A single GPIO pin.

Member Function Documentation

◆ setup()

void setup ( Mode mode)

Configure GPIO pin.

◆ mode()

Mode mode ( ) const

Get currently active GPIO mode.

◆ index()

int index ( ) const

Get GPIO number.

◆ operator Level()

operator Level ( ) const

Get GPIO level (either input or output level)

◆ operator=()

Pin & operator= ( Level level)

Set GPIO output level.