blob: c7f3ddd50a2a0d020c67b1d05142cbdb6009cfe4 [file] [log] [blame]
Dirk Eibachbae3a222011-10-31 09:39:12 +01001/*
2 * (C) Copyright 2011
Mario Sixb4893582018-03-06 08:04:58 +01003 * Dirk Eibach, Guntermann & Drunck GmbH, dirk.eibach@gdsys.cc
Dirk Eibachbae3a222011-10-31 09:39:12 +01004 *
Wolfgang Denkd79de1d2013-07-08 09:37:19 +02005 * SPDX-License-Identifier: GPL-2.0+
Dirk Eibachbae3a222011-10-31 09:39:12 +01006 */
7
Dirk Eibachc3213b82011-10-03 23:13:51 +00008#ifndef __PCA9698_H_
9#define __PCA9698_H_
10
Dirk Eibachbae3a222011-10-31 09:39:12 +010011int pca9698_request(unsigned gpio, const char *label);
12void pca9698_free(unsigned gpio);
13int pca9698_direction_input(u8 addr, unsigned gpio);
14int pca9698_direction_output(u8 addr, unsigned gpio, int value);
15int pca9698_get_value(u8 addr, unsigned gpio);
16int pca9698_set_value(u8 addr, unsigned gpio, int value);
Dirk Eibachc3213b82011-10-03 23:13:51 +000017
18#endif /* __PCA9698_H_ */