C candide Active Member Licensed User May 12, 2020 #1 in a h file arduino i have : B4X: struct HighLow { uint8_t high; uint8_t low; }; struct Protocol { uint16_t pulseLength; HighLow syncFactor; HighLow zero; HighLow one; bool invertedSignal; }; void setProtocol(Protocol protocol); how i can handle that in h file B4R and in xml file? . (i didn't find example to help me...) thanks for your help
in a h file arduino i have : B4X: struct HighLow { uint8_t high; uint8_t low; }; struct Protocol { uint16_t pulseLength; HighLow syncFactor; HighLow zero; HighLow one; bool invertedSignal; }; void setProtocol(Protocol protocol); how i can handle that in h file B4R and in xml file? . (i didn't find example to help me...) thanks for your help
Erel B4X founder Staff member Licensed User Longtime User May 13, 2020 #2 You cannot expose the struct directly. Best to "hide" it and pass the parameters needed and create the struct in your code.
You cannot expose the struct directly. Best to "hide" it and pass the parameters needed and create the struct in your code.