We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
This is not a problem but a question of you C experts. I am trying to use Keil tools so I thought I would start here. The following typedef is declared in a header file that is included in a header file that is included in a header file that is included in a header file about five deep. My question is basic C. Why would the programmer use a struct of one uint16? I can understand a callback to define a table of records in non-volatile memory. Don't ask me how the programmer planned to use this code. It's not used anywhere!
typedef struct { uint16 numRecs; } nvBindingHdr_t;
By the way, the code is from Texas Instruments Z-Stack for their ZigBee CC2530 devices. Please educate me a bit. Bradford
Gents; Thank you both for your feedback. Per; What you write makes a great deal of sense to me. Thanks again, Bradford