adc.h 346 B

1234567891011121314151617
  1. #ifndef ADC_H_
  2. #include "ti/driverlib/dl_i2c.h"
  3. #include "ti_msp_dl_config.h"
  4. #include "src/battery_data/battery.h"
  5. //ADC states
  6. typedef enum{
  7. ADC_STATE_CONFIGURE,
  8. ADC_STATE_WAIT,
  9. ADC_STATE_READ,
  10. ADC_STATE_DONE
  11. }ADC_MeasurementState;
  12. uint16_t read_adc_channel(uint8_t slot, uint8_t channel); //belongs to battery module
  13. #endif