Zoltan Hudak / UsbHostMAX3421E

Dependents:   UsbHostMAX3421E_Hello

Committer:
hudakz
Date:
Sun Jul 12 20:39:26 2020 +0000
Revision:
0:84353c479782
Child:
1:2263e77400e9
MAX3421E-based USB Host Shield Library

Who changed what in which revision?

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