linux/drivers/iio/health/afe440x.h

/* SPDX-License-Identifier: GPL-2.0-only */
/*
 * AFE440X Heart Rate Monitors and Low-Cost Pulse Oximeters
 *
 * Copyright (C) 2015 Texas Instruments Incorporated - https://www.ti.com/
 *	Andrew F. Davis <[email protected]>
 */

#ifndef _AFE440X_H
#define _AFE440X_H

/* AFE440X registers */
#define AFE440X_CONTROL0
#define AFE440X_LED2STC
#define AFE440X_LED2ENDC
#define AFE440X_LED1LEDSTC
#define AFE440X_LED1LEDENDC
#define AFE440X_ALED2STC
#define AFE440X_ALED2ENDC
#define AFE440X_LED1STC
#define AFE440X_LED1ENDC
#define AFE440X_LED2LEDSTC
#define AFE440X_LED2LEDENDC
#define AFE440X_ALED1STC
#define AFE440X_ALED1ENDC
#define AFE440X_LED2CONVST
#define AFE440X_LED2CONVEND
#define AFE440X_ALED2CONVST
#define AFE440X_ALED2CONVEND
#define AFE440X_LED1CONVST
#define AFE440X_LED1CONVEND
#define AFE440X_ALED1CONVST
#define AFE440X_ALED1CONVEND
#define AFE440X_ADCRSTSTCT0
#define AFE440X_ADCRSTENDCT0
#define AFE440X_ADCRSTSTCT1
#define AFE440X_ADCRSTENDCT1
#define AFE440X_ADCRSTSTCT2
#define AFE440X_ADCRSTENDCT2
#define AFE440X_ADCRSTSTCT3
#define AFE440X_ADCRSTENDCT3
#define AFE440X_PRPCOUNT
#define AFE440X_CONTROL1
#define AFE440X_LEDCNTRL
#define AFE440X_CONTROL2
#define AFE440X_ALARM
#define AFE440X_LED2VAL
#define AFE440X_ALED2VAL
#define AFE440X_LED1VAL
#define AFE440X_ALED1VAL
#define AFE440X_LED2_ALED2VAL
#define AFE440X_LED1_ALED1VAL
#define AFE440X_CONTROL3
#define AFE440X_PDNCYCLESTC
#define AFE440X_PDNCYCLEENDC

/* CONTROL0 register fields */
#define AFE440X_CONTROL0_REG_READ
#define AFE440X_CONTROL0_TM_COUNT_RST
#define AFE440X_CONTROL0_SW_RESET

/* CONTROL1 register fields */
#define AFE440X_CONTROL1_TIMEREN

/* TIAGAIN register fields */
#define AFE440X_TIAGAIN_ENSEPGAIN

/* CONTROL2 register fields */
#define AFE440X_CONTROL2_PDN_AFE
#define AFE440X_CONTROL2_PDN_RX
#define AFE440X_CONTROL2_DYNAMIC4
#define AFE440X_CONTROL2_DYNAMIC3
#define AFE440X_CONTROL2_DYNAMIC2
#define AFE440X_CONTROL2_DYNAMIC1

/* CONTROL3 register fields */
#define AFE440X_CONTROL3_CLKDIV

/* CONTROL0 values */
#define AFE440X_CONTROL0_WRITE
#define AFE440X_CONTROL0_READ

#define AFE440X_INTENSITY_CHAN(_index, _mask)

#define AFE440X_CURRENT_CHAN(_index)

struct afe440x_val_table {};

#define AFE440X_TABLE_ATTR(_name, _table)

struct afe440x_attr {};

#define to_afe440x_attr(_dev_attr)

#define AFE440X_ATTR(_name, _field, _table)

#endif /* _AFE440X_H */