44 bool get(
int index)
volatile {
return (
bool)
getBitRange(index, index); }
49 bool get(
int index)
volatile {
return (
bool)
getBitRange(index, index); }
50 void set(
int index,
bool state)
volatile {
setBitRange(index, index, state); }
71 constexpr
GPIO(
int i) : m_index(i) {}
72 constexpr
operator int()
const {
return m_index; }
81 return 0x40020000 + 0x400*m_index;
constexpr GPIOPin(GPIO group, uint8_t pin)
void setType(int index, Type type) volatile
REGS_REGISTER_AT(MODER, 0x00)
unsigned long long uint64_t
void setAlternateFunction(int index, AlternateFunction af) volatile
void setPull(int index, Pull pull) volatile
void setBitRange(uint8_t high, uint8_t low, T value) volatile
void setMode(int index, Mode mode) volatile
AlternateFunction getAlternateFunction(int index)
T getBitRange(uint8_t high, uint8_t low) volatile