I know that i'm doing something wrong but this is the third time that I post this, for some reason after posting I cannot find the message in the board, sorry if I repeated this for the third time.
I'm working with the EEPROM from an AVR chip using the avr eeprom library. I'm using the following function:
Code:
void eeprom_read_block (void *pointer_ram, const void *pointer_eeprom, size_t n)
Here is a sample of the program:
main.c
Code:
#include <avr/eeprom.h>
typedef myStruct {int parA;
float parB;
}
void main(){myStruct theStruct;
readData(&theStruct);
}
void readData(myStruct *tempStruct){ eeprom_read_block((void *)temStruct->parA, (void *)0, sizeof(temStruct->parA));
eeprom_read_block((void *)temStruct->parB, (void *)10, sizeof(temStruct->parB);
}
The problem is that I'm getting a "cannot convert to a pointer type" error message at the line where is a float, parB in this case. Does anyone knows the solution to this problem?