|
USB Host Shield 2.0
|
#include <UHS2_gpio.h>
Public Member Functions | |
| UHS2_GPIO (USB *pUsb) | |
| Implement an instance of a UHS2_GPIO object. | |
| void | digitalWrite (uint8_t pin, uint8_t val) |
| Set a GPIO output value. | |
| int | digitalRead (uint8_t pin) |
| Read the value from a GPIO input pin. | |
| int | digitalReadOutput (uint8_t pin) |
| Read the value from a GPIO output pin. | |
Definition at line 32 of file UHS2_gpio.h.
| UHS2_GPIO::UHS2_GPIO | ( | USB * | pUsb | ) |
Implement an instance of a UHS2_GPIO object.
| pUSB | Pointer to a UHS2 USB object |
Definition at line 32 of file UHS2_gpio.cpp.
Set a GPIO output value.
| pin | GPIO output pin on USB Host Shield to set |
| val | Value to set the pin to (zero value will clear output, non-zero value will assert output) |
Definition at line 40 of file UHS2_gpio.cpp.
Read the value from a GPIO input pin.
| pin | GPIO input pin on USB Host Shield to read |
| int | Value of GPIO input (-1 on fail) |
Definition at line 55 of file UHS2_gpio.cpp.
Read the value from a GPIO output pin.
| pin | GPIO output pin on USB Host Shield to read |
| int | Value of GPIO output (-1 on fail) |
Definition at line 68 of file UHS2_gpio.cpp.