Skip to main content

status

Function status 

Source
pub const fn status() -> Frame
Expand description

Asks the radio how it is.

§Returns

The command. The radio answers over the byte the payload leaves for it, which Status::read then reads.

§Examples

use pamoja_radios::sx1302::sx1261::{status, OP_GET_STATUS};

assert_eq!(status().opcode(), OP_GET_STATUS);
assert_eq!(status().payload(), &[0x00], "the radio answers over this byte");