From eea87274a8ba724dce1c4dbac13fd0edccf05571 Mon Sep 17 00:00:00 2001 From: GitHub gen-configs Action Date: Mon, 19 Sep 2022 01:31:32 +0000 Subject: [PATCH] Auto-generated configs and docs --- .../can/auto_generated_can_category.cpp | 26 +++++++++++++++++++ .../drivers/can/auto_generated_can_category.h | 10 +++++++ 2 files changed, 36 insertions(+) create mode 100644 firmware/hw_layer/drivers/can/auto_generated_can_category.cpp create mode 100644 firmware/hw_layer/drivers/can/auto_generated_can_category.h diff --git a/firmware/hw_layer/drivers/can/auto_generated_can_category.cpp b/firmware/hw_layer/drivers/can/auto_generated_can_category.cpp new file mode 100644 index 0000000000..a84da873d9 --- /dev/null +++ b/firmware/hw_layer/drivers/can/auto_generated_can_category.cpp @@ -0,0 +1,26 @@ +#include "global.h" +#include "can_category.h" +// was generated automatically by rusEFI tool from can_category.h // by enum2string.jar tool on Mon Sep 19 01:30:13 UTC 2022 +// see also gen_config_and_enums.bat + + + +const char *getCanCategory(CanCategory value){ +switch(value) { +case CanCategory::DOWNSTREAM_FLASHING: + return "DOWNSTREAM_FLASHING"; +case CanCategory::LUA: + return "LUA"; +case CanCategory::NBC: + return "NBC"; +case CanCategory::OBD: + return "OBD"; +case CanCategory::SERIAL: + return "SERIAL"; +case CanCategory::VERBOSE: + return "VERBOSE"; +case CanCategory::WBO_SERVICE: + return "WBO_SERVICE"; + } + return NULL; +} diff --git a/firmware/hw_layer/drivers/can/auto_generated_can_category.h b/firmware/hw_layer/drivers/can/auto_generated_can_category.h new file mode 100644 index 0000000000..b5b887a136 --- /dev/null +++ b/firmware/hw_layer/drivers/can/auto_generated_can_category.h @@ -0,0 +1,10 @@ +// was generated automatically by rusEFI tool from can_category.h // by enum2string.jar tool on Mon Sep 19 01:30:13 UTC 2022 +// see also gen_config_and_enums.bat + + + +#include "can_category.h" +#pragma once +#if __cplusplus +const char *getCanCategory(CanCategory value); +#endif //__cplusplus