14 lines
410 B
Plaintext
14 lines
410 B
Plaintext
union dual
|
|
{
|
|
char charBuff[34];
|
|
int intBuff[17];
|
|
}
|
|
|
|
dual myData;
|
|
|
|
Using this, you can write 34 characters to charBuff[] as characters,
|
|
and then when want to ship them out to the tag,
|
|
just write the 17 integers out from intBuff.
|
|
The greatest typecasting technique ever invented.
|
|
|
|
refer to them in the program as myData.charBuff, and myData.intBuff. |