pub const fn write_register(register: u16, value: u8) -> FrameExpand description
Writes one of the radio’s registers.
§Arguments
register- the address.value- what to write.
§Returns
The command.
§Examples
use pamoja_radios::sx1302::sx1261::{write_register, REG_SENSITIVITY, SENSITIVITY_VALUE};
let frame = write_register(REG_SENSITIVITY, SENSITIVITY_VALUE);
assert_eq!(frame.payload(), &[0x08, 0xac, 0xcb]);