1#include "../../../Inc/Systems/External/Imd.h"
2#include "../../../Inc/Systems/ExternalSystem.h"
3#include "../../../Inc/Utils/Updateable.h"
4#include "../../../Inc/Utils/Common.h"
11 IMD->IsoResistanceNeg = 0;
12 IMD->IsoResistancePos = 0;
13 IMD->IsoResistanceCorrected = 0;
29 return IMD->IMDStatus;
34 return IMD->IsoResistanceNeg;
39 return IMD->IsoResistancePos;
44 return IMD->IsoResistanceCorrected;
void initExternalSystem(ExternalSystem *external, const char *name, int hz, ExternalType type, int(*updateExternal)(ExternalSystem *external), int(*check_heartbeat)(void *self), void *child)
int updateIMD(Updateable *updateable)
Updates the IMD values.
float getIsoResistancePos(void *imdValues)
Retrieves the positive isolation resistance value from the IMD values.
void initIMD(IMDValues *IMD, int hz)
Initializes the IMD with the specified frequency.
float getIsoResistanceNeg(void *imdValues)
Retrieves the negative isolation resistance value from the given IMD values.
float getIsoResistanceCorrected(void *imdValues)
Retrieves the positive isolation resistance value from the IMD values.
int getIMDStatus(void *imdValues, IMDStatus status)
Gets the status of the IMD.