Hello all,
I'm trying to understand how to code for the RFL430CL331H NFC tag by going through the example code that was provided for it. In the example code there is often this syntax used:
typedef struct NdefFile_Type
{
unsigned char FileID[2]; // The NFC file ID
unsigned char * FilePointer; // the location in MCU memory where it is located
unsigned int FileLength; // the length of the file
}NdefFileType;
NdefFile_Type file;
file.FilePointer= (uint8_t *) data;
I understand what pointers are, but what does the "(uint8_5 *) data;" part of the line actually mean?
I would think that the value of file.FilePointer should be set to an address like "&data", but why is it set to "(uint_8 *) data"? If I assume the parenthesis does nothing, then it makes less sense because this would be using the data value as an address and using a random value that happens to be stored at the address that matches the data value.
Thanks,
Victor Wang