blob: 4aee769a3f1fecb206321ed799c43bd53bc2e998 [file] [log] [blame]
Brian Silverman8d3816a2017-07-03 18:52:15 -07001#ifndef MOTORS_PERIPHERAL_ADC_H_
2#define MOTORS_PERIPHERAL_ADC_H_
3
4#include <stdint.h>
5
6namespace frc971 {
7namespace salsa {
8
9struct MediumAdcReadings {
10 uint16_t motor_currents[3][2];
11 uint16_t motor_current_ref;
12 uint16_t input_voltage;
13};
14
15void AdcInit();
16
17MediumAdcReadings AdcReadMedium();
18
19} // namespace salsa
20} // namespace frc971
21
22#endif // MOTORS_PERIPHERAL_ADC_H_