- #ifndef _VBUS_SENSOR_H__
- #define _VBUS_SENSOR_H__
- typedef struct {
- float voltage;
- float voltage_filted;
- int avg_count;
- }vbus_t;
- void vbus_sensor_init(void);
- void vbus_sample_voltage(void);
- float vbus_get_filted_voltage(void);
- #endif /* _VBUS_SENSOR_H__ */
|