I have written a eeprom read and write keeping in mind an array
Now i want to pass a struct. Can i simply send a struct as below.
Does it have complications like padding bytes or some other problems? Can the struct have another struct as a member? Please advise.
void EepromWrite(char *data,unsigned char noofbytes, char addr);
EepromWrite((char *)(&struct), sizeof(struct), addr);