representation of hardware port/pin combination More...
representation of hardware port/pin combination
#include <daisy_core.h>
Public Member Functions | |
constexpr | Pin (const GPIOPort pt, const uint8_t pn) |
Constructor creates a valid pin. | |
constexpr | Pin () |
Basic Constructor creates an invalid Pin object. | |
constexpr bool | IsValid () const |
checks validity of a Pin | |
constexpr bool | operator== (const Pin &rhs) const |
comparison operator for checking equality between Pin objects | |
constexpr bool | operator!= (const Pin &rhs) const |
comparison operator for checking inequality between Pin objects | |
Public Attributes | |
GPIOPort | port |
uint8_t | pin |
Constructor creates a valid pin.
pt | GPIOPort between PA, and PK corresponding to STM32 Port. |
pn | pin number in range of 0-15 |
checks validity of a Pin
returns | true if the port is a valid hardware pin, otherwise false. |
comparison operator for checking inequality between Pin objects
comparison operator for checking equality between Pin objects
uint8_t daisy::Pin::pin |
GPIOPort daisy::Pin::port |