From 6837ee641bf68395663b9d05d871c41bccf1a264 Mon Sep 17 00:00:00 2001 From: Robin Mueller Date: Mon, 17 May 2021 18:58:15 +0200 Subject: [PATCH] object update --- generators/mib_objects.csv | 60 ++++++++ generators/modgen | 2 +- generators/objects/translateObjects.cpp | 196 ++++++++++++++++++++++++ generators/obsw_mib.db | Bin 0 -> 8192 bytes 4 files changed, 257 insertions(+), 1 deletion(-) create mode 100644 generators/mib_objects.csv create mode 100644 generators/objects/translateObjects.cpp create mode 100644 generators/obsw_mib.db diff --git a/generators/mib_objects.csv b/generators/mib_objects.csv new file mode 100644 index 00000000..3e3e8cb6 --- /dev/null +++ b/generators/mib_objects.csv @@ -0,0 +1,60 @@ +0x00005060;P60DOCK_TEST_TASK +0x44001000;PCDU_HANDLER +0x44001001;SOLAR_ARRAY_DEPL_HANDLER +0x44001002;SYRLINKS_HK_HANDLER +0x47000001;GPIO_IF +0x49000001;ARDUINO_COM_IF +0x49000002;CSP_COM_IF +0x49000003;I2C_COM_IF +0x49000004;UART_COM_IF +0x49000005;SPI_COM_IF +0x51000300;PUS_SERVICE_3 +0x51000400;PUS_SERVICE_5 +0x51000500;PUS_SERVICE_6 +0x51000800;PUS_SERVICE_8 +0x51002300;PUS_SERVICE_23 +0x51020100;PUS_SERVICE_201 +0x52000002;TM_FUNNEL +0x53000000;FSFW_OBJECTS_START +0x53000001;PUS_SERVICE_1_VERIFICATION +0x53000002;PUS_SERVICE_2_DEVICE_ACCESS +0x53000003;PUS_SERVICE_3_HOUSEKEEPING +0x53000005;PUS_SERVICE_5_EVENT_REPORTING +0x53000008;PUS_SERVICE_8_FUNCTION_MGMT +0x53000009;PUS_SERVICE_9_TIME_MGMT +0x53000017;PUS_SERVICE_17_TEST +0x53000020;PUS_SERVICE_20_PARAMETERS +0x53000200;PUS_SERVICE_200_MODE_MGMT +0x53010000;HEALTH_TABLE +0x53010100;MODE_STORE +0x53030000;EVENT_MANAGER +0x53040000;INTERNAL_ERROR_REPORTER +0x534f0100;TC_STORE +0x534f0200;TM_STORE +0x534f0300;IPC_STORE +0x53500010;TIME_STAMPER +0x53ffffff;FSFW_OBJECTS_END +0x54000003;HEATER_HANDLER +0x54000004;RTD_IC3 +0x54000005;RTD_IC4 +0x54000006;RTD_IC5 +0x54000007;RTD_IC6 +0x54000008;RTD_IC7 +0x54000009;RTD_IC8 +0x5400000A;RTD_IC9 +0x5400000B;RTD_IC10 +0x5400000C;RTD_IC11 +0x5400000D;RTD_IC12 +0x5400000E;RTD_IC13 +0x5400000F;RTD_IC14 +0x54000010;SPI_TEST +0x5400001F;RTD_IC15 +0x5400002F;RTD_IC16 +0x5400003F;RTD_IC17 +0x5400004F;RTD_IC18 +0x54000050;RAD_SENSOR +0x5400AFFE;DUMMY_HANDLER +0x5400CAFE;DUMMY_INTERFACE +0x54123456;LIBGPIOD_TEST +0x54694269;TEST_TASK +0xFFFFFFFF;NO_OBJECT diff --git a/generators/modgen b/generators/modgen index 7717b36e..bf38f952 160000 --- a/generators/modgen +++ b/generators/modgen @@ -1 +1 @@ -Subproject commit 7717b36e07de4c45b6c8693eba8c7bdf812fea48 +Subproject commit bf38f952f18f18db858ce5a7a719da7742cfc611 diff --git a/generators/objects/translateObjects.cpp b/generators/objects/translateObjects.cpp new file mode 100644 index 00000000..9cf2fd59 --- /dev/null +++ b/generators/objects/translateObjects.cpp @@ -0,0 +1,196 @@ +/** + * @brief Auto-generated object translation file. + * @details + * Contains 60 translations. + * Generated on: 2021-05-17 18:57:35 + */ +#include "translateObjects.h" + +const char *P60DOCK_TEST_TASK_STRING = "P60DOCK_TEST_TASK"; +const char *PCDU_HANDLER_STRING = "PCDU_HANDLER"; +const char *SOLAR_ARRAY_DEPL_HANDLER_STRING = "SOLAR_ARRAY_DEPL_HANDLER"; +const char *SYRLINKS_HK_HANDLER_STRING = "SYRLINKS_HK_HANDLER"; +const char *GPIO_IF_STRING = "GPIO_IF"; +const char *ARDUINO_COM_IF_STRING = "ARDUINO_COM_IF"; +const char *CSP_COM_IF_STRING = "CSP_COM_IF"; +const char *I2C_COM_IF_STRING = "I2C_COM_IF"; +const char *UART_COM_IF_STRING = "UART_COM_IF"; +const char *SPI_COM_IF_STRING = "SPI_COM_IF"; +const char *PUS_SERVICE_3_STRING = "PUS_SERVICE_3"; +const char *PUS_SERVICE_5_STRING = "PUS_SERVICE_5"; +const char *PUS_SERVICE_6_STRING = "PUS_SERVICE_6"; +const char *PUS_SERVICE_8_STRING = "PUS_SERVICE_8"; +const char *PUS_SERVICE_23_STRING = "PUS_SERVICE_23"; +const char *PUS_SERVICE_201_STRING = "PUS_SERVICE_201"; +const char *TM_FUNNEL_STRING = "TM_FUNNEL"; +const char *FSFW_OBJECTS_START_STRING = "FSFW_OBJECTS_START"; +const char *PUS_SERVICE_1_VERIFICATION_STRING = "PUS_SERVICE_1_VERIFICATION"; +const char *PUS_SERVICE_2_DEVICE_ACCESS_STRING = "PUS_SERVICE_2_DEVICE_ACCESS"; +const char *PUS_SERVICE_3_HOUSEKEEPING_STRING = "PUS_SERVICE_3_HOUSEKEEPING"; +const char *PUS_SERVICE_5_EVENT_REPORTING_STRING = "PUS_SERVICE_5_EVENT_REPORTING"; +const char *PUS_SERVICE_8_FUNCTION_MGMT_STRING = "PUS_SERVICE_8_FUNCTION_MGMT"; +const char *PUS_SERVICE_9_TIME_MGMT_STRING = "PUS_SERVICE_9_TIME_MGMT"; +const char *PUS_SERVICE_17_TEST_STRING = "PUS_SERVICE_17_TEST"; +const char *PUS_SERVICE_20_PARAMETERS_STRING = "PUS_SERVICE_20_PARAMETERS"; +const char *PUS_SERVICE_200_MODE_MGMT_STRING = "PUS_SERVICE_200_MODE_MGMT"; +const char *HEALTH_TABLE_STRING = "HEALTH_TABLE"; +const char *MODE_STORE_STRING = "MODE_STORE"; +const char *EVENT_MANAGER_STRING = "EVENT_MANAGER"; +const char *INTERNAL_ERROR_REPORTER_STRING = "INTERNAL_ERROR_REPORTER"; +const char *TC_STORE_STRING = "TC_STORE"; +const char *TM_STORE_STRING = "TM_STORE"; +const char *IPC_STORE_STRING = "IPC_STORE"; +const char *TIME_STAMPER_STRING = "TIME_STAMPER"; +const char *FSFW_OBJECTS_END_STRING = "FSFW_OBJECTS_END"; +const char *HEATER_HANDLER_STRING = "HEATER_HANDLER"; +const char *RTD_IC3_STRING = "RTD_IC3"; +const char *RTD_IC4_STRING = "RTD_IC4"; +const char *RTD_IC5_STRING = "RTD_IC5"; +const char *RTD_IC6_STRING = "RTD_IC6"; +const char *RTD_IC7_STRING = "RTD_IC7"; +const char *RTD_IC8_STRING = "RTD_IC8"; +const char *RTD_IC9_STRING = "RTD_IC9"; +const char *RTD_IC10_STRING = "RTD_IC10"; +const char *RTD_IC11_STRING = "RTD_IC11"; +const char *RTD_IC12_STRING = "RTD_IC12"; +const char *RTD_IC13_STRING = "RTD_IC13"; +const char *RTD_IC14_STRING = "RTD_IC14"; +const char *SPI_TEST_STRING = "SPI_TEST"; +const char *RTD_IC15_STRING = "RTD_IC15"; +const char *RTD_IC16_STRING = "RTD_IC16"; +const char *RTD_IC17_STRING = "RTD_IC17"; +const char *RTD_IC18_STRING = "RTD_IC18"; +const char *RAD_SENSOR_STRING = "RAD_SENSOR"; +const char *DUMMY_HANDLER_STRING = "DUMMY_HANDLER"; +const char *DUMMY_INTERFACE_STRING = "DUMMY_INTERFACE"; +const char *LIBGPIOD_TEST_STRING = "LIBGPIOD_TEST"; +const char *TEST_TASK_STRING = "TEST_TASK"; +const char *NO_OBJECT_STRING = "NO_OBJECT"; + +const char* translateObject(object_id_t object) { + switch( (object & 0xFFFFFFFF) ) { + case 0x00005060: + return P60DOCK_TEST_TASK_STRING; + case 0x44001000: + return PCDU_HANDLER_STRING; + case 0x44001001: + return SOLAR_ARRAY_DEPL_HANDLER_STRING; + case 0x44001002: + return SYRLINKS_HK_HANDLER_STRING; + case 0x47000001: + return GPIO_IF_STRING; + case 0x49000001: + return ARDUINO_COM_IF_STRING; + case 0x49000002: + return CSP_COM_IF_STRING; + case 0x49000003: + return I2C_COM_IF_STRING; + case 0x49000004: + return UART_COM_IF_STRING; + case 0x49000005: + return SPI_COM_IF_STRING; + case 0x51000300: + return PUS_SERVICE_3_STRING; + case 0x51000400: + return PUS_SERVICE_5_STRING; + case 0x51000500: + return PUS_SERVICE_6_STRING; + case 0x51000800: + return PUS_SERVICE_8_STRING; + case 0x51002300: + return PUS_SERVICE_23_STRING; + case 0x51020100: + return PUS_SERVICE_201_STRING; + case 0x52000002: + return TM_FUNNEL_STRING; + case 0x53000000: + return FSFW_OBJECTS_START_STRING; + case 0x53000001: + return PUS_SERVICE_1_VERIFICATION_STRING; + case 0x53000002: + return PUS_SERVICE_2_DEVICE_ACCESS_STRING; + case 0x53000003: + return PUS_SERVICE_3_HOUSEKEEPING_STRING; + case 0x53000005: + return PUS_SERVICE_5_EVENT_REPORTING_STRING; + case 0x53000008: + return PUS_SERVICE_8_FUNCTION_MGMT_STRING; + case 0x53000009: + return PUS_SERVICE_9_TIME_MGMT_STRING; + case 0x53000017: + return PUS_SERVICE_17_TEST_STRING; + case 0x53000020: + return PUS_SERVICE_20_PARAMETERS_STRING; + case 0x53000200: + return PUS_SERVICE_200_MODE_MGMT_STRING; + case 0x53010000: + return HEALTH_TABLE_STRING; + case 0x53010100: + return MODE_STORE_STRING; + case 0x53030000: + return EVENT_MANAGER_STRING; + case 0x53040000: + return INTERNAL_ERROR_REPORTER_STRING; + case 0x534f0100: + return TC_STORE_STRING; + case 0x534f0200: + return TM_STORE_STRING; + case 0x534f0300: + return IPC_STORE_STRING; + case 0x53500010: + return TIME_STAMPER_STRING; + case 0x53ffffff: + return FSFW_OBJECTS_END_STRING; + case 0x54000003: + return HEATER_HANDLER_STRING; + case 0x54000004: + return RTD_IC3_STRING; + case 0x54000005: + return RTD_IC4_STRING; + case 0x54000006: + return RTD_IC5_STRING; + case 0x54000007: + return RTD_IC6_STRING; + case 0x54000008: + return RTD_IC7_STRING; + case 0x54000009: + return RTD_IC8_STRING; + case 0x5400000A: + return RTD_IC9_STRING; + case 0x5400000B: + return RTD_IC10_STRING; + case 0x5400000C: + return RTD_IC11_STRING; + case 0x5400000D: + return RTD_IC12_STRING; + case 0x5400000E: + return RTD_IC13_STRING; + case 0x5400000F: + return RTD_IC14_STRING; + case 0x54000010: + return SPI_TEST_STRING; + case 0x5400001F: + return RTD_IC15_STRING; + case 0x5400002F: + return RTD_IC16_STRING; + case 0x5400003F: + return RTD_IC17_STRING; + case 0x5400004F: + return RTD_IC18_STRING; + case 0x54000050: + return RAD_SENSOR_STRING; + case 0x5400AFFE: + return DUMMY_HANDLER_STRING; + case 0x5400CAFE: + return DUMMY_INTERFACE_STRING; + case 0x54123456: + return LIBGPIOD_TEST_STRING; + case 0x54694269: + return TEST_TASK_STRING; + case 0xFFFFFFFF: + return NO_OBJECT_STRING; + default: + return "UNKNOWN_OBJECT"; + } + return 0; +} diff --git a/generators/obsw_mib.db b/generators/obsw_mib.db new file mode 100644 index 0000000000000000000000000000000000000000..8729a9a05bf13d2ffa915f129beb257f04d84266 GIT binary patch literal 8192 zcmeHKOKjsr7*0xIiSsH8aoVQcx-8u$bh|r#<-sn3sXa+d;s;}=P$U?2p_LX`DnSvI zmdlDWS0n@n4j^&o!eviz-2)OQE}S?ZB*cL$694#-+FZCIqDH1w`XYpf2|dP+IVE(t2jphd7a<){Y%-rXzDva}FzX4U z4QXI9%aHq`p2pP#?}=I(R}#D{s%czKa9va~IPyI!T#YEFag^va5oK@^*Q1KpGq@S! zig+!98!;}6yBT~h#!=%c;H_l62uJv!v6F!Z5!`P)oq_ui+-r0)a4&+pjdlj^MzG%4 z&cJ#EYmF-zSc_nFZ42Peyg+r#|Kn2@Z{($?fZYXFJr3K@AHEc)%4fteS1$v<#d#ee zB%{Ex3G)MNdxSQh1P=13tJ*PA5wbi3D3=m(69}FGPACWkc8p6YTn0SWZ*2g6gX>k`O#npHj`>ZP(<5LN%*v zz=TWSI6`2+G#JDA0Z%#GE#RIDdm&z_H}fIKbl)-vgP$xM#U9zg_G(H9%B+xim|~ki zjsE5e2-SE*B=^!nxfe!tYZ)Zba(O+2v}C|ShxwG9CdiCrB-BsK`fNCJjKFdo#-%$V zNJn$2o|ft?@+orBaz^b2i1A#kro}27yEC6m2=PGKc_LGRl2$6rB%w{%Fo^HBAI}Ub zr=>F6C)65R2Id7z7eOh{r$?E@L9%Gjd<+ykSFi)n6o?P3)*;jNB_Q|}ONJeQy-ZI6 zz*-$>o^+rTNJxfOTQy*LdUy!>S+?J*rbtM7x@)&pNs$oHG^w}BDe@nas>=e95K3(j zu0-b-E5o&!HC!nHb9v5aGgx;_EkBy+q*{uRFc&h6V)$OntUUq@EIpn`#?+iyaDRv< zYdj1rT%)vJScc5+0Z_x{BES$;4c5dh^AG6Mawa|-Pm;^Sm4`s`>|7%I?i5poDa8k{ r|K2pwtuBBL&arqX literal 0 HcmV?d00001