Skip to main content

frequency_value

Function frequency_value 

Source
pub const fn frequency_value(hertz: u32) -> u32
Expand description

Turns a frequency into the number the radio is tuned with.

§Arguments

  • hertz - the carrier.

§Returns

The value the tune command takes.

§Examples

use pamoja_radios::sx1302::sx1261::frequency_value;

assert_eq!(frequency_value(868_100_000), 910_268_825);