Add examle use for setSyncBits method
This commit is contained in:
parent
dbbb12610c
commit
c543a42124
1 changed files with 7 additions and 0 deletions
|
@ -74,6 +74,13 @@ void setup() {
|
||||||
while (true);
|
while (true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// FSK modem on SX126x can handle the sync word setting in bits, not just
|
||||||
|
// whole bytes. The value used is LSB first.
|
||||||
|
// This makes same result as fsk.setSyncWord(syncWord, 8):
|
||||||
|
state = fsk.setSyncBits(syncWord, 64);
|
||||||
|
// This will use 0x012 as sync word (12 bits only):
|
||||||
|
state = fsk.setSyncBits(syncWord, 12);
|
||||||
|
|
||||||
// FSK modem allows advanced CRC configuration
|
// FSK modem allows advanced CRC configuration
|
||||||
// Default is CCIT CRC16 (2 bytes, initial 0x1D0F, polynomial 0x1021, inverted)
|
// Default is CCIT CRC16 (2 bytes, initial 0x1D0F, polynomial 0x1021, inverted)
|
||||||
// Set CRC to IBM CRC (2 bytes, initial 0xFFFF, polynomial 0x8005, non-inverted)
|
// Set CRC to IBM CRC (2 bytes, initial 0xFFFF, polynomial 0x8005, non-inverted)
|
||||||
|
|
Loading…
Add table
Reference in a new issue