blob: 48a5f756e28a1620a67c4f3d98887cb91719191b [file] [log] [blame]
Tom Rini10e47792018-05-06 17:58:06 -04001/* SPDX-License-Identifier: GPL-2.0+ */
Dirk Eibachbae3a222011-10-31 09:39:12 +01002/*
3 * (C) Copyright 2011
Mario Sixb4893582018-03-06 08:04:58 +01004 * Dirk Eibach, Guntermann & Drunck GmbH, dirk.eibach@gdsys.cc
Dirk Eibachbae3a222011-10-31 09:39:12 +01005 */
6
Dirk Eibachc3213b82011-10-03 23:13:51 +00007#ifndef __PCA9698_H_
8#define __PCA9698_H_
9
Dirk Eibachbae3a222011-10-31 09:39:12 +010010int pca9698_request(unsigned gpio, const char *label);
11void pca9698_free(unsigned gpio);
12int pca9698_direction_input(u8 addr, unsigned gpio);
13int pca9698_direction_output(u8 addr, unsigned gpio, int value);
14int pca9698_get_value(u8 addr, unsigned gpio);
15int pca9698_set_value(u8 addr, unsigned gpio, int value);
Dirk Eibachc3213b82011-10-03 23:13:51 +000016
17#endif /* __PCA9698_H_ */