Inverter#

Soft Driver#

Defined in namespace hal::soft

#include <libhal-soft/inverter.hpp>

group Inverter
class output_pin_inverter : public hal::output_pin#
#include <inverter.hpp>

An output_pin wrapper to get the negation of an output pin’s state. For example, if the output pin is high, then this inverter is low.

Public Functions

output_pin_inverter(hal::output_pin &p_output_pin)#

Construct a new output_pin_inverter object from a source output_pin.

Parameters:

p_output_pin – The output pin whose signal should be inverted.

class input_pin_inverter : public hal::input_pin#
#include <inverter.hpp>

An input_pin wrapper to get the negation of an input pin’s state. For example, if the input pin is high, then this inverter is low.

Public Functions

input_pin_inverter(hal::input_pin &p_input_pin)#

Construct a new input_pin_inverter object from a source input_pin.

Parameters:

p_input_pin – The output pin whose signal should be inverted.