XOR function

Status
Not open for further replies.

Zaeed

New Member
Hi, I'm trying to perform a checksum on my RFID tag. I have an array with the 5 bytes that make up my RFID and a 6th that is the checksum.

I have to XOR the 5 bytes and check if they equal the 6th..

How do I do this? I can't figure it out

Thanks
 
in C, the operator is ^. To XOR a and b you write:
Code:
a = a^b;
or
Code:
a ^= b;
 
Last edited:
Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…