Lines Matching full:mcp3911
3 * Driver for Microchip MCP3911, Two-channel Analog Front End
93 MCP3911, enumerator
101 struct mcp3911;
106 int (*config)(struct mcp3911 *adc, bool external_vref);
107 int (*get_osr)(struct mcp3911 *adc, u32 *val);
108 int (*set_osr)(struct mcp3911 *adc, u32 val);
109 int (*enable_offset)(struct mcp3911 *adc, bool enable);
110 int (*get_offset)(struct mcp3911 *adc, int channel, int *val);
111 int (*set_offset)(struct mcp3911 *adc, int channel, int val);
112 int (*set_scale)(struct mcp3911 *adc, int channel, u32 val);
115 struct mcp3911 { struct
132 static int mcp3911_read(struct mcp3911 *adc, u8 reg, u32 *val, u8 len) in mcp3911_read() argument
148 static int mcp3911_write(struct mcp3911 *adc, u8 reg, u32 val, u8 len) in mcp3911_write()
159 static int mcp3911_update(struct mcp3911 *adc, u8 reg, u32 mask, u32 val, u8 len) in mcp3911_update()
173 static int mcp3910_enable_offset(struct mcp3911 *adc, bool enable) in mcp3910_enable_offset()
181 static int mcp3910_get_offset(struct mcp3911 *adc, int channel, int *val) in mcp3910_get_offset()
186 static int mcp3910_set_offset(struct mcp3911 *adc, int channel, int val) in mcp3910_set_offset()
197 static int mcp3911_enable_offset(struct mcp3911 *adc, bool enable) in mcp3911_enable_offset()
205 static int mcp3911_get_offset(struct mcp3911 *adc, int channel, int *val) in mcp3911_get_offset()
210 static int mcp3911_set_offset(struct mcp3911 *adc, int channel, int val) in mcp3911_set_offset()
221 static int mcp3910_get_osr(struct mcp3911 *adc, u32 *val) in mcp3910_get_osr()
235 static int mcp3910_set_osr(struct mcp3911 *adc, u32 val) in mcp3910_set_osr()
243 static int mcp3911_set_osr(struct mcp3911 *adc, u32 val) in mcp3911_set_osr()
251 static int mcp3911_get_osr(struct mcp3911 *adc, u32 *val) in mcp3911_get_osr()
265 static int mcp3910_set_scale(struct mcp3911 *adc, int channel, u32 val) in mcp3910_set_scale()
272 static int mcp3911_set_scale(struct mcp3911 *adc, int channel, u32 val) in mcp3911_set_scale()
318 struct mcp3911 *adc = iio_priv(indio_dev); in mcp3911_read_raw()
356 struct mcp3911 *adc = iio_priv(indio_dev); in mcp3911_write_raw()
490 struct mcp3911 *adc = iio_priv(indio_dev); in mcp3911_trigger_handler()
534 static int mcp3911_config(struct mcp3911 *adc, bool external_vref) in mcp3911_config()
600 static int mcp3910_config(struct mcp3911 *adc, bool external_vref) in mcp3910_config()
669 struct mcp3911 *adc = iio_trigger_get_drvdata(trig); in mcp3911_set_trigger_state()
688 struct mcp3911 *adc; in mcp3911_probe()
803 [MCP3911] = {
872 { .compatible = "microchip,mcp3911", .data = &mcp3911_chip_info[MCP3911] },
884 { "mcp3911", (kernel_ulong_t)&mcp3911_chip_info[MCP3911] },
896 .name = "mcp3911",
906 MODULE_DESCRIPTION("Microchip Technology MCP3911");