libyggdrasil
v1.0.0
|
GPIOPin implementation for Midgard. More...
#include <gpio.hpp>
Public Member Functions | |
GPIOPin (const GPIOPin &)=delete | |
GPIOPin (GPIOPin &&)=delete | |
GPIOPin & | operator= (const GPIOPin &)=delete |
constexpr ALWAYS_INLINE auto & | operator= (bool state) const noexcept |
Assignment operator overload. More... | |
constexpr ALWAYS_INLINE | operator u8 () const noexcept |
u8 conversion operator overload More... | |
bool | init () const noexcept |
Init function. More... | |
bool | deinit () const noexcept |
Deinit function. More... | |
void | makeOutput () const noexcept |
Turn pin into an output. More... | |
void | makeInput () const noexcept |
Turn pin into an input. More... | |
Friends | |
template<addr_t , template< addr_t, u8 > typename> | |
struct | bsp::mid::drv::GPIOPort |
Declare GPIOPort as friend. More... | |
GPIOPin implementation for Midgard.
BaseAddress | GPIO Block base address |
Pin | Pin number |
|
delete |
|
delete |
|
inlinenoexcept |
Deinit function.
|
inlinenoexcept |
Init function.
|
inlinenoexcept |
Turn pin into an input.
|
inlinenoexcept |
Turn pin into an output.
|
inlineconstexprnoexcept |
u8 conversion operator overload
|
inlineconstexprnoexcept |
Assignment operator overload.
state | Pin state |
|
delete |
|
friend |
Declare GPIOPort as friend.