41#define MAX31875_TEMPERATURE_REG 0x0
42#define MAX31875_CONFIGURATION_REG 0x1
43#define MAX31875_THYST_REG 0x2
44#define MAX31875_TOS_REG 0x3
47#define MAX31875_OVER_TEMP_STATUS_MASK NO_OS_BIT(15)
48#define MAX31875_FAULT_QUEUE_MASK NO_OS_GENMASK(12, 11)
49#define MAX31875_COMP_INT_MASK NO_OS_BIT(9)
50#define MAX31875_SHUTDOWN_MASK NO_OS_BIT(8)
51#define MAX31875_DATA_FORMAT_MASK NO_OS_BIT(7)
52#define MAX31875_RESOLUTION_MASK NO_OS_GENMASK(6, 5)
53#define MAX31875_TIMEOUT_MASK NO_OS_BIT(4)
54#define MAX31875_PEC_MASK NO_OS_BIT(3)
55#define MAX31875_CONVERSION_RATE_MASK NO_OS_GENMASK(2, 1)
56#define MAX31875_ONESHOT_MASK NO_OS_BIT(0)
struct ad7616_init_param init_param
Definition ad7616_sdz.c:107
int32_t max31875_reg_read(struct max31875_dev *dev, uint32_t reg, uint32_t *readval)
Read a device register through the I2C interface.
Definition max31875.c:45
int32_t max31875_remove(struct max31875_dev *dev)
Free memory allocated by max31875_init().
Definition max31875.c:160
int32_t max31875_reg_write_mask(struct max31875_dev *dev, uint32_t reg, uint32_t val, uint32_t mask)
Read-modify-write operation on a field of a register.
Definition max31875.c:101
int32_t max31875_init(struct max31875_dev **device, struct max31875_init_param *init_param)
Initialize the device driver befre use.
Definition max31875.c:128
int32_t max31875_reg_write(struct max31875_dev *dev, uint32_t reg, uint32_t writeval)
Write a device register through the I2C interface.
Definition max31875.c:77
max31875_i2c_addr
Defines the potential device I2C addresses.
Definition max31875.h:62
@ MAX31875R3
Definition max31875.h:66
@ MAX31875R5
Definition max31875.h:68
@ MAX31875R1
Definition max31875.h:64
@ MAX31875R2
Definition max31875.h:65
@ MAX31875R7
Definition max31875.h:70
@ MAX31875R0
Definition max31875.h:63
@ MAX31875R4
Definition max31875.h:67
@ MAX31875R6
Definition max31875.h:69
Header file of I2C Interface.
Header file of utility functions.
Definition ad9361_util.h:63
MAX31875 handler structure.
Definition max31875.h:77
struct no_os_i2c_desc * i2c_desc
Definition max31875.h:79
MAX31875 driver initailization structure.
Definition max31875.h:86
struct no_os_i2c_init_param i2c_init
Definition max31875.h:88
Structure holding I2C address descriptor.
Definition no_os_i2c.h:89
Structure holding the parameters for I2C initialization.
Definition no_os_i2c.h:52