Go to the source code of this file.
◆ getIMDStatus()
int getIMDStatus |
( |
void * |
IMDValues, |
|
|
IMDStatus |
status |
|
) |
| |
Gets the status of the IMD.
FIXME: Update this function to use Updateable ptr
- Parameters
-
IMDValues | A pointer to the structure IMDValues. |
status | An IMDStatus variable to store the retrieved status. |
- Returns
- An integer representing the status of IMD.
Definition at line 27 of file Imd.c.
27 {
29 return IMD->IMDStatus;
30}
◆ getIsoResistanceCorrected()
float getIsoResistanceCorrected |
( |
void * |
IMDValues | ) |
|
Retrieves the positive isolation resistance value from the IMD values.
- Parameters
-
IMDValues | Pointer to the structure containing IMD values. |
- Returns
- The corrected isolation resistance value.
Definition at line 42 of file Imd.c.
42 {
44 return IMD->IsoResistanceCorrected;
45}
◆ getIsoResistanceNeg()
float getIsoResistanceNeg |
( |
void * |
IMDValues | ) |
|
Retrieves the negative isolation resistance value from the given IMD values.
- Parameters
-
IMDValues | Pointer to the structure containing IMD values. |
- Returns
- The negative isolation resistance value.
Definition at line 32 of file Imd.c.
32 {
34 return IMD->IsoResistanceNeg;
35}
◆ getIsoResistancePos()
float getIsoResistancePos |
( |
void * |
IMDValues | ) |
|
Retrieves the positive isolation resistance value from the IMD values.
- Parameters
-
IMDValues | Pointer to the structure containing IMD values. |
- Returns
- The positive isolation resistance value.
Definition at line 37 of file Imd.c.
37 {
39 return IMD->IsoResistancePos;
40}
◆ initIMD()
Initializes the IMD with the specified frequency.
- Parameters
-
IMD | Pointer to the IMDValues structure to initialize. |
hz | Frequency in hertz at which the IMD should operate. |
Definition at line 6 of file Imd.c.
6 {
9
11 IMD->IsoResistanceNeg = 0;
12 IMD->IsoResistancePos = 0;
13 IMD->IsoResistanceCorrected = 0;
14}
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.
◆ updateIMD()
Updates the IMD values.
- Parameters
-
updateable | Pointer to the Updateable structure to update. |
Definition at line 16 of file Imd.c.
16 {
17
18
19
20
21
22
23
25}