diff options
| author | Roy Ben-Shabat <Roy@Twine-s.com> | 2017-11-16 16:17:28 +0200 |
|---|---|---|
| committer | Roy Ben-Shabat <Roy@Twine-s.com> | 2017-11-16 16:17:28 +0200 |
| commit | 4be586d903da2b0dbba23f4978e14ad7d51edcbf (patch) | |
| tree | 1149098a8fba457a46435474093eb4829242b146 | |
| parent | e50cbadc53a3ed5ace454264016331b6e8b3b9aa (diff) | |
| download | Tango-4be586d903da2b0dbba23f4978e14ad7d51edcbf.tar.gz Tango-4be586d903da2b0dbba23f4978e14ad7d51edcbf.zip | |
Added PMR support for code composer.
26 files changed, 1637 insertions, 35 deletions
diff --git a/Software/Code_Composer/twine_usblib_demo/.cproject b/Software/Code_Composer/twine_usblib_demo/.cproject index b4e2ad753..7b159a061 100644 --- a/Software/Code_Composer/twine_usblib_demo/.cproject +++ b/Software/Code_Composer/twine_usblib_demo/.cproject @@ -17,7 +17,7 @@ </extensions> </storageModule> <storageModule moduleId="cdtBuildSystem" version="4.0.0"> - <configuration artifactExtension="out" artifactName="${ProjName}" buildProperties="" cleanCommand="${CG_CLEAN_CMD}" description="" id="com.ti.ccstudio.buildDefinitions.TMS470.Debug.522352697" name="Debug" parent="com.ti.ccstudio.buildDefinitions.TMS470.Debug" postbuildStep=""> + <configuration artifactExtension="out" artifactName="${ProjName}" buildProperties="" cleanCommand="${CG_CLEAN_CMD}" description="" id="com.ti.ccstudio.buildDefinitions.TMS470.Debug.522352697" name="Debug" parent="com.ti.ccstudio.buildDefinitions.TMS470.Debug" postbuildStep="" prebuildStep="..\..\..\Visual_Studio\Build\Debug\proto-tc.exe -i ..\..\..\PMR\Messages -o ..\PMR -l C"> <folderInfo id="com.ti.ccstudio.buildDefinitions.TMS470.Debug.522352697." name="/" resourcePath=""> <toolChain id="com.ti.ccstudio.buildDefinitions.TMS470_16.3.exe.DebugToolchain.679743571" name="TI Build Tools" superClass="com.ti.ccstudio.buildDefinitions.TMS470_16.3.exe.DebugToolchain" targetTool="com.ti.ccstudio.buildDefinitions.TMS470_16.3.exe.linkerDebug.1077953619"> <option id="com.ti.ccstudio.buildDefinitions.core.OPT_TAGS.901522327" superClass="com.ti.ccstudio.buildDefinitions.core.OPT_TAGS" valueType="stringList"> @@ -36,7 +36,7 @@ <option id="com.ti.ccstudio.buildDefinitions.core.OPT_CODEGEN_VERSION.1350684432" name="Compiler version" superClass="com.ti.ccstudio.buildDefinitions.core.OPT_CODEGEN_VERSION" value="16.3.0.STS" valueType="string"/> <targetPlatform id="com.ti.ccstudio.buildDefinitions.TMS470_16.3.exe.targetPlatformDebug.585216114" name="Platform" superClass="com.ti.ccstudio.buildDefinitions.TMS470_16.3.exe.targetPlatformDebug"/> <builder buildPath="${BuildDirectory}" id="com.ti.ccstudio.buildDefinitions.TMS470_16.3.exe.builderDebug.2104001979" keepEnvironmentInBuildfile="false" name="GNU Make" parallelBuildOn="true" parallelizationNumber="optimal" superClass="com.ti.ccstudio.buildDefinitions.TMS470_16.3.exe.builderDebug"/> - <tool id="com.ti.ccstudio.buildDefinitions.TMS470_16.3.exe.compilerDebug.1956762681" name="ARM Compiler" superClass="com.ti.ccstudio.buildDefinitions.TMS470_16.3.exe.compilerDebug"> + <tool commandLinePattern="${command} ${flags} ${inputs}" id="com.ti.ccstudio.buildDefinitions.TMS470_16.3.exe.compilerDebug.1956762681" name="ARM Compiler" superClass="com.ti.ccstudio.buildDefinitions.TMS470_16.3.exe.compilerDebug"> <option id="com.ti.ccstudio.buildDefinitions.TMS470_16.3.compilerID.SILICON_VERSION.1710155872" name="Target processor version (--silicon_version, -mv)" superClass="com.ti.ccstudio.buildDefinitions.TMS470_16.3.compilerID.SILICON_VERSION" useByScannerDiscovery="false" value="com.ti.ccstudio.buildDefinitions.TMS470_16.3.compilerID.SILICON_VERSION.7M4" valueType="enumerated"/> <option id="com.ti.ccstudio.buildDefinitions.TMS470_16.3.compilerID.CODE_STATE.907455529" name="Designate code state, 16-bit (thumb) or 32-bit (--code_state)" superClass="com.ti.ccstudio.buildDefinitions.TMS470_16.3.compilerID.CODE_STATE" useByScannerDiscovery="false" value="com.ti.ccstudio.buildDefinitions.TMS470_16.3.compilerID.CODE_STATE.16" valueType="enumerated"/> <option id="com.ti.ccstudio.buildDefinitions.TMS470_16.3.compilerID.ABI.1911567495" name="Application binary interface. (--abi)" superClass="com.ti.ccstudio.buildDefinitions.TMS470_16.3.compilerID.ABI" useByScannerDiscovery="false" value="com.ti.ccstudio.buildDefinitions.TMS470_16.3.compilerID.ABI.eabi" valueType="enumerated"/> @@ -50,13 +50,18 @@ <listOptionValue builtIn="false" value="TARGET_IS_TM4C129_RA0"/> </option> <option id="com.ti.ccstudio.buildDefinitions.TMS470_16.3.compilerID.LITTLE_ENDIAN.572182054" name="Little endian code [See 'General' page to edit] (--little_endian, -me)" superClass="com.ti.ccstudio.buildDefinitions.TMS470_16.3.compilerID.LITTLE_ENDIAN" useByScannerDiscovery="false" value="true" valueType="boolean"/> - <option id="com.ti.ccstudio.buildDefinitions.TMS470_16.3.compilerID.INCLUDE_PATH.411074002" name="Add dir to #include search path (--include_path, -I)" superClass="com.ti.ccstudio.buildDefinitions.TMS470_16.3.compilerID.INCLUDE_PATH" valueType="includePath"> + <option id="com.ti.ccstudio.buildDefinitions.TMS470_16.3.compilerID.INCLUDE_PATH.411074002" name="Add dir to #include search path (--include_path, -I)" superClass="com.ti.ccstudio.buildDefinitions.TMS470_16.3.compilerID.INCLUDE_PATH" useByScannerDiscovery="false" valueType="includePath"> <listOptionValue builtIn="false" value=""${workspace_loc:/twine_usblib}""/> <listOptionValue builtIn="false" value=""${workspace_loc:/grlib}""/> <listOptionValue builtIn="false" value=""${workspace_loc:/twine_graphicslib}""/> <listOptionValue builtIn="false" value=""C:/ti/TivaWare_C_Series-2.1.4.178/examples/boards/dk-tm4c129x""/> <listOptionValue builtIn="false" value=""C:/ti/TivaWare_C_Series-2.1.4.178""/> <listOptionValue builtIn="false" value=""${CG_TOOL_ROOT}/include""/> + <listOptionValue builtIn="false" value=""${workspace_loc:/twine_usblib_demo/PMR/Common}""/> + <listOptionValue builtIn="false" value=""${workspace_loc:/twine_usblib_demo/PMR/Jobs}""/> + <listOptionValue builtIn="false" value=""${workspace_loc:/twine_usblib_demo/PMR/Stubs}""/> + <listOptionValue builtIn="false" value=""${workspace_loc:/twine_usblib_demo/protobuf}""/> + <listOptionValue builtIn="false" value=""${workspace_loc:/twine_usblib_demo}""/> </option> <option id="com.ti.ccstudio.buildDefinitions.TMS470_16.3.compilerID.DEBUGGING_MODEL.321246444" name="Debugging model" superClass="com.ti.ccstudio.buildDefinitions.TMS470_16.3.compilerID.DEBUGGING_MODEL" useByScannerDiscovery="false" value="com.ti.ccstudio.buildDefinitions.TMS470_16.3.compilerID.DEBUGGING_MODEL.SYMDEBUG__DWARF" valueType="enumerated"/> <option id="com.ti.ccstudio.buildDefinitions.TMS470_16.3.compilerID.DISPLAY_ERROR_NUMBER.309364075" name="Emit diagnostic identifier numbers (--display_error_number, -pden)" superClass="com.ti.ccstudio.buildDefinitions.TMS470_16.3.compilerID.DISPLAY_ERROR_NUMBER" useByScannerDiscovery="false" value="true" valueType="boolean"/> @@ -145,32 +150,32 @@ <listOptionValue builtIn="false" value="PRODUCT_MACRO_IMPORTS={"com.ti.rtsc.TIRTOSCC13XX_CC26XX":["${COM_TI_RTSC_TIRTOSCC13XX_CC26XX_INCLUDE_PATH}","${COM_TI_RTSC_TIRTOSCC13XX_CC26XX_LIBRARY_PATH}","${COM_TI_RTSC_TIRTOSCC13XX_CC26XX_LIBRARIES}","${COM_TI_RTSC_TIRTOSCC13XX_CC26XX_SYMBOLS}"],"com.ti.rtsc.TIRTOStivac":["${COM_TI_RTSC_TIRTOSTIVAC_INCLUDE_PATH}","${COM_TI_RTSC_TIRTOSTIVAC_LIBRARY_PATH}","${COM_TI_RTSC_TIRTOSTIVAC_LIBRARIES}","${COM_TI_RTSC_TIRTOSTIVAC_SYMBOLS}"]}"/> <listOptionValue builtIn="false" value="RTSC_MBS_VERSION=7.0.0"/> </option> - <option id="com.ti.ccstudio.buildDefinitions.core.OPT_CODEGEN_VERSION.1025016981" superClass="com.ti.ccstudio.buildDefinitions.core.OPT_CODEGEN_VERSION" value="16.3.0.STS" valueType="string"/> + <option id="com.ti.ccstudio.buildDefinitions.core.OPT_CODEGEN_VERSION.1025016981" name="Compiler version" superClass="com.ti.ccstudio.buildDefinitions.core.OPT_CODEGEN_VERSION" value="16.3.0.STS" valueType="string"/> <targetPlatform id="com.ti.ccstudio.buildDefinitions.TMS470_16.3.exe.targetPlatformRelease.532303804" name="Platform" superClass="com.ti.ccstudio.buildDefinitions.TMS470_16.3.exe.targetPlatformRelease"/> - <builder buildPath="${BuildDirectory}" id="com.ti.ccstudio.buildDefinitions.TMS470_16.3.exe.builderRelease.635894068" name="GNU Make.Release" parallelBuildOn="true" parallelizationNumber="optimal" superClass="com.ti.ccstudio.buildDefinitions.TMS470_16.3.exe.builderRelease"/> + <builder buildPath="${BuildDirectory}" id="com.ti.ccstudio.buildDefinitions.TMS470_16.3.exe.builderRelease.635894068" keepEnvironmentInBuildfile="false" name="GNU Make" parallelBuildOn="true" parallelizationNumber="optimal" superClass="com.ti.ccstudio.buildDefinitions.TMS470_16.3.exe.builderRelease"/> <tool id="com.ti.ccstudio.buildDefinitions.TMS470_16.3.exe.compilerRelease.1569639959" name="ARM Compiler" superClass="com.ti.ccstudio.buildDefinitions.TMS470_16.3.exe.compilerRelease"> - <option id="com.ti.ccstudio.buildDefinitions.TMS470_16.3.compilerID.SILICON_VERSION.1800735728" superClass="com.ti.ccstudio.buildDefinitions.TMS470_16.3.compilerID.SILICON_VERSION" useByScannerDiscovery="false" value="com.ti.ccstudio.buildDefinitions.TMS470_16.3.compilerID.SILICON_VERSION.7M4" valueType="enumerated"/> - <option id="com.ti.ccstudio.buildDefinitions.TMS470_16.3.compilerID.CODE_STATE.285056924" superClass="com.ti.ccstudio.buildDefinitions.TMS470_16.3.compilerID.CODE_STATE" useByScannerDiscovery="false" value="com.ti.ccstudio.buildDefinitions.TMS470_16.3.compilerID.CODE_STATE.16" valueType="enumerated"/> - <option id="com.ti.ccstudio.buildDefinitions.TMS470_16.3.compilerID.ABI.394434958" superClass="com.ti.ccstudio.buildDefinitions.TMS470_16.3.compilerID.ABI" useByScannerDiscovery="false" value="com.ti.ccstudio.buildDefinitions.TMS470_16.3.compilerID.ABI.eabi" valueType="enumerated"/> - <option id="com.ti.ccstudio.buildDefinitions.TMS470_16.3.compilerID.FLOAT_SUPPORT.919878509" superClass="com.ti.ccstudio.buildDefinitions.TMS470_16.3.compilerID.FLOAT_SUPPORT" useByScannerDiscovery="false" value="com.ti.ccstudio.buildDefinitions.TMS470_16.3.compilerID.FLOAT_SUPPORT.FPv4SPD16" valueType="enumerated"/> - <option id="com.ti.ccstudio.buildDefinitions.TMS470_16.3.compilerID.GCC.1393044104" superClass="com.ti.ccstudio.buildDefinitions.TMS470_16.3.compilerID.GCC" useByScannerDiscovery="false" value="true" valueType="boolean"/> - <option id="com.ti.ccstudio.buildDefinitions.TMS470_16.3.compilerID.DEFINE.990997817" superClass="com.ti.ccstudio.buildDefinitions.TMS470_16.3.compilerID.DEFINE" valueType="definedSymbols"> + <option id="com.ti.ccstudio.buildDefinitions.TMS470_16.3.compilerID.SILICON_VERSION.1800735728" name="Target processor version (--silicon_version, -mv)" superClass="com.ti.ccstudio.buildDefinitions.TMS470_16.3.compilerID.SILICON_VERSION" useByScannerDiscovery="false" value="com.ti.ccstudio.buildDefinitions.TMS470_16.3.compilerID.SILICON_VERSION.7M4" valueType="enumerated"/> + <option id="com.ti.ccstudio.buildDefinitions.TMS470_16.3.compilerID.CODE_STATE.285056924" name="Designate code state, 16-bit (thumb) or 32-bit (--code_state)" superClass="com.ti.ccstudio.buildDefinitions.TMS470_16.3.compilerID.CODE_STATE" useByScannerDiscovery="false" value="com.ti.ccstudio.buildDefinitions.TMS470_16.3.compilerID.CODE_STATE.16" valueType="enumerated"/> + <option id="com.ti.ccstudio.buildDefinitions.TMS470_16.3.compilerID.ABI.394434958" name="Application binary interface. (--abi)" superClass="com.ti.ccstudio.buildDefinitions.TMS470_16.3.compilerID.ABI" useByScannerDiscovery="false" value="com.ti.ccstudio.buildDefinitions.TMS470_16.3.compilerID.ABI.eabi" valueType="enumerated"/> + <option id="com.ti.ccstudio.buildDefinitions.TMS470_16.3.compilerID.FLOAT_SUPPORT.919878509" name="Specify floating point support (--float_support)" superClass="com.ti.ccstudio.buildDefinitions.TMS470_16.3.compilerID.FLOAT_SUPPORT" useByScannerDiscovery="false" value="com.ti.ccstudio.buildDefinitions.TMS470_16.3.compilerID.FLOAT_SUPPORT.FPv4SPD16" valueType="enumerated"/> + <option id="com.ti.ccstudio.buildDefinitions.TMS470_16.3.compilerID.GCC.1393044104" name="Enable support for GCC extensions (DEPRECATED) (--gcc)" superClass="com.ti.ccstudio.buildDefinitions.TMS470_16.3.compilerID.GCC" useByScannerDiscovery="false" value="true" valueType="boolean"/> + <option id="com.ti.ccstudio.buildDefinitions.TMS470_16.3.compilerID.DEFINE.990997817" name="Pre-define NAME (--define, -D)" superClass="com.ti.ccstudio.buildDefinitions.TMS470_16.3.compilerID.DEFINE" valueType="definedSymbols"> <listOptionValue builtIn="false" value="${COM_TI_RTSC_TIRTOSTIVAC_SYMBOLS}"/> <listOptionValue builtIn="false" value="${COM_TI_RTSC_TIRTOSCC13XX_CC26XX_SYMBOLS}"/> <listOptionValue builtIn="false" value="ccs="ccs""/> <listOptionValue builtIn="false" value="PART_TM4C129XNCZAD"/> </option> - <option id="com.ti.ccstudio.buildDefinitions.TMS470_16.3.compilerID.LITTLE_ENDIAN.1286317778" superClass="com.ti.ccstudio.buildDefinitions.TMS470_16.3.compilerID.LITTLE_ENDIAN" useByScannerDiscovery="false" value="true" valueType="boolean"/> - <option id="com.ti.ccstudio.buildDefinitions.TMS470_16.3.compilerID.INCLUDE_PATH.728960146" superClass="com.ti.ccstudio.buildDefinitions.TMS470_16.3.compilerID.INCLUDE_PATH" valueType="includePath"> + <option id="com.ti.ccstudio.buildDefinitions.TMS470_16.3.compilerID.LITTLE_ENDIAN.1286317778" name="Little endian code [See 'General' page to edit] (--little_endian, -me)" superClass="com.ti.ccstudio.buildDefinitions.TMS470_16.3.compilerID.LITTLE_ENDIAN" useByScannerDiscovery="false" value="true" valueType="boolean"/> + <option id="com.ti.ccstudio.buildDefinitions.TMS470_16.3.compilerID.INCLUDE_PATH.728960146" name="Add dir to #include search path (--include_path, -I)" superClass="com.ti.ccstudio.buildDefinitions.TMS470_16.3.compilerID.INCLUDE_PATH" valueType="includePath"> <listOptionValue builtIn="false" value=""${COM_TI_RTSC_TIRTOSTIVAC_INCLUDE_PATH}""/> <listOptionValue builtIn="false" value=""${COM_TI_RTSC_TIRTOSCC13XX_CC26XX_INCLUDE_PATH}""/> <listOptionValue builtIn="false" value=""${PROJECT_ROOT}""/> <listOptionValue builtIn="false" value=""${COM_TI_RTSC_TIRTOSCC13XX_CC26XX__BIOS}/../../../tirtos_tivac_2_16_00_08/products/bios_6_45_01_29/packages/ti/sysbios/knl""/> <listOptionValue builtIn="false" value=""${CG_TOOL_ROOT}/include""/> </option> - <option id="com.ti.ccstudio.buildDefinitions.TMS470_16.3.compilerID.DISPLAY_ERROR_NUMBER.831457275" superClass="com.ti.ccstudio.buildDefinitions.TMS470_16.3.compilerID.DISPLAY_ERROR_NUMBER" useByScannerDiscovery="false" value="true" valueType="boolean"/> - <option id="com.ti.ccstudio.buildDefinitions.TMS470_16.3.compilerID.DIAG_WRAP.609910051" superClass="com.ti.ccstudio.buildDefinitions.TMS470_16.3.compilerID.DIAG_WRAP" useByScannerDiscovery="false" value="com.ti.ccstudio.buildDefinitions.TMS470_16.3.compilerID.DIAG_WRAP.off" valueType="enumerated"/> - <option id="com.ti.ccstudio.buildDefinitions.TMS470_16.3.compilerID.DIAG_WARNING.830116865" superClass="com.ti.ccstudio.buildDefinitions.TMS470_16.3.compilerID.DIAG_WARNING" useByScannerDiscovery="false" valueType="stringList"> + <option id="com.ti.ccstudio.buildDefinitions.TMS470_16.3.compilerID.DISPLAY_ERROR_NUMBER.831457275" name="Emit diagnostic identifier numbers (--display_error_number, -pden)" superClass="com.ti.ccstudio.buildDefinitions.TMS470_16.3.compilerID.DISPLAY_ERROR_NUMBER" useByScannerDiscovery="false" value="true" valueType="boolean"/> + <option id="com.ti.ccstudio.buildDefinitions.TMS470_16.3.compilerID.DIAG_WRAP.609910051" name="Wrap diagnostic messages (--diag_wrap)" superClass="com.ti.ccstudio.buildDefinitions.TMS470_16.3.compilerID.DIAG_WRAP" useByScannerDiscovery="false" value="com.ti.ccstudio.buildDefinitions.TMS470_16.3.compilerID.DIAG_WRAP.off" valueType="enumerated"/> + <option id="com.ti.ccstudio.buildDefinitions.TMS470_16.3.compilerID.DIAG_WARNING.830116865" name="Treat diagnostic <id> as warning (--diag_warning, -pdsw)" superClass="com.ti.ccstudio.buildDefinitions.TMS470_16.3.compilerID.DIAG_WARNING" useByScannerDiscovery="false" valueType="stringList"> <listOptionValue builtIn="false" value="225"/> </option> <inputType id="com.ti.ccstudio.buildDefinitions.TMS470_16.3.compiler.inputType__C_SRCS.1769001670" name="C Sources" superClass="com.ti.ccstudio.buildDefinitions.TMS470_16.3.compiler.inputType__C_SRCS"/> @@ -179,34 +184,34 @@ <inputType id="com.ti.ccstudio.buildDefinitions.TMS470_16.3.compiler.inputType__ASM2_SRCS.2071266453" name="Assembly Sources" superClass="com.ti.ccstudio.buildDefinitions.TMS470_16.3.compiler.inputType__ASM2_SRCS"/> </tool> <tool id="com.ti.ccstudio.buildDefinitions.TMS470_16.3.exe.linkerRelease.656009818" name="ARM Linker" superClass="com.ti.ccstudio.buildDefinitions.TMS470_16.3.exe.linkerRelease"> - <option id="com.ti.ccstudio.buildDefinitions.TMS470_16.3.linkerID.MAP_FILE.1242670691" superClass="com.ti.ccstudio.buildDefinitions.TMS470_16.3.linkerID.MAP_FILE" useByScannerDiscovery="false" value=""${ProjName}.map"" valueType="string"/> - <option id="com.ti.ccstudio.buildDefinitions.TMS470_16.3.linkerID.STACK_SIZE.400174233" superClass="com.ti.ccstudio.buildDefinitions.TMS470_16.3.linkerID.STACK_SIZE" useByScannerDiscovery="false" value="512" valueType="string"/> - <option id="com.ti.ccstudio.buildDefinitions.TMS470_16.3.linkerID.HEAP_SIZE.208444456" superClass="com.ti.ccstudio.buildDefinitions.TMS470_16.3.linkerID.HEAP_SIZE" useByScannerDiscovery="false" value="0" valueType="string"/> - <option id="com.ti.ccstudio.buildDefinitions.TMS470_16.3.linkerID.OUTPUT_FILE.512369812" superClass="com.ti.ccstudio.buildDefinitions.TMS470_16.3.linkerID.OUTPUT_FILE" useByScannerDiscovery="false" value=""${ProjName}.out"" valueType="string"/> - <option id="com.ti.ccstudio.buildDefinitions.TMS470_16.3.linkerID.LIBRARY.2116096543" superClass="com.ti.ccstudio.buildDefinitions.TMS470_16.3.linkerID.LIBRARY" useByScannerDiscovery="false" valueType="libs"> + <option id="com.ti.ccstudio.buildDefinitions.TMS470_16.3.linkerID.MAP_FILE.1242670691" name="Link information (map) listed into <file> (--map_file, -m)" superClass="com.ti.ccstudio.buildDefinitions.TMS470_16.3.linkerID.MAP_FILE" useByScannerDiscovery="false" value=""${ProjName}.map"" valueType="string"/> + <option id="com.ti.ccstudio.buildDefinitions.TMS470_16.3.linkerID.STACK_SIZE.400174233" name="Set C system stack size (--stack_size, -stack)" superClass="com.ti.ccstudio.buildDefinitions.TMS470_16.3.linkerID.STACK_SIZE" useByScannerDiscovery="false" value="512" valueType="string"/> + <option id="com.ti.ccstudio.buildDefinitions.TMS470_16.3.linkerID.HEAP_SIZE.208444456" name="Heap size for C/C++ dynamic memory allocation (--heap_size, -heap)" superClass="com.ti.ccstudio.buildDefinitions.TMS470_16.3.linkerID.HEAP_SIZE" useByScannerDiscovery="false" value="0" valueType="string"/> + <option id="com.ti.ccstudio.buildDefinitions.TMS470_16.3.linkerID.OUTPUT_FILE.512369812" name="Specify output file name (--output_file, -o)" superClass="com.ti.ccstudio.buildDefinitions.TMS470_16.3.linkerID.OUTPUT_FILE" useByScannerDiscovery="false" value=""${ProjName}.out"" valueType="string"/> + <option id="com.ti.ccstudio.buildDefinitions.TMS470_16.3.linkerID.LIBRARY.2116096543" name="Include library file or command file as input (--library, -l)" superClass="com.ti.ccstudio.buildDefinitions.TMS470_16.3.linkerID.LIBRARY" useByScannerDiscovery="false" valueType="libs"> <listOptionValue builtIn="false" value="${COM_TI_RTSC_TIRTOSTIVAC_LIBRARIES}"/> <listOptionValue builtIn="false" value="${COM_TI_RTSC_TIRTOSCC13XX_CC26XX_LIBRARIES}"/> <listOptionValue builtIn="false" value="libc.a"/> </option> - <option id="com.ti.ccstudio.buildDefinitions.TMS470_16.3.linkerID.SEARCH_PATH.1843246465" superClass="com.ti.ccstudio.buildDefinitions.TMS470_16.3.linkerID.SEARCH_PATH" valueType="libPaths"> + <option id="com.ti.ccstudio.buildDefinitions.TMS470_16.3.linkerID.SEARCH_PATH.1843246465" name="Add <dir> to library search path (--search_path, -i)" superClass="com.ti.ccstudio.buildDefinitions.TMS470_16.3.linkerID.SEARCH_PATH" valueType="libPaths"> <listOptionValue builtIn="false" value=""${COM_TI_RTSC_TIRTOSTIVAC_LIBRARY_PATH}""/> <listOptionValue builtIn="false" value=""${COM_TI_RTSC_TIRTOSCC13XX_CC26XX_LIBRARY_PATH}""/> <listOptionValue builtIn="false" value=""${CG_TOOL_ROOT}/lib""/> <listOptionValue builtIn="false" value=""${CG_TOOL_ROOT}/include""/> </option> - <option id="com.ti.ccstudio.buildDefinitions.TMS470_16.3.linkerID.DISPLAY_ERROR_NUMBER.1367884189" superClass="com.ti.ccstudio.buildDefinitions.TMS470_16.3.linkerID.DISPLAY_ERROR_NUMBER" useByScannerDiscovery="false" value="true" valueType="boolean"/> - <option id="com.ti.ccstudio.buildDefinitions.TMS470_16.3.linkerID.DIAG_WRAP.1387539244" superClass="com.ti.ccstudio.buildDefinitions.TMS470_16.3.linkerID.DIAG_WRAP" useByScannerDiscovery="false" value="com.ti.ccstudio.buildDefinitions.TMS470_16.3.linkerID.DIAG_WRAP.off" valueType="enumerated"/> - <option id="com.ti.ccstudio.buildDefinitions.TMS470_16.3.linkerID.XML_LINK_INFO.241265994" superClass="com.ti.ccstudio.buildDefinitions.TMS470_16.3.linkerID.XML_LINK_INFO" useByScannerDiscovery="false" value=""${ProjName}_linkInfo.xml"" valueType="string"/> + <option id="com.ti.ccstudio.buildDefinitions.TMS470_16.3.linkerID.DISPLAY_ERROR_NUMBER.1367884189" name="Emit diagnostic identifier numbers (--display_error_number)" superClass="com.ti.ccstudio.buildDefinitions.TMS470_16.3.linkerID.DISPLAY_ERROR_NUMBER" useByScannerDiscovery="false" value="true" valueType="boolean"/> + <option id="com.ti.ccstudio.buildDefinitions.TMS470_16.3.linkerID.DIAG_WRAP.1387539244" name="Wrap diagnostic messages (--diag_wrap)" superClass="com.ti.ccstudio.buildDefinitions.TMS470_16.3.linkerID.DIAG_WRAP" useByScannerDiscovery="false" value="com.ti.ccstudio.buildDefinitions.TMS470_16.3.linkerID.DIAG_WRAP.off" valueType="enumerated"/> + <option id="com.ti.ccstudio.buildDefinitions.TMS470_16.3.linkerID.XML_LINK_INFO.241265994" name="Detailed link information data-base into <file> (--xml_link_info, -xml_link_info)" superClass="com.ti.ccstudio.buildDefinitions.TMS470_16.3.linkerID.XML_LINK_INFO" useByScannerDiscovery="false" value=""${ProjName}_linkInfo.xml"" valueType="string"/> <inputType id="com.ti.ccstudio.buildDefinitions.TMS470_16.3.exeLinker.inputType__CMD_SRCS.837781825" name="Linker Command Files" superClass="com.ti.ccstudio.buildDefinitions.TMS470_16.3.exeLinker.inputType__CMD_SRCS"/> <inputType id="com.ti.ccstudio.buildDefinitions.TMS470_16.3.exeLinker.inputType__CMD2_SRCS.770475684" name="Linker Command Files" superClass="com.ti.ccstudio.buildDefinitions.TMS470_16.3.exeLinker.inputType__CMD2_SRCS"/> <inputType id="com.ti.ccstudio.buildDefinitions.TMS470_16.3.exeLinker.inputType__GEN_CMDS.1523096356" name="Generated Linker Command Files" superClass="com.ti.ccstudio.buildDefinitions.TMS470_16.3.exeLinker.inputType__GEN_CMDS"/> </tool> <tool id="com.ti.ccstudio.buildDefinitions.TMS470_16.3.hex.1525023855" name="ARM Hex Utility" superClass="com.ti.ccstudio.buildDefinitions.TMS470_16.3.hex"/> <tool id="com.ti.rtsc.buildDefinitions.XDC_3.16.tool.1753519114" name="XDCtools" superClass="com.ti.rtsc.buildDefinitions.XDC_3.16.tool"> - <option id="com.ti.rtsc.buildDefinitions.XDC_3.16.tool.CODEGEN_TOOL_DIR.1287626405" superClass="com.ti.rtsc.buildDefinitions.XDC_3.16.tool.CODEGEN_TOOL_DIR" value=""${CG_TOOL_ROOT}"" valueType="string"/> - <option id="com.ti.rtsc.buildDefinitions.XDC_3.16.tool.TARGET.963665735" superClass="com.ti.rtsc.buildDefinitions.XDC_3.16.tool.TARGET" value="ti.targets.arm.elf.M4F" valueType="string"/> - <option id="com.ti.rtsc.buildDefinitions.XDC_3.16.tool.BUILD_PROFILE.2105479182" superClass="com.ti.rtsc.buildDefinitions.XDC_3.16.tool.BUILD_PROFILE" value="debug" valueType="string"/> - <option id="com.ti.rtsc.buildDefinitions.XDC_3.16.tool.XDC_PATH.1052803618" superClass="com.ti.rtsc.buildDefinitions.XDC_3.16.tool.XDC_PATH" useByScannerDiscovery="false" valueType="stringList"> + <option id="com.ti.rtsc.buildDefinitions.XDC_3.16.tool.CODEGEN_TOOL_DIR.1287626405" name="Compiler tools directory (-c)" superClass="com.ti.rtsc.buildDefinitions.XDC_3.16.tool.CODEGEN_TOOL_DIR" value=""${CG_TOOL_ROOT}"" valueType="string"/> + <option id="com.ti.rtsc.buildDefinitions.XDC_3.16.tool.TARGET.963665735" name="Target (-t)" superClass="com.ti.rtsc.buildDefinitions.XDC_3.16.tool.TARGET" value="ti.targets.arm.elf.M4F" valueType="string"/> + <option id="com.ti.rtsc.buildDefinitions.XDC_3.16.tool.BUILD_PROFILE.2105479182" name="Build-profile (-r)" superClass="com.ti.rtsc.buildDefinitions.XDC_3.16.tool.BUILD_PROFILE" value="debug" valueType="string"/> + <option id="com.ti.rtsc.buildDefinitions.XDC_3.16.tool.XDC_PATH.1052803618" name="Package repositories (--xdcpath)" superClass="com.ti.rtsc.buildDefinitions.XDC_3.16.tool.XDC_PATH" useByScannerDiscovery="false" valueType="stringList"> <listOptionValue builtIn="false" value="${TARGET_CONTENT_BASE}"/> </option> </tool> @@ -221,7 +226,6 @@ <storageModule moduleId="cdtBuildSystem" version="4.0.0"> <project id="twine_usblib_demo.com.ti.ccstudio.buildDefinitions.TMS470.ProjectType.432341726" name="ARM" projectType="com.ti.ccstudio.buildDefinitions.TMS470.ProjectType"/> </storageModule> - <storageModule moduleId="scannerConfiguration"/> <storageModule moduleId="org.eclipse.cdt.core.language.mapping"> <project-mappings> <content-type-mapping configuration="" content-type="org.eclipse.cdt.core.asmSource" language="com.ti.ccstudio.core.TIASMLanguage"/> @@ -231,5 +235,14 @@ <content-type-mapping configuration="" content-type="org.eclipse.cdt.core.cxxSource" language="com.ti.ccstudio.core.TIGPPLanguage"/> </project-mappings> </storageModule> - <storageModule moduleId="refreshScope"/> + <storageModule moduleId="refreshScope" versionNumber="2"> + <configuration configurationName="Debug"> + <resource resourceType="PROJECT" workspacePath="/twine_usblib_demo"/> + </configuration> + <configuration configurationName="Release"> + <resource resourceType="PROJECT" workspacePath="/twine_usblib_demo"/> + </configuration> + </storageModule> + <storageModule moduleId="org.eclipse.cdt.internal.ui.text.commentOwnerProjectMappings"/> + <storageModule moduleId="scannerConfiguration"/> </cproject> diff --git a/Software/Code_Composer/twine_usblib_demo/PMR/Common/MessageContainer.pb-c.c b/Software/Code_Composer/twine_usblib_demo/PMR/Common/MessageContainer.pb-c.c new file mode 100644 index 000000000..c89b466dc --- /dev/null +++ b/Software/Code_Composer/twine_usblib_demo/PMR/Common/MessageContainer.pb-c.c @@ -0,0 +1,144 @@ +/* Generated by the protocol buffer compiler. DO NOT EDIT! */ +/* Generated from: MessageContainer.proto */ + +/* Do not generate deprecated warnings for self */ +#ifndef PROTOBUF_C__NO_DEPRECATED +#define PROTOBUF_C__NO_DEPRECATED +#endif + +#include "MessageContainer.pb-c.h" +void tango__pmr__common__message_container__init + (Tango__PMR__Common__MessageContainer *message) +{ + static const Tango__PMR__Common__MessageContainer init_value = TANGO__PMR__COMMON__MESSAGE_CONTAINER__INIT; + *message = init_value; +} +size_t tango__pmr__common__message_container__get_packed_size + (const Tango__PMR__Common__MessageContainer *message) +{ + assert(message->base.descriptor == &tango__pmr__common__message_container__descriptor); + return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); +} +size_t tango__pmr__common__message_container__pack + (const Tango__PMR__Common__MessageContainer *message, + uint8_t *out) +{ + assert(message->base.descriptor == &tango__pmr__common__message_container__descriptor); + return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); +} +size_t tango__pmr__common__message_container__pack_to_buffer + (const Tango__PMR__Common__MessageContainer *message, + ProtobufCBuffer *buffer) +{ + assert(message->base.descriptor == &tango__pmr__common__message_container__descriptor); + return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); +} +Tango__PMR__Common__MessageContainer * + tango__pmr__common__message_container__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data) +{ + return (Tango__PMR__Common__MessageContainer *) + protobuf_c_message_unpack (&tango__pmr__common__message_container__descriptor, + allocator, len, data); +} +void tango__pmr__common__message_container__free_unpacked + (Tango__PMR__Common__MessageContainer *message, + ProtobufCAllocator *allocator) +{ + if(!message) + return; + assert(message->base.descriptor == &tango__pmr__common__message_container__descriptor); + protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); +} +static const ProtobufCFieldDescriptor tango__pmr__common__message_container__field_descriptors[5] = +{ + { + "Type", + 1, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_ENUM, + offsetof(Tango__PMR__Common__MessageContainer, has_type), + offsetof(Tango__PMR__Common__MessageContainer, type), + &tango__pmr__common__message_type__descriptor, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "Token", + 2, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_STRING, + 0, /* quantifier_offset */ + offsetof(Tango__PMR__Common__MessageContainer, token), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "Continuous", + 3, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_BOOL, + offsetof(Tango__PMR__Common__MessageContainer, has_continuous), + offsetof(Tango__PMR__Common__MessageContainer, continuous), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "Completed", + 4, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_BOOL, + offsetof(Tango__PMR__Common__MessageContainer, has_completed), + offsetof(Tango__PMR__Common__MessageContainer, completed), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "Data", + 5, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_BYTES, + offsetof(Tango__PMR__Common__MessageContainer, has_data), + offsetof(Tango__PMR__Common__MessageContainer, data), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, +}; +static const unsigned tango__pmr__common__message_container__field_indices_by_name[] = { + 3, /* field[3] = Completed */ + 2, /* field[2] = Continuous */ + 4, /* field[4] = Data */ + 1, /* field[1] = Token */ + 0, /* field[0] = Type */ +}; +static const ProtobufCIntRange tango__pmr__common__message_container__number_ranges[1 + 1] = +{ + { 1, 0 }, + { 0, 5 } +}; +const ProtobufCMessageDescriptor tango__pmr__common__message_container__descriptor = +{ + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "Tango.PMR.Common.MessageContainer", + "MessageContainer", + "Tango__PMR__Common__MessageContainer", + "Tango.PMR.Common", + sizeof(Tango__PMR__Common__MessageContainer), + 5, + tango__pmr__common__message_container__field_descriptors, + tango__pmr__common__message_container__field_indices_by_name, + 1, tango__pmr__common__message_container__number_ranges, + (ProtobufCMessageInit) tango__pmr__common__message_container__init, + NULL,NULL,NULL /* reserved[123] */ +}; diff --git a/Software/Code_Composer/twine_usblib_demo/PMR/Common/MessageContainer.pb-c.h b/Software/Code_Composer/twine_usblib_demo/PMR/Common/MessageContainer.pb-c.h new file mode 100644 index 000000000..edc29ee79 --- /dev/null +++ b/Software/Code_Composer/twine_usblib_demo/PMR/Common/MessageContainer.pb-c.h @@ -0,0 +1,80 @@ +/* Generated by the protocol buffer compiler. DO NOT EDIT! */ +/* Generated from: MessageContainer.proto */ + +#ifndef PROTOBUF_C_MessageContainer_2eproto__INCLUDED +#define PROTOBUF_C_MessageContainer_2eproto__INCLUDED + +#include <protobuf-c/protobuf-c.h> + +PROTOBUF_C__BEGIN_DECLS + +#if PROTOBUF_C_VERSION_NUMBER < 1003000 +# error This file was generated by a newer version of protoc-c which is incompatible with your libprotobuf-c headers. Please update your headers. +#elif 1003000 < PROTOBUF_C_MIN_COMPILER_VERSION +# error This file was generated by an older version of protoc-c which is incompatible with your libprotobuf-c headers. Please regenerate this file with a newer version of protoc-c. +#endif + +#include "MessageType.pb-c.h" + +typedef struct _Tango__PMR__Common__MessageContainer Tango__PMR__Common__MessageContainer; + + +/* --- enums --- */ + + +/* --- messages --- */ + +struct _Tango__PMR__Common__MessageContainer +{ + ProtobufCMessage base; + protobuf_c_boolean has_type; + Tango__PMR__Common__MessageType type; + char *token; + protobuf_c_boolean has_continuous; + protobuf_c_boolean continuous; + protobuf_c_boolean has_completed; + protobuf_c_boolean completed; + protobuf_c_boolean has_data; + ProtobufCBinaryData data; +}; +#define TANGO__PMR__COMMON__MESSAGE_CONTAINER__INIT \ + { PROTOBUF_C_MESSAGE_INIT (&tango__pmr__common__message_container__descriptor) \ + , 0, TANGO__PMR__COMMON__MESSAGE_TYPE__RGB, NULL, 0, 0, 0, 0, 0, {0,NULL} } + + +/* Tango__PMR__Common__MessageContainer methods */ +void tango__pmr__common__message_container__init + (Tango__PMR__Common__MessageContainer *message); +size_t tango__pmr__common__message_container__get_packed_size + (const Tango__PMR__Common__MessageContainer *message); +size_t tango__pmr__common__message_container__pack + (const Tango__PMR__Common__MessageContainer *message, + uint8_t *out); +size_t tango__pmr__common__message_container__pack_to_buffer + (const Tango__PMR__Common__MessageContainer *message, + ProtobufCBuffer *buffer); +Tango__PMR__Common__MessageContainer * + tango__pmr__common__message_container__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data); +void tango__pmr__common__message_container__free_unpacked + (Tango__PMR__Common__MessageContainer *message, + ProtobufCAllocator *allocator); +/* --- per-message closures --- */ + +typedef void (*Tango__PMR__Common__MessageContainer_Closure) + (const Tango__PMR__Common__MessageContainer *message, + void *closure_data); + +/* --- services --- */ + + +/* --- descriptors --- */ + +extern const ProtobufCMessageDescriptor tango__pmr__common__message_container__descriptor; + +PROTOBUF_C__END_DECLS + + +#endif /* PROTOBUF_C_MessageContainer_2eproto__INCLUDED */ diff --git a/Software/Code_Composer/twine_usblib_demo/PMR/Common/MessageType.pb-c.c b/Software/Code_Composer/twine_usblib_demo/PMR/Common/MessageType.pb-c.c new file mode 100644 index 000000000..f8d5e5ad2 --- /dev/null +++ b/Software/Code_Composer/twine_usblib_demo/PMR/Common/MessageType.pb-c.c @@ -0,0 +1,47 @@ +/* Generated by the protocol buffer compiler. DO NOT EDIT! */ +/* Generated from: MessageType.proto */ + +/* Do not generate deprecated warnings for self */ +#ifndef PROTOBUF_C__NO_DEPRECATED +#define PROTOBUF_C__NO_DEPRECATED +#endif + +#include "MessageType.pb-c.h" +static const ProtobufCEnumValue tango__pmr__common__message_type__enum_values_by_number[7] = +{ + { "RGB", "TANGO__PMR__COMMON__MESSAGE_TYPE__RGB", 0 }, + { "Job", "TANGO__PMR__COMMON__MESSAGE_TYPE__Job", 1 }, + { "Segment", "TANGO__PMR__COMMON__MESSAGE_TYPE__Segment", 2 }, + { "CalculateRequest", "TANGO__PMR__COMMON__MESSAGE_TYPE__CalculateRequest", 3 }, + { "CalculateResponse", "TANGO__PMR__COMMON__MESSAGE_TYPE__CalculateResponse", 4 }, + { "ProgressRequest", "TANGO__PMR__COMMON__MESSAGE_TYPE__ProgressRequest", 5 }, + { "ProgressResponse", "TANGO__PMR__COMMON__MESSAGE_TYPE__ProgressResponse", 6 }, +}; +static const ProtobufCIntRange tango__pmr__common__message_type__value_ranges[] = { +{0, 0},{0, 7} +}; +static const ProtobufCEnumValueIndex tango__pmr__common__message_type__enum_values_by_name[7] = +{ + { "CalculateRequest", 3 }, + { "CalculateResponse", 4 }, + { "Job", 1 }, + { "ProgressRequest", 5 }, + { "ProgressResponse", 6 }, + { "RGB", 0 }, + { "Segment", 2 }, +}; +const ProtobufCEnumDescriptor tango__pmr__common__message_type__descriptor = +{ + PROTOBUF_C__ENUM_DESCRIPTOR_MAGIC, + "Tango.PMR.Common.MessageType", + "MessageType", + "Tango__PMR__Common__MessageType", + "Tango.PMR.Common", + 7, + tango__pmr__common__message_type__enum_values_by_number, + 7, + tango__pmr__common__message_type__enum_values_by_name, + 1, + tango__pmr__common__message_type__value_ranges, + NULL,NULL,NULL,NULL /* reserved[1234] */ +}; diff --git a/Software/Code_Composer/twine_usblib_demo/PMR/Common/MessageType.pb-c.h b/Software/Code_Composer/twine_usblib_demo/PMR/Common/MessageType.pb-c.h new file mode 100644 index 000000000..9ceaacec7 --- /dev/null +++ b/Software/Code_Composer/twine_usblib_demo/PMR/Common/MessageType.pb-c.h @@ -0,0 +1,48 @@ +/* Generated by the protocol buffer compiler. DO NOT EDIT! */ +/* Generated from: MessageType.proto */ + +#ifndef PROTOBUF_C_MessageType_2eproto__INCLUDED +#define PROTOBUF_C_MessageType_2eproto__INCLUDED + +#include <protobuf-c/protobuf-c.h> + +PROTOBUF_C__BEGIN_DECLS + +#if PROTOBUF_C_VERSION_NUMBER < 1003000 +# error This file was generated by a newer version of protoc-c which is incompatible with your libprotobuf-c headers. Please update your headers. +#elif 1003000 < PROTOBUF_C_MIN_COMPILER_VERSION +# error This file was generated by an older version of protoc-c which is incompatible with your libprotobuf-c headers. Please regenerate this file with a newer version of protoc-c. +#endif + + + + +/* --- enums --- */ + +typedef enum _Tango__PMR__Common__MessageType { + TANGO__PMR__COMMON__MESSAGE_TYPE__RGB = 0, + TANGO__PMR__COMMON__MESSAGE_TYPE__Job = 1, + TANGO__PMR__COMMON__MESSAGE_TYPE__Segment = 2, + TANGO__PMR__COMMON__MESSAGE_TYPE__CalculateRequest = 3, + TANGO__PMR__COMMON__MESSAGE_TYPE__CalculateResponse = 4, + TANGO__PMR__COMMON__MESSAGE_TYPE__ProgressRequest = 5, + TANGO__PMR__COMMON__MESSAGE_TYPE__ProgressResponse = 6 + PROTOBUF_C__FORCE_ENUM_TO_BE_INT_SIZE(TANGO__PMR__COMMON__MESSAGE_TYPE) +} Tango__PMR__Common__MessageType; + +/* --- messages --- */ + +/* --- per-message closures --- */ + + +/* --- services --- */ + + +/* --- descriptors --- */ + +extern const ProtobufCEnumDescriptor tango__pmr__common__message_type__descriptor; + +PROTOBUF_C__END_DECLS + + +#endif /* PROTOBUF_C_MessageType_2eproto__INCLUDED */ diff --git a/Software/Code_Composer/twine_usblib_demo/PMR/Common/RGB.pb-c.c b/Software/Code_Composer/twine_usblib_demo/PMR/Common/RGB.pb-c.c new file mode 100644 index 000000000..27e389ef6 --- /dev/null +++ b/Software/Code_Composer/twine_usblib_demo/PMR/Common/RGB.pb-c.c @@ -0,0 +1,118 @@ +/* Generated by the protocol buffer compiler. DO NOT EDIT! */ +/* Generated from: RGB.proto */ + +/* Do not generate deprecated warnings for self */ +#ifndef PROTOBUF_C__NO_DEPRECATED +#define PROTOBUF_C__NO_DEPRECATED +#endif + +#include "RGB.pb-c.h" +void tango__pmr__common__rgb__init + (Tango__PMR__Common__RGB *message) +{ + static const Tango__PMR__Common__RGB init_value = TANGO__PMR__COMMON__RGB__INIT; + *message = init_value; +} +size_t tango__pmr__common__rgb__get_packed_size + (const Tango__PMR__Common__RGB *message) +{ + assert(message->base.descriptor == &tango__pmr__common__rgb__descriptor); + return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); +} +size_t tango__pmr__common__rgb__pack + (const Tango__PMR__Common__RGB *message, + uint8_t *out) +{ + assert(message->base.descriptor == &tango__pmr__common__rgb__descriptor); + return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); +} +size_t tango__pmr__common__rgb__pack_to_buffer + (const Tango__PMR__Common__RGB *message, + ProtobufCBuffer *buffer) +{ + assert(message->base.descriptor == &tango__pmr__common__rgb__descriptor); + return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); +} +Tango__PMR__Common__RGB * + tango__pmr__common__rgb__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data) +{ + return (Tango__PMR__Common__RGB *) + protobuf_c_message_unpack (&tango__pmr__common__rgb__descriptor, + allocator, len, data); +} +void tango__pmr__common__rgb__free_unpacked + (Tango__PMR__Common__RGB *message, + ProtobufCAllocator *allocator) +{ + if(!message) + return; + assert(message->base.descriptor == &tango__pmr__common__rgb__descriptor); + protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); +} +static const ProtobufCFieldDescriptor tango__pmr__common__rgb__field_descriptors[3] = +{ + { + "R", + 1, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_INT32, + offsetof(Tango__PMR__Common__RGB, has_r), + offsetof(Tango__PMR__Common__RGB, r), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "G", + 2, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_INT32, + offsetof(Tango__PMR__Common__RGB, has_g), + offsetof(Tango__PMR__Common__RGB, g), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "B", + 3, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_INT32, + offsetof(Tango__PMR__Common__RGB, has_b), + offsetof(Tango__PMR__Common__RGB, b), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, +}; +static const unsigned tango__pmr__common__rgb__field_indices_by_name[] = { + 2, /* field[2] = B */ + 1, /* field[1] = G */ + 0, /* field[0] = R */ +}; +static const ProtobufCIntRange tango__pmr__common__rgb__number_ranges[1 + 1] = +{ + { 1, 0 }, + { 0, 3 } +}; +const ProtobufCMessageDescriptor tango__pmr__common__rgb__descriptor = +{ + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "Tango.PMR.Common.RGB", + "RGB", + "Tango__PMR__Common__RGB", + "Tango.PMR.Common", + sizeof(Tango__PMR__Common__RGB), + 3, + tango__pmr__common__rgb__field_descriptors, + tango__pmr__common__rgb__field_indices_by_name, + 1, tango__pmr__common__rgb__number_ranges, + (ProtobufCMessageInit) tango__pmr__common__rgb__init, + NULL,NULL,NULL /* reserved[123] */ +}; diff --git a/Software/Code_Composer/twine_usblib_demo/PMR/Common/RGB.pb-c.h b/Software/Code_Composer/twine_usblib_demo/PMR/Common/RGB.pb-c.h new file mode 100644 index 000000000..1a8655771 --- /dev/null +++ b/Software/Code_Composer/twine_usblib_demo/PMR/Common/RGB.pb-c.h @@ -0,0 +1,76 @@ +/* Generated by the protocol buffer compiler. DO NOT EDIT! */ +/* Generated from: RGB.proto */ + +#ifndef PROTOBUF_C_RGB_2eproto__INCLUDED +#define PROTOBUF_C_RGB_2eproto__INCLUDED + +#include <protobuf-c/protobuf-c.h> + +PROTOBUF_C__BEGIN_DECLS + +#if PROTOBUF_C_VERSION_NUMBER < 1003000 +# error This file was generated by a newer version of protoc-c which is incompatible with your libprotobuf-c headers. Please update your headers. +#elif 1003000 < PROTOBUF_C_MIN_COMPILER_VERSION +# error This file was generated by an older version of protoc-c which is incompatible with your libprotobuf-c headers. Please regenerate this file with a newer version of protoc-c. +#endif + + +typedef struct _Tango__PMR__Common__RGB Tango__PMR__Common__RGB; + + +/* --- enums --- */ + + +/* --- messages --- */ + +struct _Tango__PMR__Common__RGB +{ + ProtobufCMessage base; + protobuf_c_boolean has_r; + int32_t r; + protobuf_c_boolean has_g; + int32_t g; + protobuf_c_boolean has_b; + int32_t b; +}; +#define TANGO__PMR__COMMON__RGB__INIT \ + { PROTOBUF_C_MESSAGE_INIT (&tango__pmr__common__rgb__descriptor) \ + , 0, 0, 0, 0, 0, 0 } + + +/* Tango__PMR__Common__RGB methods */ +void tango__pmr__common__rgb__init + (Tango__PMR__Common__RGB *message); +size_t tango__pmr__common__rgb__get_packed_size + (const Tango__PMR__Common__RGB *message); +size_t tango__pmr__common__rgb__pack + (const Tango__PMR__Common__RGB *message, + uint8_t *out); +size_t tango__pmr__common__rgb__pack_to_buffer + (const Tango__PMR__Common__RGB *message, + ProtobufCBuffer *buffer); +Tango__PMR__Common__RGB * + tango__pmr__common__rgb__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data); +void tango__pmr__common__rgb__free_unpacked + (Tango__PMR__Common__RGB *message, + ProtobufCAllocator *allocator); +/* --- per-message closures --- */ + +typedef void (*Tango__PMR__Common__RGB_Closure) + (const Tango__PMR__Common__RGB *message, + void *closure_data); + +/* --- services --- */ + + +/* --- descriptors --- */ + +extern const ProtobufCMessageDescriptor tango__pmr__common__rgb__descriptor; + +PROTOBUF_C__END_DECLS + + +#endif /* PROTOBUF_C_RGB_2eproto__INCLUDED */ diff --git a/Software/Code_Composer/twine_usblib_demo/PMR/Jobs/Job.pb-c.c b/Software/Code_Composer/twine_usblib_demo/PMR/Jobs/Job.pb-c.c new file mode 100644 index 000000000..f0cb22bac --- /dev/null +++ b/Software/Code_Composer/twine_usblib_demo/PMR/Jobs/Job.pb-c.c @@ -0,0 +1,105 @@ +/* Generated by the protocol buffer compiler. DO NOT EDIT! */ +/* Generated from: Job.proto */ + +/* Do not generate deprecated warnings for self */ +#ifndef PROTOBUF_C__NO_DEPRECATED +#define PROTOBUF_C__NO_DEPRECATED +#endif + +#include "Job.pb-c.h" +void tango__pmr__jobs__job__init + (Tango__PMR__Jobs__Job *message) +{ + static const Tango__PMR__Jobs__Job init_value = TANGO__PMR__JOBS__JOB__INIT; + *message = init_value; +} +size_t tango__pmr__jobs__job__get_packed_size + (const Tango__PMR__Jobs__Job *message) +{ + assert(message->base.descriptor == &tango__pmr__jobs__job__descriptor); + return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); +} +size_t tango__pmr__jobs__job__pack + (const Tango__PMR__Jobs__Job *message, + uint8_t *out) +{ + assert(message->base.descriptor == &tango__pmr__jobs__job__descriptor); + return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); +} +size_t tango__pmr__jobs__job__pack_to_buffer + (const Tango__PMR__Jobs__Job *message, + ProtobufCBuffer *buffer) +{ + assert(message->base.descriptor == &tango__pmr__jobs__job__descriptor); + return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); +} +Tango__PMR__Jobs__Job * + tango__pmr__jobs__job__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data) +{ + return (Tango__PMR__Jobs__Job *) + protobuf_c_message_unpack (&tango__pmr__jobs__job__descriptor, + allocator, len, data); +} +void tango__pmr__jobs__job__free_unpacked + (Tango__PMR__Jobs__Job *message, + ProtobufCAllocator *allocator) +{ + if(!message) + return; + assert(message->base.descriptor == &tango__pmr__jobs__job__descriptor); + protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); +} +static const ProtobufCFieldDescriptor tango__pmr__jobs__job__field_descriptors[2] = +{ + { + "Name", + 1, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_STRING, + 0, /* quantifier_offset */ + offsetof(Tango__PMR__Jobs__Job, name), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "Segments", + 2, + PROTOBUF_C_LABEL_REPEATED, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(Tango__PMR__Jobs__Job, n_segments), + offsetof(Tango__PMR__Jobs__Job, segments), + &tango__pmr__jobs__segment__descriptor, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, +}; +static const unsigned tango__pmr__jobs__job__field_indices_by_name[] = { + 0, /* field[0] = Name */ + 1, /* field[1] = Segments */ +}; +static const ProtobufCIntRange tango__pmr__jobs__job__number_ranges[1 + 1] = +{ + { 1, 0 }, + { 0, 2 } +}; +const ProtobufCMessageDescriptor tango__pmr__jobs__job__descriptor = +{ + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "Tango.PMR.Jobs.Job", + "Job", + "Tango__PMR__Jobs__Job", + "Tango.PMR.Jobs", + sizeof(Tango__PMR__Jobs__Job), + 2, + tango__pmr__jobs__job__field_descriptors, + tango__pmr__jobs__job__field_indices_by_name, + 1, tango__pmr__jobs__job__number_ranges, + (ProtobufCMessageInit) tango__pmr__jobs__job__init, + NULL,NULL,NULL /* reserved[123] */ +}; diff --git a/Software/Code_Composer/twine_usblib_demo/PMR/Jobs/Job.pb-c.h b/Software/Code_Composer/twine_usblib_demo/PMR/Jobs/Job.pb-c.h new file mode 100644 index 000000000..79e598e36 --- /dev/null +++ b/Software/Code_Composer/twine_usblib_demo/PMR/Jobs/Job.pb-c.h @@ -0,0 +1,74 @@ +/* Generated by the protocol buffer compiler. DO NOT EDIT! */ +/* Generated from: Job.proto */ + +#ifndef PROTOBUF_C_Job_2eproto__INCLUDED +#define PROTOBUF_C_Job_2eproto__INCLUDED + +#include <protobuf-c/protobuf-c.h> + +PROTOBUF_C__BEGIN_DECLS + +#if PROTOBUF_C_VERSION_NUMBER < 1003000 +# error This file was generated by a newer version of protoc-c which is incompatible with your libprotobuf-c headers. Please update your headers. +#elif 1003000 < PROTOBUF_C_MIN_COMPILER_VERSION +# error This file was generated by an older version of protoc-c which is incompatible with your libprotobuf-c headers. Please regenerate this file with a newer version of protoc-c. +#endif + +#include "Segment.pb-c.h" + +typedef struct _Tango__PMR__Jobs__Job Tango__PMR__Jobs__Job; + + +/* --- enums --- */ + + +/* --- messages --- */ + +struct _Tango__PMR__Jobs__Job +{ + ProtobufCMessage base; + char *name; + size_t n_segments; + Tango__PMR__Jobs__Segment **segments; +}; +#define TANGO__PMR__JOBS__JOB__INIT \ + { PROTOBUF_C_MESSAGE_INIT (&tango__pmr__jobs__job__descriptor) \ + , NULL, 0,NULL } + + +/* Tango__PMR__Jobs__Job methods */ +void tango__pmr__jobs__job__init + (Tango__PMR__Jobs__Job *message); +size_t tango__pmr__jobs__job__get_packed_size + (const Tango__PMR__Jobs__Job *message); +size_t tango__pmr__jobs__job__pack + (const Tango__PMR__Jobs__Job *message, + uint8_t *out); +size_t tango__pmr__jobs__job__pack_to_buffer + (const Tango__PMR__Jobs__Job *message, + ProtobufCBuffer *buffer); +Tango__PMR__Jobs__Job * + tango__pmr__jobs__job__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data); +void tango__pmr__jobs__job__free_unpacked + (Tango__PMR__Jobs__Job *message, + ProtobufCAllocator *allocator); +/* --- per-message closures --- */ + +typedef void (*Tango__PMR__Jobs__Job_Closure) + (const Tango__PMR__Jobs__Job *message, + void *closure_data); + +/* --- services --- */ + + +/* --- descriptors --- */ + +extern const ProtobufCMessageDescriptor tango__pmr__jobs__job__descriptor; + +PROTOBUF_C__END_DECLS + + +#endif /* PROTOBUF_C_Job_2eproto__INCLUDED */ diff --git a/Software/Code_Composer/twine_usblib_demo/PMR/Jobs/Segment.pb-c.c b/Software/Code_Composer/twine_usblib_demo/PMR/Jobs/Segment.pb-c.c new file mode 100644 index 000000000..adedc8378 --- /dev/null +++ b/Software/Code_Composer/twine_usblib_demo/PMR/Jobs/Segment.pb-c.c @@ -0,0 +1,118 @@ +/* Generated by the protocol buffer compiler. DO NOT EDIT! */ +/* Generated from: Segment.proto */ + +/* Do not generate deprecated warnings for self */ +#ifndef PROTOBUF_C__NO_DEPRECATED +#define PROTOBUF_C__NO_DEPRECATED +#endif + +#include "Segment.pb-c.h" +void tango__pmr__jobs__segment__init + (Tango__PMR__Jobs__Segment *message) +{ + static const Tango__PMR__Jobs__Segment init_value = TANGO__PMR__JOBS__SEGMENT__INIT; + *message = init_value; +} +size_t tango__pmr__jobs__segment__get_packed_size + (const Tango__PMR__Jobs__Segment *message) +{ + assert(message->base.descriptor == &tango__pmr__jobs__segment__descriptor); + return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); +} +size_t tango__pmr__jobs__segment__pack + (const Tango__PMR__Jobs__Segment *message, + uint8_t *out) +{ + assert(message->base.descriptor == &tango__pmr__jobs__segment__descriptor); + return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); +} +size_t tango__pmr__jobs__segment__pack_to_buffer + (const Tango__PMR__Jobs__Segment *message, + ProtobufCBuffer *buffer) +{ + assert(message->base.descriptor == &tango__pmr__jobs__segment__descriptor); + return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); +} +Tango__PMR__Jobs__Segment * + tango__pmr__jobs__segment__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data) +{ + return (Tango__PMR__Jobs__Segment *) + protobuf_c_message_unpack (&tango__pmr__jobs__segment__descriptor, + allocator, len, data); +} +void tango__pmr__jobs__segment__free_unpacked + (Tango__PMR__Jobs__Segment *message, + ProtobufCAllocator *allocator) +{ + if(!message) + return; + assert(message->base.descriptor == &tango__pmr__jobs__segment__descriptor); + protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); +} +static const ProtobufCFieldDescriptor tango__pmr__jobs__segment__field_descriptors[3] = +{ + { + "Name", + 1, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_STRING, + 0, /* quantifier_offset */ + offsetof(Tango__PMR__Jobs__Segment, name), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "Length", + 2, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_INT32, + offsetof(Tango__PMR__Jobs__Segment, has_length), + offsetof(Tango__PMR__Jobs__Segment, length), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "Color", + 3, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_MESSAGE, + 0, /* quantifier_offset */ + offsetof(Tango__PMR__Jobs__Segment, color), + &tango__pmr__common__rgb__descriptor, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, +}; +static const unsigned tango__pmr__jobs__segment__field_indices_by_name[] = { + 2, /* field[2] = Color */ + 1, /* field[1] = Length */ + 0, /* field[0] = Name */ +}; +static const ProtobufCIntRange tango__pmr__jobs__segment__number_ranges[1 + 1] = +{ + { 1, 0 }, + { 0, 3 } +}; +const ProtobufCMessageDescriptor tango__pmr__jobs__segment__descriptor = +{ + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "Tango.PMR.Jobs.Segment", + "Segment", + "Tango__PMR__Jobs__Segment", + "Tango.PMR.Jobs", + sizeof(Tango__PMR__Jobs__Segment), + 3, + tango__pmr__jobs__segment__field_descriptors, + tango__pmr__jobs__segment__field_indices_by_name, + 1, tango__pmr__jobs__segment__number_ranges, + (ProtobufCMessageInit) tango__pmr__jobs__segment__init, + NULL,NULL,NULL /* reserved[123] */ +}; diff --git a/Software/Code_Composer/twine_usblib_demo/PMR/Jobs/Segment.pb-c.h b/Software/Code_Composer/twine_usblib_demo/PMR/Jobs/Segment.pb-c.h new file mode 100644 index 000000000..16fd48659 --- /dev/null +++ b/Software/Code_Composer/twine_usblib_demo/PMR/Jobs/Segment.pb-c.h @@ -0,0 +1,75 @@ +/* Generated by the protocol buffer compiler. DO NOT EDIT! */ +/* Generated from: Segment.proto */ + +#ifndef PROTOBUF_C_Segment_2eproto__INCLUDED +#define PROTOBUF_C_Segment_2eproto__INCLUDED + +#include <protobuf-c/protobuf-c.h> + +PROTOBUF_C__BEGIN_DECLS + +#if PROTOBUF_C_VERSION_NUMBER < 1003000 +# error This file was generated by a newer version of protoc-c which is incompatible with your libprotobuf-c headers. Please update your headers. +#elif 1003000 < PROTOBUF_C_MIN_COMPILER_VERSION +# error This file was generated by an older version of protoc-c which is incompatible with your libprotobuf-c headers. Please regenerate this file with a newer version of protoc-c. +#endif + +#include "RGB.pb-c.h" + +typedef struct _Tango__PMR__Jobs__Segment Tango__PMR__Jobs__Segment; + + +/* --- enums --- */ + + +/* --- messages --- */ + +struct _Tango__PMR__Jobs__Segment +{ + ProtobufCMessage base; + char *name; + protobuf_c_boolean has_length; + int32_t length; + Tango__PMR__Common__RGB *color; +}; +#define TANGO__PMR__JOBS__SEGMENT__INIT \ + { PROTOBUF_C_MESSAGE_INIT (&tango__pmr__jobs__segment__descriptor) \ + , NULL, 0, 0, NULL } + + +/* Tango__PMR__Jobs__Segment methods */ +void tango__pmr__jobs__segment__init + (Tango__PMR__Jobs__Segment *message); +size_t tango__pmr__jobs__segment__get_packed_size + (const Tango__PMR__Jobs__Segment *message); +size_t tango__pmr__jobs__segment__pack + (const Tango__PMR__Jobs__Segment *message, + uint8_t *out); +size_t tango__pmr__jobs__segment__pack_to_buffer + (const Tango__PMR__Jobs__Segment *message, + ProtobufCBuffer *buffer); +Tango__PMR__Jobs__Segment * + tango__pmr__jobs__segment__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data); +void tango__pmr__jobs__segment__free_unpacked + (Tango__PMR__Jobs__Segment *message, + ProtobufCAllocator *allocator); +/* --- per-message closures --- */ + +typedef void (*Tango__PMR__Jobs__Segment_Closure) + (const Tango__PMR__Jobs__Segment *message, + void *closure_data); + +/* --- services --- */ + + +/* --- descriptors --- */ + +extern const ProtobufCMessageDescriptor tango__pmr__jobs__segment__descriptor; + +PROTOBUF_C__END_DECLS + + +#endif /* PROTOBUF_C_Segment_2eproto__INCLUDED */ diff --git a/Software/Code_Composer/twine_usblib_demo/PMR/Stubs/CalculateRequest.pb-c.c b/Software/Code_Composer/twine_usblib_demo/PMR/Stubs/CalculateRequest.pb-c.c new file mode 100644 index 000000000..c091ded25 --- /dev/null +++ b/Software/Code_Composer/twine_usblib_demo/PMR/Stubs/CalculateRequest.pb-c.c @@ -0,0 +1,105 @@ +/* Generated by the protocol buffer compiler. DO NOT EDIT! */ +/* Generated from: CalculateRequest.proto */ + +/* Do not generate deprecated warnings for self */ +#ifndef PROTOBUF_C__NO_DEPRECATED +#define PROTOBUF_C__NO_DEPRECATED +#endif + +#include "CalculateRequest.pb-c.h" +void tango__pmr__stubs__calculate_request__init + (Tango__PMR__Stubs__CalculateRequest *message) +{ + static const Tango__PMR__Stubs__CalculateRequest init_value = TANGO__PMR__STUBS__CALCULATE_REQUEST__INIT; + *message = init_value; +} +size_t tango__pmr__stubs__calculate_request__get_packed_size + (const Tango__PMR__Stubs__CalculateRequest *message) +{ + assert(message->base.descriptor == &tango__pmr__stubs__calculate_request__descriptor); + return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); +} +size_t tango__pmr__stubs__calculate_request__pack + (const Tango__PMR__Stubs__CalculateRequest *message, + uint8_t *out) +{ + assert(message->base.descriptor == &tango__pmr__stubs__calculate_request__descriptor); + return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); +} +size_t tango__pmr__stubs__calculate_request__pack_to_buffer + (const Tango__PMR__Stubs__CalculateRequest *message, + ProtobufCBuffer *buffer) +{ + assert(message->base.descriptor == &tango__pmr__stubs__calculate_request__descriptor); + return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); +} +Tango__PMR__Stubs__CalculateRequest * + tango__pmr__stubs__calculate_request__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data) +{ + return (Tango__PMR__Stubs__CalculateRequest *) + protobuf_c_message_unpack (&tango__pmr__stubs__calculate_request__descriptor, + allocator, len, data); +} +void tango__pmr__stubs__calculate_request__free_unpacked + (Tango__PMR__Stubs__CalculateRequest *message, + ProtobufCAllocator *allocator) +{ + if(!message) + return; + assert(message->base.descriptor == &tango__pmr__stubs__calculate_request__descriptor); + protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); +} +static const ProtobufCFieldDescriptor tango__pmr__stubs__calculate_request__field_descriptors[2] = +{ + { + "A", + 1, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_DOUBLE, + offsetof(Tango__PMR__Stubs__CalculateRequest, has_a), + offsetof(Tango__PMR__Stubs__CalculateRequest, a), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "B", + 2, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_DOUBLE, + offsetof(Tango__PMR__Stubs__CalculateRequest, has_b), + offsetof(Tango__PMR__Stubs__CalculateRequest, b), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, +}; +static const unsigned tango__pmr__stubs__calculate_request__field_indices_by_name[] = { + 0, /* field[0] = A */ + 1, /* field[1] = B */ +}; +static const ProtobufCIntRange tango__pmr__stubs__calculate_request__number_ranges[1 + 1] = +{ + { 1, 0 }, + { 0, 2 } +}; +const ProtobufCMessageDescriptor tango__pmr__stubs__calculate_request__descriptor = +{ + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "Tango.PMR.Stubs.CalculateRequest", + "CalculateRequest", + "Tango__PMR__Stubs__CalculateRequest", + "Tango.PMR.Stubs", + sizeof(Tango__PMR__Stubs__CalculateRequest), + 2, + tango__pmr__stubs__calculate_request__field_descriptors, + tango__pmr__stubs__calculate_request__field_indices_by_name, + 1, tango__pmr__stubs__calculate_request__number_ranges, + (ProtobufCMessageInit) tango__pmr__stubs__calculate_request__init, + NULL,NULL,NULL /* reserved[123] */ +}; diff --git a/Software/Code_Composer/twine_usblib_demo/PMR/Stubs/CalculateRequest.pb-c.h b/Software/Code_Composer/twine_usblib_demo/PMR/Stubs/CalculateRequest.pb-c.h new file mode 100644 index 000000000..1ea0683a3 --- /dev/null +++ b/Software/Code_Composer/twine_usblib_demo/PMR/Stubs/CalculateRequest.pb-c.h @@ -0,0 +1,74 @@ +/* Generated by the protocol buffer compiler. DO NOT EDIT! */ +/* Generated from: CalculateRequest.proto */ + +#ifndef PROTOBUF_C_CalculateRequest_2eproto__INCLUDED +#define PROTOBUF_C_CalculateRequest_2eproto__INCLUDED + +#include <protobuf-c/protobuf-c.h> + +PROTOBUF_C__BEGIN_DECLS + +#if PROTOBUF_C_VERSION_NUMBER < 1003000 +# error This file was generated by a newer version of protoc-c which is incompatible with your libprotobuf-c headers. Please update your headers. +#elif 1003000 < PROTOBUF_C_MIN_COMPILER_VERSION +# error This file was generated by an older version of protoc-c which is incompatible with your libprotobuf-c headers. Please regenerate this file with a newer version of protoc-c. +#endif + + +typedef struct _Tango__PMR__Stubs__CalculateRequest Tango__PMR__Stubs__CalculateRequest; + + +/* --- enums --- */ + + +/* --- messages --- */ + +struct _Tango__PMR__Stubs__CalculateRequest +{ + ProtobufCMessage base; + protobuf_c_boolean has_a; + double a; + protobuf_c_boolean has_b; + double b; +}; +#define TANGO__PMR__STUBS__CALCULATE_REQUEST__INIT \ + { PROTOBUF_C_MESSAGE_INIT (&tango__pmr__stubs__calculate_request__descriptor) \ + , 0, 0, 0, 0 } + + +/* Tango__PMR__Stubs__CalculateRequest methods */ +void tango__pmr__stubs__calculate_request__init + (Tango__PMR__Stubs__CalculateRequest *message); +size_t tango__pmr__stubs__calculate_request__get_packed_size + (const Tango__PMR__Stubs__CalculateRequest *message); +size_t tango__pmr__stubs__calculate_request__pack + (const Tango__PMR__Stubs__CalculateRequest *message, + uint8_t *out); +size_t tango__pmr__stubs__calculate_request__pack_to_buffer + (const Tango__PMR__Stubs__CalculateRequest *message, + ProtobufCBuffer *buffer); +Tango__PMR__Stubs__CalculateRequest * + tango__pmr__stubs__calculate_request__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data); +void tango__pmr__stubs__calculate_request__free_unpacked + (Tango__PMR__Stubs__CalculateRequest *message, + ProtobufCAllocator *allocator); +/* --- per-message closures --- */ + +typedef void (*Tango__PMR__Stubs__CalculateRequest_Closure) + (const Tango__PMR__Stubs__CalculateRequest *message, + void *closure_data); + +/* --- services --- */ + + +/* --- descriptors --- */ + +extern const ProtobufCMessageDescriptor tango__pmr__stubs__calculate_request__descriptor; + +PROTOBUF_C__END_DECLS + + +#endif /* PROTOBUF_C_CalculateRequest_2eproto__INCLUDED */ diff --git a/Software/Code_Composer/twine_usblib_demo/PMR/Stubs/CalculateResponse.pb-c.c b/Software/Code_Composer/twine_usblib_demo/PMR/Stubs/CalculateResponse.pb-c.c new file mode 100644 index 000000000..feb52455a --- /dev/null +++ b/Software/Code_Composer/twine_usblib_demo/PMR/Stubs/CalculateResponse.pb-c.c @@ -0,0 +1,92 @@ +/* Generated by the protocol buffer compiler. DO NOT EDIT! */ +/* Generated from: CalculateResponse.proto */ + +/* Do not generate deprecated warnings for self */ +#ifndef PROTOBUF_C__NO_DEPRECATED +#define PROTOBUF_C__NO_DEPRECATED +#endif + +#include "CalculateResponse.pb-c.h" +void tango__pmr__stubs__calculate_response__init + (Tango__PMR__Stubs__CalculateResponse *message) +{ + static const Tango__PMR__Stubs__CalculateResponse init_value = TANGO__PMR__STUBS__CALCULATE_RESPONSE__INIT; + *message = init_value; +} +size_t tango__pmr__stubs__calculate_response__get_packed_size + (const Tango__PMR__Stubs__CalculateResponse *message) +{ + assert(message->base.descriptor == &tango__pmr__stubs__calculate_response__descriptor); + return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); +} +size_t tango__pmr__stubs__calculate_response__pack + (const Tango__PMR__Stubs__CalculateResponse *message, + uint8_t *out) +{ + assert(message->base.descriptor == &tango__pmr__stubs__calculate_response__descriptor); + return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); +} +size_t tango__pmr__stubs__calculate_response__pack_to_buffer + (const Tango__PMR__Stubs__CalculateResponse *message, + ProtobufCBuffer *buffer) +{ + assert(message->base.descriptor == &tango__pmr__stubs__calculate_response__descriptor); + return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); +} +Tango__PMR__Stubs__CalculateResponse * + tango__pmr__stubs__calculate_response__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data) +{ + return (Tango__PMR__Stubs__CalculateResponse *) + protobuf_c_message_unpack (&tango__pmr__stubs__calculate_response__descriptor, + allocator, len, data); +} +void tango__pmr__stubs__calculate_response__free_unpacked + (Tango__PMR__Stubs__CalculateResponse *message, + ProtobufCAllocator *allocator) +{ + if(!message) + return; + assert(message->base.descriptor == &tango__pmr__stubs__calculate_response__descriptor); + protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); +} +static const ProtobufCFieldDescriptor tango__pmr__stubs__calculate_response__field_descriptors[1] = +{ + { + "Sum", + 1, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_DOUBLE, + offsetof(Tango__PMR__Stubs__CalculateResponse, has_sum), + offsetof(Tango__PMR__Stubs__CalculateResponse, sum), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, +}; +static const unsigned tango__pmr__stubs__calculate_response__field_indices_by_name[] = { + 0, /* field[0] = Sum */ +}; +static const ProtobufCIntRange tango__pmr__stubs__calculate_response__number_ranges[1 + 1] = +{ + { 1, 0 }, + { 0, 1 } +}; +const ProtobufCMessageDescriptor tango__pmr__stubs__calculate_response__descriptor = +{ + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "Tango.PMR.Stubs.CalculateResponse", + "CalculateResponse", + "Tango__PMR__Stubs__CalculateResponse", + "Tango.PMR.Stubs", + sizeof(Tango__PMR__Stubs__CalculateResponse), + 1, + tango__pmr__stubs__calculate_response__field_descriptors, + tango__pmr__stubs__calculate_response__field_indices_by_name, + 1, tango__pmr__stubs__calculate_response__number_ranges, + (ProtobufCMessageInit) tango__pmr__stubs__calculate_response__init, + NULL,NULL,NULL /* reserved[123] */ +}; diff --git a/Software/Code_Composer/twine_usblib_demo/PMR/Stubs/CalculateResponse.pb-c.h b/Software/Code_Composer/twine_usblib_demo/PMR/Stubs/CalculateResponse.pb-c.h new file mode 100644 index 000000000..bad222d0b --- /dev/null +++ b/Software/Code_Composer/twine_usblib_demo/PMR/Stubs/CalculateResponse.pb-c.h @@ -0,0 +1,72 @@ +/* Generated by the protocol buffer compiler. DO NOT EDIT! */ +/* Generated from: CalculateResponse.proto */ + +#ifndef PROTOBUF_C_CalculateResponse_2eproto__INCLUDED +#define PROTOBUF_C_CalculateResponse_2eproto__INCLUDED + +#include <protobuf-c/protobuf-c.h> + +PROTOBUF_C__BEGIN_DECLS + +#if PROTOBUF_C_VERSION_NUMBER < 1003000 +# error This file was generated by a newer version of protoc-c which is incompatible with your libprotobuf-c headers. Please update your headers. +#elif 1003000 < PROTOBUF_C_MIN_COMPILER_VERSION +# error This file was generated by an older version of protoc-c which is incompatible with your libprotobuf-c headers. Please regenerate this file with a newer version of protoc-c. +#endif + + +typedef struct _Tango__PMR__Stubs__CalculateResponse Tango__PMR__Stubs__CalculateResponse; + + +/* --- enums --- */ + + +/* --- messages --- */ + +struct _Tango__PMR__Stubs__CalculateResponse +{ + ProtobufCMessage base; + protobuf_c_boolean has_sum; + double sum; +}; +#define TANGO__PMR__STUBS__CALCULATE_RESPONSE__INIT \ + { PROTOBUF_C_MESSAGE_INIT (&tango__pmr__stubs__calculate_response__descriptor) \ + , 0, 0 } + + +/* Tango__PMR__Stubs__CalculateResponse methods */ +void tango__pmr__stubs__calculate_response__init + (Tango__PMR__Stubs__CalculateResponse *message); +size_t tango__pmr__stubs__calculate_response__get_packed_size + (const Tango__PMR__Stubs__CalculateResponse *message); +size_t tango__pmr__stubs__calculate_response__pack + (const Tango__PMR__Stubs__CalculateResponse *message, + uint8_t *out); +size_t tango__pmr__stubs__calculate_response__pack_to_buffer + (const Tango__PMR__Stubs__CalculateResponse *message, + ProtobufCBuffer *buffer); +Tango__PMR__Stubs__CalculateResponse * + tango__pmr__stubs__calculate_response__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data); +void tango__pmr__stubs__calculate_response__free_unpacked + (Tango__PMR__Stubs__CalculateResponse *message, + ProtobufCAllocator *allocator); +/* --- per-message closures --- */ + +typedef void (*Tango__PMR__Stubs__CalculateResponse_Closure) + (const Tango__PMR__Stubs__CalculateResponse *message, + void *closure_data); + +/* --- services --- */ + + +/* --- descriptors --- */ + +extern const ProtobufCMessageDescriptor tango__pmr__stubs__calculate_response__descriptor; + +PROTOBUF_C__END_DECLS + + +#endif /* PROTOBUF_C_CalculateResponse_2eproto__INCLUDED */ diff --git a/Software/Code_Composer/twine_usblib_demo/PMR/Stubs/ProgressRequest.pb-c.c b/Software/Code_Composer/twine_usblib_demo/PMR/Stubs/ProgressRequest.pb-c.c new file mode 100644 index 000000000..878a63cfc --- /dev/null +++ b/Software/Code_Composer/twine_usblib_demo/PMR/Stubs/ProgressRequest.pb-c.c @@ -0,0 +1,72 @@ +/* Generated by the protocol buffer compiler. DO NOT EDIT! */ +/* Generated from: ProgressRequest.proto */ + +/* Do not generate deprecated warnings for self */ +#ifndef PROTOBUF_C__NO_DEPRECATED +#define PROTOBUF_C__NO_DEPRECATED +#endif + +#include "ProgressRequest.pb-c.h" +void tango__pmr__stubs__progress_request__init + (Tango__PMR__Stubs__ProgressRequest *message) +{ + static const Tango__PMR__Stubs__ProgressRequest init_value = TANGO__PMR__STUBS__PROGRESS_REQUEST__INIT; + *message = init_value; +} +size_t tango__pmr__stubs__progress_request__get_packed_size + (const Tango__PMR__Stubs__ProgressRequest *message) +{ + assert(message->base.descriptor == &tango__pmr__stubs__progress_request__descriptor); + return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); +} +size_t tango__pmr__stubs__progress_request__pack + (const Tango__PMR__Stubs__ProgressRequest *message, + uint8_t *out) +{ + assert(message->base.descriptor == &tango__pmr__stubs__progress_request__descriptor); + return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); +} +size_t tango__pmr__stubs__progress_request__pack_to_buffer + (const Tango__PMR__Stubs__ProgressRequest *message, + ProtobufCBuffer *buffer) +{ + assert(message->base.descriptor == &tango__pmr__stubs__progress_request__descriptor); + return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); +} +Tango__PMR__Stubs__ProgressRequest * + tango__pmr__stubs__progress_request__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data) +{ + return (Tango__PMR__Stubs__ProgressRequest *) + protobuf_c_message_unpack (&tango__pmr__stubs__progress_request__descriptor, + allocator, len, data); +} +void tango__pmr__stubs__progress_request__free_unpacked + (Tango__PMR__Stubs__ProgressRequest *message, + ProtobufCAllocator *allocator) +{ + if(!message) + return; + assert(message->base.descriptor == &tango__pmr__stubs__progress_request__descriptor); + protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); +} +#define tango__pmr__stubs__progress_request__field_descriptors NULL +#define tango__pmr__stubs__progress_request__field_indices_by_name NULL +#define tango__pmr__stubs__progress_request__number_ranges NULL +const ProtobufCMessageDescriptor tango__pmr__stubs__progress_request__descriptor = +{ + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "Tango.PMR.Stubs.ProgressRequest", + "ProgressRequest", + "Tango__PMR__Stubs__ProgressRequest", + "Tango.PMR.Stubs", + sizeof(Tango__PMR__Stubs__ProgressRequest), + 0, + tango__pmr__stubs__progress_request__field_descriptors, + tango__pmr__stubs__progress_request__field_indices_by_name, + 0, tango__pmr__stubs__progress_request__number_ranges, + (ProtobufCMessageInit) tango__pmr__stubs__progress_request__init, + NULL,NULL,NULL /* reserved[123] */ +}; diff --git a/Software/Code_Composer/twine_usblib_demo/PMR/Stubs/ProgressRequest.pb-c.h b/Software/Code_Composer/twine_usblib_demo/PMR/Stubs/ProgressRequest.pb-c.h new file mode 100644 index 000000000..5776c0846 --- /dev/null +++ b/Software/Code_Composer/twine_usblib_demo/PMR/Stubs/ProgressRequest.pb-c.h @@ -0,0 +1,70 @@ +/* Generated by the protocol buffer compiler. DO NOT EDIT! */ +/* Generated from: ProgressRequest.proto */ + +#ifndef PROTOBUF_C_ProgressRequest_2eproto__INCLUDED +#define PROTOBUF_C_ProgressRequest_2eproto__INCLUDED + +#include <protobuf-c/protobuf-c.h> + +PROTOBUF_C__BEGIN_DECLS + +#if PROTOBUF_C_VERSION_NUMBER < 1003000 +# error This file was generated by a newer version of protoc-c which is incompatible with your libprotobuf-c headers. Please update your headers. +#elif 1003000 < PROTOBUF_C_MIN_COMPILER_VERSION +# error This file was generated by an older version of protoc-c which is incompatible with your libprotobuf-c headers. Please regenerate this file with a newer version of protoc-c. +#endif + + +typedef struct _Tango__PMR__Stubs__ProgressRequest Tango__PMR__Stubs__ProgressRequest; + + +/* --- enums --- */ + + +/* --- messages --- */ + +struct _Tango__PMR__Stubs__ProgressRequest +{ + ProtobufCMessage base; +}; +#define TANGO__PMR__STUBS__PROGRESS_REQUEST__INIT \ + { PROTOBUF_C_MESSAGE_INIT (&tango__pmr__stubs__progress_request__descriptor) \ + } + + +/* Tango__PMR__Stubs__ProgressRequest methods */ +void tango__pmr__stubs__progress_request__init + (Tango__PMR__Stubs__ProgressRequest *message); +size_t tango__pmr__stubs__progress_request__get_packed_size + (const Tango__PMR__Stubs__ProgressRequest *message); +size_t tango__pmr__stubs__progress_request__pack + (const Tango__PMR__Stubs__ProgressRequest *message, + uint8_t *out); +size_t tango__pmr__stubs__progress_request__pack_to_buffer + (const Tango__PMR__Stubs__ProgressRequest *message, + ProtobufCBuffer *buffer); +Tango__PMR__Stubs__ProgressRequest * + tango__pmr__stubs__progress_request__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data); +void tango__pmr__stubs__progress_request__free_unpacked + (Tango__PMR__Stubs__ProgressRequest *message, + ProtobufCAllocator *allocator); +/* --- per-message closures --- */ + +typedef void (*Tango__PMR__Stubs__ProgressRequest_Closure) + (const Tango__PMR__Stubs__ProgressRequest *message, + void *closure_data); + +/* --- services --- */ + + +/* --- descriptors --- */ + +extern const ProtobufCMessageDescriptor tango__pmr__stubs__progress_request__descriptor; + +PROTOBUF_C__END_DECLS + + +#endif /* PROTOBUF_C_ProgressRequest_2eproto__INCLUDED */ diff --git a/Software/Code_Composer/twine_usblib_demo/PMR/Stubs/ProgressResponse.pb-c.c b/Software/Code_Composer/twine_usblib_demo/PMR/Stubs/ProgressResponse.pb-c.c new file mode 100644 index 000000000..909e38ca4 --- /dev/null +++ b/Software/Code_Composer/twine_usblib_demo/PMR/Stubs/ProgressResponse.pb-c.c @@ -0,0 +1,92 @@ +/* Generated by the protocol buffer compiler. DO NOT EDIT! */ +/* Generated from: ProgressResponse.proto */ + +/* Do not generate deprecated warnings for self */ +#ifndef PROTOBUF_C__NO_DEPRECATED +#define PROTOBUF_C__NO_DEPRECATED +#endif + +#include "ProgressResponse.pb-c.h" +void tango__pmr__stubs__progress_response__init + (Tango__PMR__Stubs__ProgressResponse *message) +{ + static const Tango__PMR__Stubs__ProgressResponse init_value = TANGO__PMR__STUBS__PROGRESS_RESPONSE__INIT; + *message = init_value; +} +size_t tango__pmr__stubs__progress_response__get_packed_size + (const Tango__PMR__Stubs__ProgressResponse *message) +{ + assert(message->base.descriptor == &tango__pmr__stubs__progress_response__descriptor); + return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); +} +size_t tango__pmr__stubs__progress_response__pack + (const Tango__PMR__Stubs__ProgressResponse *message, + uint8_t *out) +{ + assert(message->base.descriptor == &tango__pmr__stubs__progress_response__descriptor); + return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); +} +size_t tango__pmr__stubs__progress_response__pack_to_buffer + (const Tango__PMR__Stubs__ProgressResponse *message, + ProtobufCBuffer *buffer) +{ + assert(message->base.descriptor == &tango__pmr__stubs__progress_response__descriptor); + return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); +} +Tango__PMR__Stubs__ProgressResponse * + tango__pmr__stubs__progress_response__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data) +{ + return (Tango__PMR__Stubs__ProgressResponse *) + protobuf_c_message_unpack (&tango__pmr__stubs__progress_response__descriptor, + allocator, len, data); +} +void tango__pmr__stubs__progress_response__free_unpacked + (Tango__PMR__Stubs__ProgressResponse *message, + ProtobufCAllocator *allocator) +{ + if(!message) + return; + assert(message->base.descriptor == &tango__pmr__stubs__progress_response__descriptor); + protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); +} +static const ProtobufCFieldDescriptor tango__pmr__stubs__progress_response__field_descriptors[1] = +{ + { + "Progress", + 1, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_DOUBLE, + offsetof(Tango__PMR__Stubs__ProgressResponse, has_progress), + offsetof(Tango__PMR__Stubs__ProgressResponse, progress), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, +}; +static const unsigned tango__pmr__stubs__progress_response__field_indices_by_name[] = { + 0, /* field[0] = Progress */ +}; +static const ProtobufCIntRange tango__pmr__stubs__progress_response__number_ranges[1 + 1] = +{ + { 1, 0 }, + { 0, 1 } +}; +const ProtobufCMessageDescriptor tango__pmr__stubs__progress_response__descriptor = +{ + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "Tango.PMR.Stubs.ProgressResponse", + "ProgressResponse", + "Tango__PMR__Stubs__ProgressResponse", + "Tango.PMR.Stubs", + sizeof(Tango__PMR__Stubs__ProgressResponse), + 1, + tango__pmr__stubs__progress_response__field_descriptors, + tango__pmr__stubs__progress_response__field_indices_by_name, + 1, tango__pmr__stubs__progress_response__number_ranges, + (ProtobufCMessageInit) tango__pmr__stubs__progress_response__init, + NULL,NULL,NULL /* reserved[123] */ +}; diff --git a/Software/Code_Composer/twine_usblib_demo/PMR/Stubs/ProgressResponse.pb-c.h b/Software/Code_Composer/twine_usblib_demo/PMR/Stubs/ProgressResponse.pb-c.h new file mode 100644 index 000000000..76e196a97 --- /dev/null +++ b/Software/Code_Composer/twine_usblib_demo/PMR/Stubs/ProgressResponse.pb-c.h @@ -0,0 +1,72 @@ +/* Generated by the protocol buffer compiler. DO NOT EDIT! */ +/* Generated from: ProgressResponse.proto */ + +#ifndef PROTOBUF_C_ProgressResponse_2eproto__INCLUDED +#define PROTOBUF_C_ProgressResponse_2eproto__INCLUDED + +#include <protobuf-c/protobuf-c.h> + +PROTOBUF_C__BEGIN_DECLS + +#if PROTOBUF_C_VERSION_NUMBER < 1003000 +# error This file was generated by a newer version of protoc-c which is incompatible with your libprotobuf-c headers. Please update your headers. +#elif 1003000 < PROTOBUF_C_MIN_COMPILER_VERSION +# error This file was generated by an older version of protoc-c which is incompatible with your libprotobuf-c headers. Please regenerate this file with a newer version of protoc-c. +#endif + + +typedef struct _Tango__PMR__Stubs__ProgressResponse Tango__PMR__Stubs__ProgressResponse; + + +/* --- enums --- */ + + +/* --- messages --- */ + +struct _Tango__PMR__Stubs__ProgressResponse +{ + ProtobufCMessage base; + protobuf_c_boolean has_progress; + double progress; +}; +#define TANGO__PMR__STUBS__PROGRESS_RESPONSE__INIT \ + { PROTOBUF_C_MESSAGE_INIT (&tango__pmr__stubs__progress_response__descriptor) \ + , 0, 0 } + + +/* Tango__PMR__Stubs__ProgressResponse methods */ +void tango__pmr__stubs__progress_response__init + (Tango__PMR__Stubs__ProgressResponse *message); +size_t tango__pmr__stubs__progress_response__get_packed_size + (const Tango__PMR__Stubs__ProgressResponse *message); +size_t tango__pmr__stubs__progress_response__pack + (const Tango__PMR__Stubs__ProgressResponse *message, + uint8_t *out); +size_t tango__pmr__stubs__progress_response__pack_to_buffer + (const Tango__PMR__Stubs__ProgressResponse *message, + ProtobufCBuffer *buffer); +Tango__PMR__Stubs__ProgressResponse * + tango__pmr__stubs__progress_response__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data); +void tango__pmr__stubs__progress_response__free_unpacked + (Tango__PMR__Stubs__ProgressResponse *message, + ProtobufCAllocator *allocator); +/* --- per-message closures --- */ + +typedef void (*Tango__PMR__Stubs__ProgressResponse_Closure) + (const Tango__PMR__Stubs__ProgressResponse *message, + void *closure_data); + +/* --- services --- */ + + +/* --- descriptors --- */ + +extern const ProtobufCMessageDescriptor tango__pmr__stubs__progress_response__descriptor; + +PROTOBUF_C__END_DECLS + + +#endif /* PROTOBUF_C_ProgressResponse_2eproto__INCLUDED */ diff --git a/Software/Code_Composer/twine_usblib_demo/main.c b/Software/Code_Composer/twine_usblib_demo/main.c index d7bcae1dd..db6f6fec5 100644 --- a/Software/Code_Composer/twine_usblib_demo/main.c +++ b/Software/Code_Composer/twine_usblib_demo/main.c @@ -1,3 +1,4 @@ +#include <protobuf-c/person-pb-c.h> #include <stdbool.h> #include <stdlib.h> #include <stdint.h> @@ -24,7 +25,9 @@ #include "utils/ustdlib.h" #include "usb_serial_adapter.h" #include "graphics_adapter.h" -#include "protobuf/person-pb-c.h" +#include "MessageContainer.pb-c.h" +#include "CalculateRequest.pb-c.h" +#include "CalculateResponse.pb-c.h" //***************************************************************************** // @@ -69,9 +72,42 @@ void USB0Handler(void) void receive_callback(char* buffer, size_t length) { //SendChars(buffer,length); - draw_string(buffer, length); + //draw_string(buffer, length); //draw_image((uint8_t *)buffer); + Tango__PMR__Common__MessageContainer* container = tango__pmr__common__message_container__unpack(NULL, length, (uint8_t*)buffer); + + + if (container->type == TANGO__PMR__COMMON__MESSAGE_TYPE__CalculateRequest) + { + Tango__PMR__Stubs__CalculateRequest* request = tango__pmr__stubs__calculate_request__unpack(NULL, container->data.len, container->data.data); + + Tango__PMR__Stubs__CalculateResponse* response = NULL; + tango__pmr__stubs__calculate_response__init(response); + response->sum = request->a + request->b; + response->has_sum = true; + + Tango__PMR__Common__MessageContainer responseContainer = TANGO__PMR__COMMON__MESSAGE_CONTAINER__INIT; + responseContainer.completed = true; + responseContainer.token = container->token; + responseContainer.has_completed = true; + responseContainer.has_data = true; + responseContainer.has_type = true; + responseContainer.type = TANGO__PMR__COMMON__MESSAGE_TYPE__CalculateResponse; + + uint8_t* d; + size_t size = tango__pmr__stubs__calculate_response__pack(response, d); + responseContainer.data.data = d; + responseContainer.data.len = size; + + uint8_t* output = NULL; + size = tango__pmr__common__message_container__pack(&responseContainer, &output); + + SendChars(output, size); + } + + free(container); + // Person* p = person__unpack (NULL, length, (uint8_t*)buffer); // void* buf = malloc (length); // person__pack (p, buf); diff --git a/Software/Code_Composer/twine_usblib_demo/protobuf/person-pb-c.c b/Software/Code_Composer/twine_usblib_demo/protobuf-c/person-pb-c.c index 7493ef609..7493ef609 100644 --- a/Software/Code_Composer/twine_usblib_demo/protobuf/person-pb-c.c +++ b/Software/Code_Composer/twine_usblib_demo/protobuf-c/person-pb-c.c diff --git a/Software/Code_Composer/twine_usblib_demo/protobuf/person-pb-c.h b/Software/Code_Composer/twine_usblib_demo/protobuf-c/person-pb-c.h index 6dd6f393b..962898005 100644 --- a/Software/Code_Composer/twine_usblib_demo/protobuf/person-pb-c.h +++ b/Software/Code_Composer/twine_usblib_demo/protobuf-c/person-pb-c.h @@ -4,7 +4,7 @@ #ifndef PROTOBUF_C_person_2eproto__INCLUDED #define PROTOBUF_C_person_2eproto__INCLUDED -#include "protobuf-c.h" +#include <protobuf-c/protobuf-c.h> PROTOBUF_C__BEGIN_DECLS diff --git a/Software/Code_Composer/twine_usblib_demo/protobuf/protobuf-c.c b/Software/Code_Composer/twine_usblib_demo/protobuf-c/protobuf-c.c index 5debac820..5debac820 100644 --- a/Software/Code_Composer/twine_usblib_demo/protobuf/protobuf-c.c +++ b/Software/Code_Composer/twine_usblib_demo/protobuf-c/protobuf-c.c diff --git a/Software/Code_Composer/twine_usblib_demo/protobuf/protobuf-c.h b/Software/Code_Composer/twine_usblib_demo/protobuf-c/protobuf-c.h index c8fa4fc2a..c8fa4fc2a 100644 --- a/Software/Code_Composer/twine_usblib_demo/protobuf/protobuf-c.h +++ b/Software/Code_Composer/twine_usblib_demo/protobuf-c/protobuf-c.h diff --git a/Software/Visual_Studio/Tango.Protobuf/CompilerFileResult.cs b/Software/Visual_Studio/Tango.Protobuf/CompilerFileResult.cs index 244ee3857..feef53b9a 100644 --- a/Software/Visual_Studio/Tango.Protobuf/CompilerFileResult.cs +++ b/Software/Visual_Studio/Tango.Protobuf/CompilerFileResult.cs @@ -22,7 +22,7 @@ namespace Tango.Protobuf /// <summary> /// Gets the result name. /// </summary> - public String Name { get; private set; } + public String Name { get; internal set; } /// <summary> /// Gets the result source path. diff --git a/Software/Visual_Studio/Tango.Protobuf/Compilers/CCompiler.cs b/Software/Visual_Studio/Tango.Protobuf/Compilers/CCompiler.cs index 18aab84c6..0d97c9711 100644 --- a/Software/Visual_Studio/Tango.Protobuf/Compilers/CCompiler.cs +++ b/Software/Visual_Studio/Tango.Protobuf/Compilers/CCompiler.cs @@ -37,5 +37,24 @@ namespace Tango.Protobuf.Compilers { return "protoc-c"; } + + /// <summary> + /// Compiles the specified .proto message file. + /// </summary> + /// <param name="inputFile">.proto file to compile</param> + /// <returns> + /// A list of compiled results. + /// </returns> + //public override IEnumerable<CompilerFileResult> CompileFile(string inputFile) + //{ + // var files = base.CompileFile(inputFile); + + // foreach (var file in files) + // { + // file.Name = file.Name.Replace(".pb-c", ""); + // } + + // return files; + //} } } |
