rusefi-hardware/digital-inputs/firmware/adc.h

20 lines
274 B
C
Raw Normal View History

2022-10-01 11:38:16 -07:00
/**
file adc.h
*/
2022-02-01 15:10:16 -08:00
#pragma once
#include "global.h"
2022-02-19 07:19:33 -08:00
typedef uint16_t adcsample_t;
#define ADC_GRP_NUM_CHANNELS 3
2022-03-18 02:00:15 -07:00
#define ADC_VREF (3.300f)
2022-02-19 07:19:33 -08:00
void initAnalogInputs();
2022-03-18 02:00:15 -07:00
adcsample_t getAdcRawValue(int channel);
2022-06-27 06:42:24 -07:00
/*
2022-06-27 19:39:31 -07:00
* value in volts
*/
2022-03-18 02:00:15 -07:00
float getAdcValue(int channel);