Skip to main content

mode

Function mode 

Source
pub const fn mode(status: u8) -> u8
Expand description

The mode a status byte reports.

§Arguments

  • status - what the status command answered with.

§Returns

The three bits that name the mode.

§Examples

use pamoja_radios::sx1302::sx1250::{mode, MODE_STANDBY_XOSC};

assert_eq!(mode(0b0011_0000), MODE_STANDBY_XOSC);