blob: c7f3ddd50a2a0d020c67b1d05142cbdb6009cfe4 [file] [log] [blame]
Dirk Eibach042f9f12011-10-31 09:39:12 +01001/*
2 * (C) Copyright 2011
Mario Sixd38826a2018-03-06 08:04:58 +01003 * Dirk Eibach, Guntermann & Drunck GmbH, dirk.eibach@gdsys.cc
Dirk Eibach042f9f12011-10-31 09:39:12 +01004 *
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_ */