Lines Matching +full:0 +full:- +full:indexed
1 /* SPDX-License-Identifier: GPL-2.0-only */
3 * AFE440X Heart Rate Monitors and Low-Cost Pulse Oximeters
5 * Copyright (C) 2015 Texas Instruments Incorporated - https://www.ti.com/
13 #define AFE440X_CONTROL0 0x00
14 #define AFE440X_LED2STC 0x01
15 #define AFE440X_LED2ENDC 0x02
16 #define AFE440X_LED1LEDSTC 0x03
17 #define AFE440X_LED1LEDENDC 0x04
18 #define AFE440X_ALED2STC 0x05
19 #define AFE440X_ALED2ENDC 0x06
20 #define AFE440X_LED1STC 0x07
21 #define AFE440X_LED1ENDC 0x08
22 #define AFE440X_LED2LEDSTC 0x09
23 #define AFE440X_LED2LEDENDC 0x0a
24 #define AFE440X_ALED1STC 0x0b
25 #define AFE440X_ALED1ENDC 0x0c
26 #define AFE440X_LED2CONVST 0x0d
27 #define AFE440X_LED2CONVEND 0x0e
28 #define AFE440X_ALED2CONVST 0x0f
29 #define AFE440X_ALED2CONVEND 0x10
30 #define AFE440X_LED1CONVST 0x11
31 #define AFE440X_LED1CONVEND 0x12
32 #define AFE440X_ALED1CONVST 0x13
33 #define AFE440X_ALED1CONVEND 0x14
34 #define AFE440X_ADCRSTSTCT0 0x15
35 #define AFE440X_ADCRSTENDCT0 0x16
36 #define AFE440X_ADCRSTSTCT1 0x17
37 #define AFE440X_ADCRSTENDCT1 0x18
38 #define AFE440X_ADCRSTSTCT2 0x19
39 #define AFE440X_ADCRSTENDCT2 0x1a
40 #define AFE440X_ADCRSTSTCT3 0x1b
41 #define AFE440X_ADCRSTENDCT3 0x1c
42 #define AFE440X_PRPCOUNT 0x1d
43 #define AFE440X_CONTROL1 0x1e
44 #define AFE440X_LEDCNTRL 0x22
45 #define AFE440X_CONTROL2 0x23
46 #define AFE440X_ALARM 0x29
47 #define AFE440X_LED2VAL 0x2a
48 #define AFE440X_ALED2VAL 0x2b
49 #define AFE440X_LED1VAL 0x2c
50 #define AFE440X_ALED1VAL 0x2d
51 #define AFE440X_LED2_ALED2VAL 0x2e
52 #define AFE440X_LED1_ALED1VAL 0x2f
53 #define AFE440X_CONTROL3 0x31
54 #define AFE440X_PDNCYCLESTC 0x32
55 #define AFE440X_PDNCYCLEENDC 0x33
58 #define AFE440X_CONTROL0_REG_READ BIT(0)
69 #define AFE440X_CONTROL2_PDN_AFE BIT(0)
77 #define AFE440X_CONTROL3_CLKDIV GENMASK(2, 0)
80 #define AFE440X_CONTROL0_WRITE 0x0
81 #define AFE440X_CONTROL0_READ 0x1
97 .indexed = true, \
105 .scan_index = -1, \
108 .indexed = true, \
121 ssize_t len = 0; \
124 for (i = 0; i < ARRAY_SIZE(_table); i++) \
125 len += scnprintf(buf + len, PAGE_SIZE - len, "%d.%06u ", \
129 buf[len - 1] = '\n'; \