OpenBIC
OpenSource Bridge-IC
ads7830.h
Go to the documentation of this file.
1
#ifndef _ADS7830_H_
2
#define _ADS7830_H_
3
4
#include <stdint.h>
5
#include <stdbool.h>
6
#include "
sensor.h
"
7
8
#define ADC_CH0 0x8C
// CH0: SD=1, C2=0, C1=0, C0=0, PD=11
9
#define ADC_CH1 0xCC
10
#define ADC_CH2 0x9C
11
#define ADC_CH3 0xDC
12
#define ADC_CH4 0xAC
13
#define ADC_CH5 0xEC
14
#define ADC_CH6 0xBC
15
#define ADC_CH7 0xFC
16
17
uint8_t
ads7830_init
(
sensor_cfg
*cfg);
18
uint8_t
ads7830_read
(
sensor_cfg
*cfg,
int
*
reading
);
19
20
#endif
/* _ADS7830_H_ */
ads7830_read
uint8_t ads7830_read(sensor_cfg *cfg, int *reading)
Definition:
ads7830.c:26
ads7830_init
uint8_t ads7830_init(sensor_cfg *cfg)
Definition:
ads7830.c:68
reading
uint8_t reading[1]
Definition:
pldm_monitor.h:3
sensor.h
_sensor_cfg_
Definition:
sensor.h:261
common
dev
include
ads7830.h
Generated by
1.9.2