Local vars is a dream (and in wish list) for PBP.
I think with a bit of creativity, structures can be implemented with arrays in PBP also.
Not specific to data structures though.
Ioannis
Local vars is a dream (and in wish list) for PBP.
I think with a bit of creativity, structures can be implemented with arrays in PBP also.
Not specific to data structures though.
Ioannis
pbp structures , not really
I tried this for array of mixed variable types [ effortless in C ] but its more trouble than its worth
http://www.picbasic.co.uk/forum/show...ight=structure
Warning I'm not a teacher
I'm restructuring the whole USB protocol. I think I figured out I was trying to shove a 247 byte packet through a 64 byte USB hole. Instead of creating a new USB ID# for every variable I need to transfer (247 of them), I will build a 64 byte packet with relevant data. This will most definitely speed up the transmissions as well as offer the flexibility of not having to transfer a bunch of data that hasn't changed.
Each variable will have a unique code (0x00 >> 0xFF) that gets loaded into iCmd(x) (at the PIC side) or oCmd(x) (at the PC side) with the data value being put into iData(x)/oData(x). For a 64 byte array, it takes 2 packets; Table1L and Table1H. On the PC side I added a module to handle sorting and loading packets. Hope to be back testing later today.
And to think I originally thought this was an EEPROM issue. I'm on a learning spree once again.
After 2+ weeks of battling this challenge, I have conquered!
Issue #1: Trying to shove 247 bytes of data through a 64 byte Endpoint.
Fix: Restructured the Send/Receive from lots of variables to a 64 byte packet. The packet can be structured any way I need.
Issue #2: The HIDmaker-generated code for Sending Reports had a glitch.
Fix: I found it & fixed it in my code. I notified Dr. Bob about the glitch, hopefully it will be incorporated into his current releases and any updates he issues. I'm madly in love with HIDmaker, but it isn't quite perfect.
Bookmarks