Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: PinDetect libmDot mbed-rtos mbed
globals.cpp File Reference
global variables needed by other files. More...
Go to the source code of this file.
Variables | |
| char * | c_time_string |
| relatine time and date string | |
| char | time_string [10] = "00:00:00" |
| relatine time only string | |
| time_t | epoch |
| time in seconds since epoch | |
| int32 | iVref |
| voltage across reference resistor | |
| int32 | iVtherm |
| Voltages across thermistor. | |
| uint32 | iRes |
| Resistance of Thermistor. | |
| int32 | iTemp |
| Temperature value (x 100) in degrees C. | |
| int32 | iCurrent0 |
| current in AMUX 0 | |
| int32 | iCurrent1 |
| current in AMUX 1 | |
| int32 | iCurrent2 |
| current in AMUX 2 | |
| int32 | iCurrent3 |
| current in AMUX 3 | |
| uint8 | lampTestStatus |
| lamp test status | |
| uint16 | lampTestTime |
| running lamp test time | |
| uint16 | lampTestTimeSet |
| reset lamp test time | |
| uint8 | runStatus |
| 0 - not running control mode, 1 = running in control mode | |
| uint8 | pendantPresent |
| pendant present flag after lamp test | |
| uint8 | checkPendant |
| check pendant state inside lamp test | |
| uint8 | pendantTestStatus |
| pendant test status | |
| uint16 | pendantTestTime |
| running pendant test time | |
| uint16 | pendantTestTimeSet |
| reset pendant test time | |
| uint8 | phaseUV |
| phase under voltage bit 0-AB, 1-AC, 2-BC | |
| uint8 | tempFailed |
| temperature above set point | |
| uint8 | v5Failed |
| 5 volt failuer | |
| uint8 | v24Failed |
| 24 volt failuer | |
| uint8 | HVState |
| high voltage state | |
| uint32 | HVStateMsg |
| high voltage state message flags | |
| uint8 | engHVSwitchStatus |
| HV engaged switch NO and NC. | |
| float | ampsPerVolt |
| voltage to current translation | |
| uint16 | tempSampleRate |
| running temperature sample rate | |
| uint16 | oneSecond |
| running second timer | |
| uint16 | engagedSwitchTimeOn |
| running engaged switch time | |
| uint16 | engagedSwitchTimeOff |
| running engaged switch time | |
| uint16 | ignitionTestTime |
| running ignition test time | |
| uint16 | ignitionTestTimeSet |
| reset ignition test time | |
| uint16 | softStartTestTime |
| running soft start test time | |
| uint16 | softStartTestTimeSet |
| reset soft start test time | |
| uint16 | currentSampleTime |
| running current sample time | |
| uint16 | currentSampleTimeSet |
| reset current sample test time | |
| uint16 | currentStableTestTime |
| running current stable test time | |
| uint16 | currentStableTestTimeSet |
| reset current stable test time | |
| uint16 | currentStartTestTime |
| running current start test time | |
| uint16 | currentStartTestTimeSet |
| reset current start test time | |
| uint16 | currentMinTestTime |
| running current start test time | |
| uint16 | currentMinTestTimeSet |
| reset current start test time | |
| uint16 | currentRampRate |
| running current ramp rate | |
| uint16 | currentRampRateTerminate |
| running current ramp rate for termination | |
| uint16 | currentRampRateFoldback |
| running current ramp rate for foldback | |
| uint16 | currentRampRateEncoder |
| running current ramp rate for encoder | |
| uint16 | currentRampRateSet |
| reset current ramp rate | |
| uint8 | currentRampMode |
| current ramp direction | |
| uint16 | encoderSampleRate |
| running encoder sample rate | |
| uint16 | encoderSampleRateSet |
| reset encoder sample rate | |
| uint16 | bridgeOCFlagTime |
| bridge_oc_flag valid time | |
| uint16 | outputOCFlagTime |
| output_oc_flag valid time | |
| uint16 | utilOCFlagTime |
| util_oc_flag valid time | |
| uint16 | eStopTime |
| E_STOP valid time. | |
| uint8 | eStopSeen |
| E_STOP seen. | |
| uint16 | phaseABFlagTime |
| phase_ab_uv valid time | |
| uint16 | phaseBCFlagTime |
| phase_bc_uv valid time | |
| uint16 | phaseACFlagTime |
| phase_ac_uv valid time | |
| uint16 | contactorTestTime |
| output_oc_flag valid time | |
| uint8 | waitForPowerCycle |
| wait for power cycle after a failure | |
| float | analogTemp |
| analog temperature value | |
| int16 | encoderValue |
| last sampled encoder value | |
| int16 | encoderDiff |
| last sampled encoder value differnce from current | |
| uint8 | encoderChanged |
| encoder value changed since last sample | |
| uint8 | pendantFailed |
| pendant failure | |
| uint16 | flashCtrlSys |
| CTRL SYS flash rate. | |
| uint8 | currentBelowMin |
| current below minimum in normal operation | |
| uint8 | outputOCSeen |
| output_oc_flag seen | |
| uint8 | lampTestInitFail |
| initla tests fail before lamptest | |
| uint16 | initFailType |
| initial test failure type | |
| float | currentStableMin |
| current stable min | |
| float | currentStableMax |
| current stable max | |
| uint8 | utilOCSeen |
| util_oc flag change seen | |
| uint16 | currentIndex |
| current source index | |
| uint8 | currentOffMaxIndex |
| current off max parameter index | |
| uint8 | tempSetIndex |
| temperature set index | |
| struct parameterInfo | parameters [] |
| array of structures of valid parameters | |
Detailed Description
global variables needed by other files.
Definition in file globals.cpp.
Variable Documentation
| float ampsPerVolt |
voltage to current translation
Definition at line 51 of file globals.cpp.
| float analogTemp |
analog temperature value
Definition at line 86 of file globals.cpp.
| uint16 bridgeOCFlagTime |
bridge_oc_flag valid time
Definition at line 76 of file globals.cpp.
| char* c_time_string |
relatine time and date string
Definition at line 24 of file globals.cpp.
| uint8 checkPendant |
check pendant state inside lamp test
Definition at line 40 of file globals.cpp.
| uint16 contactorTestTime |
output_oc_flag valid time
Definition at line 84 of file globals.cpp.
| uint8 currentBelowMin |
current below minimum in normal operation
Definition at line 92 of file globals.cpp.
| uint16 currentIndex |
current source index
Definition at line 99 of file globals.cpp.
| uint16 currentMinTestTime |
running current start test time
Definition at line 66 of file globals.cpp.
| uint16 currentMinTestTimeSet |
reset current start test time
Definition at line 67 of file globals.cpp.
| uint8 currentOffMaxIndex |
current off max parameter index
Definition at line 100 of file globals.cpp.
| uint8 currentRampMode |
current ramp direction
Definition at line 73 of file globals.cpp.
| uint16 currentRampRate |
running current ramp rate
Definition at line 68 of file globals.cpp.
| uint16 currentRampRateEncoder |
running current ramp rate for encoder
Definition at line 71 of file globals.cpp.
| uint16 currentRampRateFoldback |
running current ramp rate for foldback
Definition at line 70 of file globals.cpp.
| uint16 currentRampRateSet |
reset current ramp rate
Definition at line 72 of file globals.cpp.
| uint16 currentRampRateTerminate |
running current ramp rate for termination
Definition at line 69 of file globals.cpp.
| uint16 currentSampleTime |
running current sample time
Definition at line 60 of file globals.cpp.
| uint16 currentSampleTimeSet |
reset current sample test time
Definition at line 61 of file globals.cpp.
| float currentStableMax |
current stable max
Definition at line 97 of file globals.cpp.
| float currentStableMin |
current stable min
Definition at line 96 of file globals.cpp.
| uint16 currentStableTestTime |
running current stable test time
Definition at line 62 of file globals.cpp.
| uint16 currentStableTestTimeSet |
reset current stable test time
Definition at line 63 of file globals.cpp.
| uint16 currentStartTestTime |
running current start test time
Definition at line 64 of file globals.cpp.
| uint16 currentStartTestTimeSet |
reset current start test time
Definition at line 65 of file globals.cpp.
| uint8 encoderChanged |
encoder value changed since last sample
Definition at line 89 of file globals.cpp.
| int16 encoderDiff |
last sampled encoder value differnce from current
Definition at line 88 of file globals.cpp.
| uint16 encoderSampleRate |
running encoder sample rate
Definition at line 74 of file globals.cpp.
| uint16 encoderSampleRateSet |
reset encoder sample rate
Definition at line 75 of file globals.cpp.
| int16 encoderValue |
last sampled encoder value
Definition at line 87 of file globals.cpp.
| uint16 engagedSwitchTimeOff |
running engaged switch time
Definition at line 55 of file globals.cpp.
| uint16 engagedSwitchTimeOn |
running engaged switch time
Definition at line 54 of file globals.cpp.
| uint8 engHVSwitchStatus |
HV engaged switch NO and NC.
Definition at line 50 of file globals.cpp.
| time_t epoch |
time in seconds since epoch
Definition at line 26 of file globals.cpp.
| uint8 eStopSeen |
E_STOP seen.
Definition at line 80 of file globals.cpp.
| uint16 eStopTime |
E_STOP valid time.
Definition at line 79 of file globals.cpp.
| uint16 flashCtrlSys |
CTRL SYS flash rate.
Definition at line 91 of file globals.cpp.
| uint8 HVState |
high voltage state
Definition at line 48 of file globals.cpp.
| uint32 HVStateMsg |
high voltage state message flags
Definition at line 49 of file globals.cpp.
| int32 iCurrent0 |
current in AMUX 0
Definition at line 31 of file globals.cpp.
| int32 iCurrent1 |
current in AMUX 1
Definition at line 32 of file globals.cpp.
| int32 iCurrent2 |
current in AMUX 2
Definition at line 33 of file globals.cpp.
| int32 iCurrent3 |
current in AMUX 3
Definition at line 34 of file globals.cpp.
| uint16 ignitionTestTime |
running ignition test time
Definition at line 56 of file globals.cpp.
| uint16 ignitionTestTimeSet |
reset ignition test time
Definition at line 57 of file globals.cpp.
| uint16 initFailType |
initial test failure type
Definition at line 95 of file globals.cpp.
| uint32 iRes |
Resistance of Thermistor.
Definition at line 29 of file globals.cpp.
| int32 iTemp |
Temperature value (x 100) in degrees C.
Definition at line 30 of file globals.cpp.
| int32 iVref |
voltage across reference resistor
Definition at line 27 of file globals.cpp.
| int32 iVtherm |
Voltages across thermistor.
Definition at line 28 of file globals.cpp.
| uint8 lampTestInitFail |
initla tests fail before lamptest
Definition at line 94 of file globals.cpp.
| uint8 lampTestStatus |
lamp test status
Definition at line 35 of file globals.cpp.
| uint16 lampTestTime |
running lamp test time
Definition at line 36 of file globals.cpp.
| uint16 lampTestTimeSet |
reset lamp test time
Definition at line 37 of file globals.cpp.
| uint16 oneSecond |
running second timer
Definition at line 53 of file globals.cpp.
| uint16 outputOCFlagTime |
output_oc_flag valid time
Definition at line 77 of file globals.cpp.
| uint8 outputOCSeen |
output_oc_flag seen
Definition at line 93 of file globals.cpp.
| struct parameterInfo parameters[] |
array of structures of valid parameters
Definition at line 108 of file globals.cpp.
| uint8 pendantFailed |
pendant failure
Definition at line 90 of file globals.cpp.
| uint8 pendantPresent |
pendant present flag after lamp test
Definition at line 39 of file globals.cpp.
| uint8 pendantTestStatus |
pendant test status
Definition at line 41 of file globals.cpp.
| uint16 pendantTestTime |
running pendant test time
Definition at line 42 of file globals.cpp.
| uint16 pendantTestTimeSet |
reset pendant test time
Definition at line 43 of file globals.cpp.
| uint16 phaseABFlagTime |
phase_ab_uv valid time
Definition at line 81 of file globals.cpp.
| uint16 phaseACFlagTime |
phase_ac_uv valid time
Definition at line 83 of file globals.cpp.
| uint16 phaseBCFlagTime |
phase_bc_uv valid time
Definition at line 82 of file globals.cpp.
| uint8 phaseUV |
phase under voltage bit 0-AB, 1-AC, 2-BC
Definition at line 44 of file globals.cpp.
| uint8 runStatus |
0 - not running control mode, 1 = running in control mode
Definition at line 38 of file globals.cpp.
| uint16 softStartTestTime |
running soft start test time
Definition at line 58 of file globals.cpp.
| uint16 softStartTestTimeSet |
reset soft start test time
Definition at line 59 of file globals.cpp.
| uint8 tempFailed |
temperature above set point
Definition at line 45 of file globals.cpp.
| uint16 tempSampleRate |
running temperature sample rate
Definition at line 52 of file globals.cpp.
| uint8 tempSetIndex |
temperature set index
Definition at line 101 of file globals.cpp.
| char time_string[10] = "00:00:00" |
relatine time only string
Definition at line 25 of file globals.cpp.
| uint16 utilOCFlagTime |
util_oc_flag valid time
Definition at line 78 of file globals.cpp.
| uint8 utilOCSeen |
util_oc flag change seen
Definition at line 98 of file globals.cpp.
| uint8 v24Failed |
24 volt failuer
Definition at line 47 of file globals.cpp.
| uint8 v5Failed |
5 volt failuer
Definition at line 46 of file globals.cpp.
| uint8 waitForPowerCycle |
wait for power cycle after a failure
Definition at line 85 of file globals.cpp.
Generated on Sat Jul 16 2022 13:04:30 by
1.7.2