EV Logger
A MSP430 based datalogger for an electric vehicle
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
adc.h
Go to the documentation of this file.
1 
9 #ifndef __ADC_H__
10 #define __ADC_H__
11 
12 #include <msp430.h>
13 #include <msp430f5529.h>
14 #include "typedefs.h"
15 #include "logger.h"
16 
17 void adc_init(volatile SampleBuffer *sb);
18 void adc_convert(void);
19 
20 #endif /* __ADC_H__ */
21 
A structure to contain one 'set' of samples from the vehicle.
Definition: logger.h:92
void adc_convert(void)
Enable DMA on channel 0 which will move data to the sample buffer after the ADC conversion run has co...
Definition: adc.c:88
void adc_init(volatile SampleBuffer *sb)
Set up the ADC clock and configure resolution, then enable the ADC unit.
Definition: adc.c:31
static volatile SampleBuffer sb
A SampleBuffer to store a single set of readings before they are transferred into the SD transaction ...
Definition: logger.c:59
Logger header.
Standard data type shorthand defined as with avr-libc.