Skip to main content

fsk_sync_word

Function fsk_sync_word 

Source
pub const fn fsk_sync_word(byte: u8) -> Register
Expand description

One byte of the sync word the FSK receiver looks for.

§Arguments

  • byte - which byte, counting from the least significant. Anything past the last is read as the last.

§Returns

The register holding it. They run backwards through the address space, so the least significant byte sits at the highest address.

§Examples

use pamoja_radios::sx1302::register::fsk_sync_word;

assert_eq!(fsk_sync_word(0).address, 0x5b00 + 100);
assert_eq!(fsk_sync_word(7).address, 0x5b00 + 93, "and they count down");