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