Bare Metal Programming Tool Kit
|
create a pin_in_out from another pin More...
#include <pins.h>
Additional Inherited Members | |
Public Types inherited from bmptk::hardware::pin_in_out | |
enum | { type = type_pin_in_out } |
identify this type as a type_pin_in_out | |
enum | { features = has_none } |
this type has no additional fatures | |
Static Public Member Functions inherited from bmptk::hardware::pin_in_out | |
static void | init () |
initialize the pin | |
static void | direction_set_input () |
set the direction of the pin to input | |
static void | direction_set_output () |
set the direction of the pin to output | |
static bool | get () |
get the current level on the pin | |
static void | set (bool x) |
set the current level on the pin | |
create a pin_in_out from another pin
This template creates a pin_in_out from the argument pin. The argument pin must be a pin_in_out or a pin_oc.
The pin_in_out_from, pin_in_from, pin_out_from and pin_oc_from templates are used by template algorithms to convert their arguments to the flavour of pin that they expect.