From 32d37fd41d466876f9aee7d7b468f72774aceddc Mon Sep 17 00:00:00 2001 From: Thiago Alves Date: Wed, 7 Feb 2018 11:39:14 -0600 Subject: [PATCH] Added PiXtend 2S support --- glue_generator_src/glue_generator.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/glue_generator_src/glue_generator.cpp b/glue_generator_src/glue_generator.cpp index dc07cc7..2e88b1c 100644 --- a/glue_generator_src/glue_generator.cpp +++ b/glue_generator_src/glue_generator.cpp @@ -52,6 +52,10 @@ extern unsigned long long common_ticktime__;\r\n\ IEC_BOOL *bool_input[BUFFER_SIZE][8];\r\n\ IEC_BOOL *bool_output[BUFFER_SIZE][8];\r\n\ \r\n\ +//Bytes\r\n\ +IEC_BYTE *byte_input[BUFFER_SIZE];\r\n\ +IEC_BYTE *byte_output[BUFFER_SIZE];\r\n\ +\r\n\ //Analog I/O\r\n\ IEC_UINT *int_input[BUFFER_SIZE];\r\n\ IEC_UINT *int_output[BUFFER_SIZE];\r\n\ @@ -175,6 +179,9 @@ void glueVar(char *varName, char *varType) case 'X': glueVars << "\tbool_input[" << pos1 << "][" << pos2 << "] = " << varName << ";\r\n"; break; + case 'B': + glueVars << "\tbyte_input[" << pos1 << "] = " << varName << ";\r\n"; + break; case 'W': glueVars << "\tint_input[" << pos1 << "] = " << varName << ";\r\n"; break; @@ -188,6 +195,9 @@ void glueVar(char *varName, char *varType) case 'X': glueVars << "\tbool_output[" << pos1 << "][" << pos2 << "] = " << varName << ";\r\n"; break; + case 'B': + glueVars << "\tbyte_output[" << pos1 << "] = " << varName << ";\r\n"; + break; case 'W': glueVars << "\tint_output[" << pos1 << "] = " << varName << ";\r\n"; break;