1*042f9f10SDirk Eibach /* 2*042f9f10SDirk Eibach * (C) Copyright 2011 3*042f9f10SDirk Eibach * Dirk Eibach, Guntermann & Drunck GmbH, eibach@gdsys.de 4*042f9f10SDirk Eibach * 5*042f9f10SDirk Eibach * See file CREDITS for list of people who contributed to this 6*042f9f10SDirk Eibach * project. 7*042f9f10SDirk Eibach * 8*042f9f10SDirk Eibach * This program is free software; you can redistribute it and/or 9*042f9f10SDirk Eibach * modify it under the terms of the GNU General Public License as 10*042f9f10SDirk Eibach * published by the Free Software Foundation; either version 2 of 11*042f9f10SDirk Eibach * the License, or (at your option) any later version. 12*042f9f10SDirk Eibach * 13*042f9f10SDirk Eibach * This program is distributed in the hope that it will be useful, 14*042f9f10SDirk Eibach * but WITHOUT ANY WARRANTY; without even the implied warranty of 15*042f9f10SDirk Eibach * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 16*042f9f10SDirk Eibach * GNU General Public License for more details. 17*042f9f10SDirk Eibach * 18*042f9f10SDirk Eibach * You should have received a copy of the GNU General Public License 19*042f9f10SDirk Eibach * along with this program; if not, write to the Free Software 20*042f9f10SDirk Eibach * Foundation, Inc., 59 Temple Place, Suite 330, Boston, 21*042f9f10SDirk Eibach * MA 02111-1307 USA 22*042f9f10SDirk Eibach */ 23*042f9f10SDirk Eibach 24486cad03SDirk Eibach #ifndef __PCA9698_H_ 25486cad03SDirk Eibach #define __PCA9698_H_ 26486cad03SDirk Eibach 27*042f9f10SDirk Eibach int pca9698_request(unsigned gpio, const char *label); 28*042f9f10SDirk Eibach void pca9698_free(unsigned gpio); 29*042f9f10SDirk Eibach int pca9698_direction_input(u8 addr, unsigned gpio); 30*042f9f10SDirk Eibach int pca9698_direction_output(u8 addr, unsigned gpio, int value); 31*042f9f10SDirk Eibach int pca9698_get_value(u8 addr, unsigned gpio); 32*042f9f10SDirk Eibach int pca9698_set_value(u8 addr, unsigned gpio, int value); 33486cad03SDirk Eibach 34486cad03SDirk Eibach #endif /* __PCA9698_H_ */ 35