Zephyr API Documentation 4.0.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
ads131m02.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2024 Linumiz
3 *
4 * SPDX-License-Identifier: Apache-2.0
5 */
6
7#ifndef ZEPHYR_INCLUDE_DRIVERS_ADC_ADS131M02_H_
8#define ZEPHYR_INCLUDE_DRIVERS_ADC_ADS131M02_H_
9
10#include <zephyr/device.h>
11
13 ADS131M02_CONTINUOUS_MODE, /* Continuous conversion mode */
14 ADS131M02_GLOBAL_CHOP_MODE /* Global chop mode */
15};
16
18 ADS131M02_VLP, /* Very Low Power */
19 ADS131M02_LP, /* Low Power */
20 ADS131M02_HR /* High Resolution */
21};
22
41
42int ads131m02_set_adc_mode(const struct device *dev, enum ads131m02_adc_mode mode,
43 enum ads131m02_gc_delay gc_delay);
44
45int ads131m02_set_power_mode(const struct device *dev,
46 enum ads131m02_adc_power_mode mode);
47
48#endif
ads131m02_gc_delay
Definition ads131m02.h:23
@ ADS131M02_GC_DELAY_512
Definition ads131m02.h:32
@ ADS131M02_GC_DELAY_8192
Definition ads131m02.h:36
@ ADS131M02_GC_DELAY_256
Definition ads131m02.h:31
@ ADS131M02_GC_DELAY_65536
Definition ads131m02.h:39
@ ADS131M02_GC_DELAY_4
Definition ads131m02.h:25
@ ADS131M02_GC_DELAY_64
Definition ads131m02.h:29
@ ADS131M02_GC_DELAY_128
Definition ads131m02.h:30
@ ADS131M02_GC_DELAY_1024
Definition ads131m02.h:33
@ ADS131M02_GC_DELAY_32
Definition ads131m02.h:28
@ ADS131M02_GC_DELAY_4096
Definition ads131m02.h:35
@ ADS131M02_GC_DELAY_16384
Definition ads131m02.h:37
@ ADS131M02_GC_DELAY_16
Definition ads131m02.h:27
@ ADS131M02_GC_DELAY_2
Definition ads131m02.h:24
@ ADS131M02_GC_DELAY_2048
Definition ads131m02.h:34
@ ADS131M02_GC_DELAY_8
Definition ads131m02.h:26
@ ADS131M02_GC_DELAY_32768
Definition ads131m02.h:38
int ads131m02_set_adc_mode(const struct device *dev, enum ads131m02_adc_mode mode, enum ads131m02_gc_delay gc_delay)
int ads131m02_set_power_mode(const struct device *dev, enum ads131m02_adc_power_mode mode)
ads131m02_adc_mode
Definition ads131m02.h:12
@ ADS131M02_CONTINUOUS_MODE
Definition ads131m02.h:13
@ ADS131M02_GLOBAL_CHOP_MODE
Definition ads131m02.h:14
ads131m02_adc_power_mode
Definition ads131m02.h:17
@ ADS131M02_HR
Definition ads131m02.h:20
@ ADS131M02_VLP
Definition ads131m02.h:18
@ ADS131M02_LP
Definition ads131m02.h:19
Runtime device structure (in ROM) per driver instance.
Definition device.h:411