Reputation: 1
I am trying to interface an RF module with AVR ATmega 128. I found this code interesting, but I couldn't understand these two lines:
//define receive parameters
#define SYNC 0XAA// synchro signal
#define RADDR 0x44
Upvotes: 0
Views: 1396
Reputation: 11
The page moved to: [https://scienceprog.com/running-tx433-and-rx433-rf-modules-with-avr-microcontrollers/][1]
There are better ways to encode data to avoid losing synchronization. The best known is Non-return to zero (NRZ). Also, check out Biphase encoding.
Upvotes: 1
Reputation: 3869
Without other information, I'll think you're using C or some C-like language.
define
creates a so called macro, this means in your code every reference to SYNC
for example is replaced by 0XAA
Hope this helps!
Upvotes: 1