blob: 9732be661d20906b7973a29cb13066fbd91f1214 [file] [log] [blame]
Dirk Eibach042f9f12011-10-31 09:39:12 +01001/*
2 * (C) Copyright 2011
3 * Dirk Eibach, Guntermann & Drunck GmbH, eibach@gdsys.de
4 *
Wolfgang Denk1a459662013-07-08 09:37:19 +02005 * SPDX-License-Identifier: GPL-2.0+
Dirk Eibach042f9f12011-10-31 09:39:12 +01006 */
7
Dirk Eibach486cad02011-10-03 23:13:51 +00008#ifndef __PCA9698_H_
9#define __PCA9698_H_
10
Dirk Eibach042f9f12011-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 Eibach486cad02011-10-03 23:13:51 +000017
18#endif /* __PCA9698_H_ */