#include <UHS2_gpio.h>
Definition at line 32 of file UHS2_gpio.h.
UHS2_GPIO::UHS2_GPIO |
( |
USB * |
pUsb | ) |
|
void UHS2_GPIO::digitalWrite |
( |
uint8_t |
pin, |
|
|
uint8_t |
val |
|
) |
| |
Set a GPIO output value.
- Parameters
-
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.
int UHS2_GPIO::digitalRead |
( |
uint8_t |
pin | ) |
|
Read the value from a GPIO input pin.
- Parameters
-
pin | GPIO input pin on USB Host Shield to read |
- Return values
-
int | Value of GPIO input (-1 on fail) |
Definition at line 55 of file UHS2_gpio.cpp.
int UHS2_GPIO::digitalReadOutput |
( |
uint8_t |
pin | ) |
|
Read the value from a GPIO output pin.
- Parameters
-
pin | GPIO output pin on USB Host Shield to read |
- Return values
-
int | Value of GPIO output (-1 on fail) |
- Note
- Value of MAX3421E output register, i.e. what the device has been set to, not the physical value on the pin
Definition at line 68 of file UHS2_gpio.cpp.
The documentation for this class was generated from the following files: