This repository has been archived on 2021-11-24. You can view files and clone it, but cannot push or open issues or pull requests.
fsfw_example_public/generators/objects/translateObjects.cpp
2021-04-27 17:22:34 +02:00

117 lines
3.7 KiB
C++

/**
* @brief Auto-generated object translation file. Contains 34 translations.
* Generated on: 2020-09-30 15:21:42
**/
#include "translateObjects.h"
const char *DUMMY1_STRING = "DUMMY1";
const char *DUMMY2_STRING = "DUMMY2";
const char *DUMMY3_STRING = "DUMMY3";
const char *DUMMY4_STRING = "DUMMY4";
const char *DUMMY5_STRING = "DUMMY5";
const char *DUMMY6_STRING = "DUMMY6";
const char *DUMMY7_STRING = "DUMMY7";
const char *DUMMY8_STRING = "DUMMY8";
const char *TIME_STAMPER_STRING = "TIME_STAMPER";
const char *SOFTWARE_STRING = "SOFTWARE";
const char *CCSDS_DISTRIBUTOR_STRING = "CCSDS_DISTRIBUTOR";
const char *PUS_DISTRIBUTOR_STRING = "PUS_DISTRIBUTOR";
const char *TEST_DEVICE_HANDLER_STRING = "TEST_DEVICE_HANDLER";
const char *TEST_ECHO_COM_IF_STRING = "TEST_ECHO_COM_IF";
const char *UDP_BRIDGE_STRING = "UDP_BRIDGE";
const char *UDP_POLLING_TASK_STRING = "UDP_POLLING_TASK";
const char *TM_FUNNEL_STRING = "TM_FUNNEL";
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_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_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 *DUMMY_CONTROLLER_STRING = "DUMMY_CONTROLLER";
const char *DUMMY_ASS_STRING = "DUMMY_ASS";
const char *NO_OBJECT_STRING = "NO_OBJECT";
const char* translateObject(object_id_t object){
switch((object&0xFFFFFFFF)){
case 0x01:
return DUMMY1_STRING;
case 0x02:
return DUMMY2_STRING;
case 0x03:
return DUMMY3_STRING;
case 0x04:
return DUMMY4_STRING;
case 0x05:
return DUMMY5_STRING;
case 0x06:
return DUMMY6_STRING;
case 0x07:
return DUMMY7_STRING;
case 0x08:
return DUMMY8_STRING;
case 0x09:
return TIME_STAMPER_STRING;
case 0x1:
return SOFTWARE_STRING;
case 0x10:
return CCSDS_DISTRIBUTOR_STRING;
case 0x11:
return PUS_DISTRIBUTOR_STRING;
case 0x4400AFFE:
return TEST_DEVICE_HANDLER_STRING;
case 0x4900AFFE:
return TEST_ECHO_COM_IF_STRING;
case 0x50000300:
return UDP_BRIDGE_STRING;
case 0x50000400:
return UDP_POLLING_TASK_STRING;
case 0x50000500:
return TM_FUNNEL_STRING;
case 0x53000001:
return PUS_SERVICE_1_VERIFICATION_STRING;
case 0x53000002:
return PUS_SERVICE_2_DEVICE_ACCESS_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 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 0xCAFEAFFE:
return DUMMY_CONTROLLER_STRING;
case 0xCAFECAFE:
return DUMMY_ASS_STRING;
case 0xFFFFFFFF:
return NO_OBJECT_STRING;
default:
return "UNKNOWN_OBJECT";
}
return 0;
}