31 return _port!=NULL_PORT;
66 static constexpr port_register_t NULL_PORT = {
nullptr};
68 port_register_t _port = NULL_PORT;
69 pin_mask_t _mask = {0};
constexpr array()=default
A structure to support direct port manipulation.
Definition port_pin.h:23
bool isValid(void) const
Is the port register initialised?
Definition port_pin.h:30
void setPinHigh(void) noexcept
Set the pin high.
Definition port_pin.cpp:17
bool isPinHigh(void) const noexcept
Check if the pin is set high.
Definition port_pin.h:36
bool isPinLow(void) const noexcept
Check if the pin is set low.
Definition port_pin.h:48
void setPinLow(void) noexcept
Set the pin low.
Definition port_pin.cpp:29