44 uint8_t nMask = 1 << pin;
58 uint8_t nMask = 1 << pin;
59 uint8_t nValue = m_pUsb->
gpioRd();
60 return ((nValue & nMask)?1:0);
71 uint8_t nMask = 1 << pin;
73 return ((nValue & nMask)?1:0);
int digitalReadOutput(uint8_t pin)
Read the value from a GPIO output pin.
int digitalRead(uint8_t pin)
Read the value from a GPIO input pin.
uint8_t gpioRdOutput()
Reads the current GPI output values.
void gpioWr(uint8_t data)
uint8_t gpioRd()
Reads the current GPI input values.
void digitalWrite(uint8_t pin, uint8_t val)
Set a GPIO output value.
UHS2_GPIO(USB *pUsb)
Implement an instance of a UHS2_GPIO object.