Dirk Eibach | 042f9f1 | 2011-10-31 09:39:12 +0100 | [diff] [blame] | 1 | /* |
| 2 | * (C) Copyright 2011 |
Mario Six | d38826a | 2018-03-06 08:04:58 +0100 | [diff] [blame] | 3 | * Dirk Eibach, Guntermann & Drunck GmbH, dirk.eibach@gdsys.cc |
Dirk Eibach | 042f9f1 | 2011-10-31 09:39:12 +0100 | [diff] [blame] | 4 | * |
Wolfgang Denk | 1a45966 | 2013-07-08 09:37:19 +0200 | [diff] [blame] | 5 | * SPDX-License-Identifier: GPL-2.0+ |
Dirk Eibach | 042f9f1 | 2011-10-31 09:39:12 +0100 | [diff] [blame] | 6 | */ |
| 7 | |
Dirk Eibach | 486cad0 | 2011-10-03 23:13:51 +0000 | [diff] [blame] | 8 | #ifndef __PCA9698_H_ |
| 9 | #define __PCA9698_H_ |
| 10 | |
Dirk Eibach | 042f9f1 | 2011-10-31 09:39:12 +0100 | [diff] [blame] | 11 | int pca9698_request(unsigned gpio, const char *label); |
| 12 | void pca9698_free(unsigned gpio); |
| 13 | int pca9698_direction_input(u8 addr, unsigned gpio); |
| 14 | int pca9698_direction_output(u8 addr, unsigned gpio, int value); |
| 15 | int pca9698_get_value(u8 addr, unsigned gpio); |
| 16 | int pca9698_set_value(u8 addr, unsigned gpio, int value); |
Dirk Eibach | 486cad0 | 2011-10-03 23:13:51 +0000 | [diff] [blame] | 17 | |
| 18 | #endif /* __PCA9698_H_ */ |