| 1234567891011121314151617 |
- #ifndef ADC_H_
- #include "ti/driverlib/dl_i2c.h"
- #include "ti_msp_dl_config.h"
- #include "src/battery_data/battery.h"
- //ADC states
- typedef enum{
- ADC_STATE_CONFIGURE,
- ADC_STATE_WAIT,
- ADC_STATE_READ,
- ADC_STATE_DONE
- }ADC_MeasurementState;
- uint16_t read_adc_channel(uint8_t slot, uint8_t channel); //belongs to battery module
- #endif
|