Files
IronOS/source/Core/BSP/BSP_Power.h
2022-05-23 21:42:56 +10:00

31 lines
628 B
C

#include "stdint.h"
/*
* BSP_Power.h -- Board Support for Power control
*
* These functions are hooks used to allow for power control
*
*/
#ifndef BSP_POWER_H_
#define BSP_POWER_H_
#ifdef __cplusplus
extern "C" {
#endif
// Called periodically in the movement handling thread
// Can be used to check any details for the power system
void power_check();
// Returns the tip resistance in x10 ohms, so 7.5 = 75; 14=140 etc
uint8_t getTipResitanceX10();
// Called when device is idle to allow measuring tip resistance
void startMeasureTipResistance();
void FinishMeasureTipResistance();
#ifdef __cplusplus
}
#endif
#endif