HAL
HAL layer above libopencm3 library.
|
Pin state manipulation. More...
Functions | |
static bool | pin_get (const uint32_t pin) |
Get the actual pin state. More... | |
static void | pin_set (const uint32_t pin, bool val) |
Set the pin state. More... | |
static void | pin_toggle (const uint32_t pin) |
Toggle the pin level state. More... | |
Pin state manipulation.
|
static |
Get the actual pin state.
This function returns actual voltage level on the pin.
[in] | pin | pin name (pin_name_base) |
Definition at line 75 of file pin_v0.h.
References _pin_pin(), and _pin_port().
|
static |
Set the pin state.
[in] | pin | pin name (pin_name_base) |
[in] | val | value to set |
Definition at line 80 of file pin_v0.h.
References _pin_pin(), and _pin_port().
Referenced by pin_pull_down(), and pin_pull_up().
|
static |
Toggle the pin level state.
The function creates edge on the specified pin.
[in] | pin | pin name (pin_name_base) |
Definition at line 85 of file pin_v0.h.
References _pin_pin(), and _pin_port().