master
h 19 lines 503 Bytes
Raw
1 /*
2 * PCA9554 I/O port registers
3 *
4 * Copyright (c) 2023, IBM Corporation.
5 *
6 * SPDX-License-Identifier: GPL-2.0-or-later
7 */
8 #ifndef PCA9554_REGS_H
9 #define PCA9554_REGS_H
10
11 /*
12 * Bits [0:1] are used to address a specific register.
13 */
14 #define PCA9554_INPUT 0 /* read only input register */
15 #define PCA9554_OUTPUT 1 /* read/write pin output state */
16 #define PCA9554_POLARITY 2 /* Set polarity of input register */
17 #define PCA9554_CONFIG 3 /* Set pins as inputs our ouputs */
18
19 #endif