28 lines
563 B
C
28 lines
563 B
C
#ifndef ADC_SENSOR_H
|
|
#define ADC_SENSOR_H
|
|
|
|
#include <stdint.h>
|
|
|
|
/**
|
|
* @brief Initialize the ADC sensor system
|
|
*
|
|
* @return 0 on success, negative error code on failure
|
|
*/
|
|
int adc_sensor_init(void);
|
|
|
|
/**
|
|
* @brief Get supply voltage reading in millivolts
|
|
*
|
|
* @return Voltage in millivolts (currently simulated: 12000mV)
|
|
*/
|
|
uint16_t adc_sensor_get_voltage_mv(void);
|
|
|
|
/**
|
|
* @brief Get motor current reading in milliamps
|
|
*
|
|
* @return Current in milliamps (currently simulated: 45mA)
|
|
*/
|
|
uint16_t adc_sensor_get_current_ma(void);
|
|
|
|
#endif /* ADC_SENSOR_H */
|