Skip to content

Class espos::sensors::GpioChange

template <std::size_t Depth>

ClassList > espos > sensors > GpioChange

  • #include <espos_sensors/sensors.hpp>

Inherits the following classes: espos::flow::NodeBase, espos::flow::Producer

Public Types inherited from espos::flow::Producer

See espos::flow::Producer

Type Name
typedef T produces_type

Public Attributes inherited from espos::flow::NodeBase

See espos::flow::NodeBase

Type Name
NodeBase * next_node = [**nullptr**](classespos_1_1flow_1_1Poll.md)

Public Functions

Type Name
GpioChange (const char * id, int gpio, espos_gpio_edge_t edge=ESPOS_GPIO_EDGE_ANY, bool invert=true, espos_gpio_pull_t pull=ESPOS_GPIO_PULL_UP)
uint32_t dropped () const
esp_err_t open_error () const
Producer< bool > & out ()

Public Functions inherited from espos::flow::NodeBase

See espos::flow::NodeBase

Type Name
NodeBase (const char * id="")
NodeBase (const NodeBase &) = delete
const char * id () const
NodeBase & operator= (const NodeBase &) = delete
const char * title () const
NodeBase & with_title (const char * t)
~NodeBase () = default

Public Functions inherited from espos::flow::Producer

See espos::flow::Producer

Type Name
Sink & connect_to (Sink & sink)
std::size_t edge_count () const
void emit (const T & value)
uint32_t emitted_at_ms () const
const T & get () const
bool has_value () const
Sink & operator>> (Sink & sink)

Protected Functions

Type Name
virtual const char * node_id_for_error () override const

Protected Functions inherited from espos::flow::NodeBase

See espos::flow::NodeBase

Type Name
void set_id (const char * id)

Protected Functions inherited from espos::flow::Producer

See espos::flow::Producer

Type Name
virtual const char * node_id_for_error () const
~Producer () = default

Public Functions Documentation

function GpioChange

inline espos::sensors::GpioChange::GpioChange (
    const char * id,
    int gpio,
    espos_gpio_edge_t edge=ESPOS_GPIO_EDGE_ANY,
    bool invert=true,
    espos_gpio_pull_t pull=ESPOS_GPIO_PULL_UP
) 

function dropped

inline uint32_t espos::sensors::GpioChange::dropped () const

function open_error

inline esp_err_t espos::sensors::GpioChange::open_error () const

function out

inline Producer < bool > & espos::sensors::GpioChange::out () 

Protected Functions Documentation

function node_id_for_error

inline virtual const char * espos::sensors::GpioChange::node_id_for_error () override const

Implements espos::flow::Producer::node_id_for_error



The documentation for this class was generated from the following file espos_sensors/include/espos_sensors/sensors.hpp