For a project, I need to store an array of structures in PROGMEM. Array MessageTable[]
will be composed of about ten struct InMessage
elements. InMessage looks sort of like this:
struct AvcInMessage {
MessageHandler msgHandler;
byte dataSize;
byte data[8];
char description[20];
};
MessageHandler is not a data type... yet. I'm not really sure what data type to use. I want to be able to pick a message from the table and then call MessageTable[x].msgHandler()
if that makes sense. I'm almost positive that this involves a pointer. Does someone here have an idea about what I'm looking for?