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.
-
output_pin_inverter(hal::output_pin &p_output_pin)#
-
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.
-
input_pin_inverter(hal::input_pin &p_input_pin)#
-
class output_pin_inverter : public hal::output_pin#