OpenBIC
OpenSource Bridge-IC
ads7830.h File Reference
#include <stdint.h>
#include <stdbool.h>
#include "sensor.h"
Include dependency graph for ads7830.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define ADC_CH0   0x8C
 
#define ADC_CH1   0xCC
 
#define ADC_CH2   0x9C
 
#define ADC_CH3   0xDC
 
#define ADC_CH4   0xAC
 
#define ADC_CH5   0xEC
 
#define ADC_CH6   0xBC
 
#define ADC_CH7   0xFC
 

Functions

uint8_t ads7830_init (sensor_cfg *cfg)
 
uint8_t ads7830_read (sensor_cfg *cfg, int *reading)
 

Macro Definition Documentation

◆ ADC_CH0

#define ADC_CH0   0x8C

◆ ADC_CH1

#define ADC_CH1   0xCC

◆ ADC_CH2

#define ADC_CH2   0x9C

◆ ADC_CH3

#define ADC_CH3   0xDC

◆ ADC_CH4

#define ADC_CH4   0xAC

◆ ADC_CH5

#define ADC_CH5   0xEC

◆ ADC_CH6

#define ADC_CH6   0xBC

◆ ADC_CH7

#define ADC_CH7   0xFC

Function Documentation

◆ ads7830_init()

uint8_t ads7830_init ( sensor_cfg cfg)
Here is the call graph for this function:

◆ ads7830_read()

uint8_t ads7830_read ( sensor_cfg cfg,
int *  reading 
)
Here is the call graph for this function: