pub const fn patch_word(index: usize, word: u32) -> FrameExpand description
Writes one word of the patch.
§Arguments
index- which word, counting from zero.word- the word itself.
§Returns
The command. The address is four apart from its neighbors, because each word takes four of them.
§Examples
use pamoja_radios::sx1302::sx1261::patch_word;
assert_eq!(patch_word(0, 0x00337fe1).payload(), &[0x80, 0x00, 0x00, 0x33, 0x7f, 0xe1]);
assert_eq!(patch_word(1, 0).payload()[..2], [0x80, 0x04], "four addresses on");