Class hal::soft::inert_output_pin
ClassList > hal > soft > inert_output_pin
Inert implementation of digital output pin hardware.
#include <inert_output_pin.hpp>
Inherits the following classes: hal::output_pin
Public Functions inherited from hal::output_pin
See hal::output_pin
Type | Name |
---|---|
status | configure (const settings & p_settings) Configure the output pin to match the settings supplied. |
result< set_level_t > | level (bool p_high) Set the state of the pin. |
result< level_t > | level () Read the current state of the output pin. |
virtual | ~output_pin () = default |
Public Static Functions
Type | Name |
---|---|
result< inert_output_pin > | create (bool p_level) Factory function to create inert_output_pin . |
Public Static Functions Documentation
function create
Factory function to create inert_output_pin .
static inline result< inert_output_pin > hal::soft::inert_output_pin::create (
bool p_level
)
Parameters:
p_level
- level_t object to return when level() is called. This value can be changed by using level(bool) after creation.
Returns:
result<inert_output_pin> - Constructed inert_output_pin object
The documentation for this class was generated from the following file libraries/include/libhal-soft/inert_drivers/inert_output_pin.hpp