Lines Matching full:mcp3911
3 * Driver for Microchip MCP3911, Two-channel Analog Front End
97 MCP3911, enumerator
105 struct mcp3911;
110 int (*config)(struct mcp3911 *adc, bool external_vref);
111 int (*get_osr)(struct mcp3911 *adc, u32 *val);
112 int (*set_osr)(struct mcp3911 *adc, u32 val);
113 int (*enable_offset)(struct mcp3911 *adc, bool enable);
114 int (*get_offset)(struct mcp3911 *adc, int channel, int *val);
115 int (*set_offset)(struct mcp3911 *adc, int channel, int val);
116 int (*set_scale)(struct mcp3911 *adc, int channel, u32 val);
117 int (*get_raw)(struct mcp3911 *adc, int channel, int *val);
120 struct mcp3911 { struct
137 static int mcp3911_read(struct mcp3911 *adc, u8 reg, u32 *val, u8 len) in mcp3911_read() argument
153 static int mcp3911_write(struct mcp3911 *adc, u8 reg, u32 val, u8 len) in mcp3911_write()
164 static int mcp3911_update(struct mcp3911 *adc, u8 reg, u32 mask, u32 val, u8 len) in mcp3911_update()
178 static int mcp3911_read_s24(struct mcp3911 *const adc, u8 const reg, s32 *const val) in mcp3911_read_s24()
190 static int mcp3910_enable_offset(struct mcp3911 *adc, bool enable) in mcp3910_enable_offset()
198 static int mcp3910_get_offset(struct mcp3911 *adc, int channel, int *val) in mcp3910_get_offset()
203 static int mcp3910_set_offset(struct mcp3911 *adc, int channel, int val) in mcp3910_set_offset()
214 static int mcp3910_get_raw(struct mcp3911 *adc, int channel, s32 *val) in mcp3910_get_raw()
219 static int mcp3911_enable_offset(struct mcp3911 *adc, bool enable) in mcp3911_enable_offset()
227 static int mcp3911_get_offset(struct mcp3911 *adc, int channel, int *val) in mcp3911_get_offset()
232 static int mcp3911_set_offset(struct mcp3911 *adc, int channel, int val) in mcp3911_set_offset()
243 static int mcp3911_get_raw(struct mcp3911 *adc, int channel, s32 *val) in mcp3911_get_raw()
248 static int mcp3910_get_osr(struct mcp3911 *adc, u32 *val) in mcp3910_get_osr()
262 static int mcp3910_set_osr(struct mcp3911 *adc, u32 val) in mcp3910_set_osr()
270 static int mcp3911_set_osr(struct mcp3911 *adc, u32 val) in mcp3911_set_osr()
278 static int mcp3911_get_osr(struct mcp3911 *adc, u32 *val) in mcp3911_get_osr()
292 static int mcp3910_set_scale(struct mcp3911 *adc, int channel, u32 val) in mcp3910_set_scale()
299 static int mcp3911_set_scale(struct mcp3911 *adc, int channel, u32 val) in mcp3911_set_scale()
345 struct mcp3911 *adc = iio_priv(indio_dev); in mcp3911_read_raw()
380 struct mcp3911 *adc = iio_priv(indio_dev); in mcp3911_write_raw()
514 struct mcp3911 *adc = iio_priv(indio_dev); in mcp3911_trigger_handler()
558 static int mcp3911_config(struct mcp3911 *adc, bool external_vref) in mcp3911_config()
624 static int mcp3910_config(struct mcp3911 *adc, bool external_vref) in mcp3910_config()
693 struct mcp3911 *adc = iio_trigger_get_drvdata(trig); in mcp3911_set_trigger_state()
713 struct mcp3911 *adc; in mcp3911_probe()
845 [MCP3911] = {
920 { .compatible = "microchip,mcp3911", .data = &mcp3911_chip_info[MCP3911] },
932 { "mcp3911", (kernel_ulong_t)&mcp3911_chip_info[MCP3911] },
944 .name = "mcp3911",
954 MODULE_DESCRIPTION("Microchip Technology MCP3911");