Open Model Railroad Network (OpenMRN)
Loading...
Searching...
No Matches
GpioPullOutPin< Base > Struct Template Reference

Output pin that switches between high and low state by turning on pullup and pulldowns. More...

#include <Esp8266Gpio.hxx>

Inheritance diagram for GpioPullOutPin< Base >:

Static Public Member Functions

static void hw_init ()
 Initializes the hardware pin.
 
static void hw_set_to_safe ()
 Sets the hardware pin to a safe state.
 
static void set (bool value)
 Sets the value of an output pin to a specific state;.
 
static void set_on ()
 Sets the output pin to HIGH.
 
static void set_off ()
 Sets the output pin to LOW.
 

Detailed Description

template<class Base>
struct GpioPullOutPin< Base >

Output pin that switches between high and low state by turning on pullup and pulldowns.

Useful when an external override like a button is expected. NOTE: does not seem to work on the esp8266, as the pulldown bit seems to be doing nothing.

Definition at line 248 of file Esp8266Gpio.hxx.

Member Function Documentation

◆ hw_init()

template<class Base >
static void GpioPullOutPin< Base >::hw_init ( )
inlinestatic

Initializes the hardware pin.

Definition at line 252 of file Esp8266Gpio.hxx.

◆ hw_set_to_safe()

template<class Base >
static void GpioPullOutPin< Base >::hw_set_to_safe ( )
inlinestatic

Sets the hardware pin to a safe state.

Definition at line 259 of file Esp8266Gpio.hxx.

◆ set()

template<class Base >
static void GpioPullOutPin< Base >::set ( bool  value)
inlinestatic

Sets the value of an output pin to a specific state;.

Parameters
valueif tru output pin will be set to HIGH else LOW.

Definition at line 265 of file Esp8266Gpio.hxx.

◆ set_off()

template<class Base >
static void GpioPullOutPin< Base >::set_off ( )
inlinestatic

Sets the output pin to LOW.

Definition at line 278 of file Esp8266Gpio.hxx.

◆ set_on()

template<class Base >
static void GpioPullOutPin< Base >::set_on ( )
inlinestatic

Sets the output pin to HIGH.

Definition at line 274 of file Esp8266Gpio.hxx.


The documentation for this struct was generated from the following file: