USB Host Shield 2.0
Loading...
Searching...
No Matches
UHS2_gpio.h
Go to the documentation of this file.
1/* Copyright (C) 2011 Circuits At Home, LTD. All rights reserved.
2
3This program is free software; you can redistribute it and/or modify
4it under the terms of the GNU General Public License as published by
5the Free Software Foundation; either version 2 of the License, or
6(at your option) any later version.
7
8This program is distributed in the hope that it will be useful,
9but WITHOUT ANY WARRANTY; without even the implied warranty of
10MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11GNU General Public License for more details.
12
13You should have received a copy of the GNU General Public License
14along with this program; if not, write to the Free Software
15Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
16
17Contact information
18-------------------
19
20Circuits At Home, LTD
21Web : http://www.circuitsathome.com
22e-mail : support@circuitsathome.com
23
24UHS2_GPIO implements "wiring" style GPIO access. Implemented by Brian Walton brian@riban.co.uk
25 */
26
27#if !defined(__USB2_GPIO_H__)
28#define __USB2_GPIO_H__
29
30#include "Usb.h"
31
32class UHS2_GPIO {
33public:
34 UHS2_GPIO(USB *pUsb);
35
39
40private:
41 USB* m_pUsb;
42};
43
44#endif // __USB2_GPIO_H__
void digitalWrite(uint8_t pin, uint8_t val)
Set a GPIO output value.
Definition UHS2_gpio.cpp:40
int digitalRead(uint8_t pin)
Read the value from a GPIO input pin.
Definition UHS2_gpio.cpp:55
int digitalReadOutput(uint8_t pin)
Read the value from a GPIO output pin.
Definition UHS2_gpio.cpp:68
Definition UsbCore.h:220