/* * ADC.h * * Created: Tue Sep 13 2022 19:51:15 * Author Chris */ #ifndef CORE1_ADC_H_ #define CORE1_ADC_H_ // ============================================================================================ // Includes #include #include #include #include "pico/types.h" #include "pico/stdlib.h" // ============================================================================================ // Defines #define ADC_CHANNEL_POT1 3 #define ADC_CHANNEL_POT2 0 #define ADC_CHANNEL_POT3 2 #define ADC_CHANNEL_SUPPLY 1 #define ADC_CHANNEL_SHUNT 4 #define ADC_CHANNEL_REF 5 #define ADC_CHANNEL_GND1 6 #define ADC_CHANNEL_GND2 7 // ============================================================================================ // Datatypes // ============================================================================================ // Function Declarations void Core1_ADC_Init(); uint16_t Core1_ADC_Get_Result_Value(); uint16_t Core1_ADC_Get_Result_mV(); #endif /* CORE1_ADC_H_ */