blob: 48a5f756e28a1620a67c4f3d98887cb91719191b [file] [log] [blame]
Tom Rini83d290c2018-05-06 17:58:06 -04001/* SPDX-License-Identifier: GPL-2.0+ */
Dirk Eibach042f9f12011-10-31 09:39:12 +01002/*
3 * (C) Copyright 2011
Mario Sixd38826a2018-03-06 08:04:58 +01004 * Dirk Eibach, Guntermann & Drunck GmbH, dirk.eibach@gdsys.cc
Dirk Eibach042f9f12011-10-31 09:39:12 +01005 */
6
Dirk Eibach486cad02011-10-03 23:13:51 +00007#ifndef __PCA9698_H_
8#define __PCA9698_H_
9
Dirk Eibach042f9f12011-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 Eibach486cad02011-10-03 23:13:51 +000016
17#endif /* __PCA9698_H_ */