25 int open(
unsigned int pin, Direction direction,
bool unexport =
true);
37 return (gpio[GPIO_DATAIN] & pinMask);
44 gpio[GPIO_SETDATAOUT] = pinMask;
50 gpio[GPIO_CLEARDATAOUT] = pinMask;
71 return nullptr != gpio;
79 static constexpr uint32_t GPIO_DATAIN = (0x138 / 4);
80 static constexpr uint32_t GPIO_CLEARDATAOUT = (0x190 / 4);
81 static constexpr uint32_t GPIO_SETDATAOUT = (0x194 / 4);
86 volatile uint32_t* gpio;
void clear()
Definition: Gpio.h:49
static uint32_t getBankAddress(unsigned int bank)
void set()
Definition: Gpio.h:43
int open(unsigned int pin, Direction direction, bool unexport=true)
void write(bool value)
Definition: Gpio.h:57
bool enabled()
Definition: Gpio.h:70
bool read()
Definition: Gpio.h:36