![]() |
Bare Metal Programming Tool Kit
|
output pin interface More...
#include <pins.h>
Public Types | |
| enum | { type = type_pin_out } |
| identify this type as a type_pin_out | |
| enum | { features = has_none } |
| this type has no additional fatures | |
Static Public Member Functions | |
| static void | init () |
| initialize the pin as output | |
| static void | set (bool x) |
| set the current level on the pin | |
output pin interface
This class defines the interface of an output pin.
This class is to be used as parent class for classes that provide the pin_out interface.
|
static |
initialize the pin as output
This method initializes the pin as output pin. This might involve configuring the pin as gpio, and disabling analog or other special functions.
|
static |
set the current level on the pin
This method sets the current level output by the pin. When the value is true a logic one (high voltage, Vdd) will appear on the pin, when the value if false a the pin will output a logic zero (low voltage, Vss).
The init() method must be called first.
1.8.2