only:isHwQcMode API
This commit is contained in:
parent
df87937e30
commit
31c91dff41
|
@ -21,7 +21,14 @@ extern PinRepository pinRepository;
|
||||||
* quite different from bench testing user functionality: QC direct should never be engaged on a real vehicle
|
* quite different from bench testing user functionality: QC direct should never be engaged on a real vehicle
|
||||||
* Once QC direct control mode is activated the only way out is to reboot the unit!
|
* Once QC direct control mode is activated the only way out is to reboot the unit!
|
||||||
*/
|
*/
|
||||||
|
// that one could be set by rusEFI console
|
||||||
bool qcDirectPinControlMode = false;
|
bool qcDirectPinControlMode = false;
|
||||||
|
// todo: how is this flag different from the one above? shall we merge?
|
||||||
|
/*board public API*/bool withHwQcActivity = false;
|
||||||
|
|
||||||
|
bool isHwQcMode() {
|
||||||
|
return withHwQcActivity || qcDirectPinControlMode;
|
||||||
|
}
|
||||||
|
|
||||||
#if EFI_CAN_SUPPORT
|
#if EFI_CAN_SUPPORT
|
||||||
|
|
||||||
|
@ -244,8 +251,6 @@ static void resetPinStats(bench_mode_e benchModePinIdx) {
|
||||||
#endif // EFI_SIMULATOR
|
#endif // EFI_SIMULATOR
|
||||||
}
|
}
|
||||||
|
|
||||||
/*board public API*/bool withHwQcActivity = false;
|
|
||||||
|
|
||||||
void processCanQcBenchTest(const CANRxFrame& frame) {
|
void processCanQcBenchTest(const CANRxFrame& frame) {
|
||||||
if (CAN_EID(frame) != (int)bench_test_packet_ids_e::IO_CONTROL) {
|
if (CAN_EID(frame) != (int)bench_test_packet_ids_e::IO_CONTROL) {
|
||||||
return;
|
return;
|
||||||
|
|
|
@ -13,6 +13,8 @@ void printSpiState();
|
||||||
void printConfiguration();
|
void printConfiguration();
|
||||||
void scheduleStopEngine();
|
void scheduleStopEngine();
|
||||||
|
|
||||||
|
bool isHwQcMode();
|
||||||
|
|
||||||
void setEngineTypeAndSave(int value);
|
void setEngineTypeAndSave(int value);
|
||||||
void setEngineType(int value, bool isWriteToFlash = true);
|
void setEngineType(int value, bool isWriteToFlash = true);
|
||||||
void readPin(const char *pinName);
|
void readPin(const char *pinName);
|
||||||
|
|
Loading…
Reference in New Issue