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 25 of file Imd.c.
25 {
27 return IMD->IMDStatus;
28}
◆ 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 40 of file Imd.c.
40 {
42 return IMD->IsoResistanceCorrected;
43}
◆ 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 30 of file Imd.c.
30 {
32 return IMD->IsoResistanceNeg;
33}
◆ 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 35 of file Imd.c.
35 {
37 return IMD->IsoResistancePos;
38}
◆ 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 4 of file Imd.c.
4 {
7
9 IMD->IsoResistanceNeg = 0;
10 IMD->IsoResistancePos = 0;
11 IMD->IsoResistanceCorrected = 0;
12}
void initExternalSystem(ExternalSystem *external, const char *name, int hz, ExternalType type)
void updateIMD(void *IMDValues)
Updates the IMD values.
◆ updateIMD()
void updateIMD |
( |
void * |
IMDValues | ) |
|
Updates the IMD values.
- Parameters
-
IMDValues | Pointer to the IMD values that need to be updated. |
Definition at line 14 of file Imd.c.
14 {
15
16
17
18
19
20
21
22 return;
23 }