NJ Roadmap
New Member
Just checking this:
If I've got two chars char1 (0b00001111) and char2 (0b11111111), when I set another char char3 = char1^char2, the value of char3 will be 0b11110000?
I'm not at home where I can check this on a compiler but I just had a thought for an error-checking code for RF comms..i.e. send one byte followed by its inverted value. This would allow errors to be checked as well as detected.
If I've got two chars char1 (0b00001111) and char2 (0b11111111), when I set another char char3 = char1^char2, the value of char3 will be 0b11110000?
I'm not at home where I can check this on a compiler but I just had a thought for an error-checking code for RF comms..i.e. send one byte followed by its inverted value. This would allow errors to be checked as well as detected.