pub const fn channel_frequency(channel: u8) -> [Register; 2]Expand description
The pair of registers holding one channel intermediate frequency.
The eight pairs run from the start of the block, two bytes each, the high bits first.
§Arguments
channel- which of the eight, counting from zero. Higher is clamped to seven.
§Returns
The high bits and then the low bits.
§Examples
use pamoja_radios::sx1302::register::channel_frequency;
let [high, low] = channel_frequency(0);
assert_eq!((high.address, high.width), (0x5800, 5));
assert_eq!((low.address, low.width), (0x5801, 8));
// The last channel is seven pairs along.
assert_eq!(channel_frequency(7)[0].address, 0x580e);