Skip to main content

refused

Function refused 

Source
pub const fn refused(status: u8, chain: Chain) -> bool
Expand description

Whether the carrier check kept a started transmission off the air.

§Arguments

  • status - the gain control’s status register, read once the transmission started.
  • chain - the chain the packet was armed on.

§Returns

Bit 6 for chain A and bit 7 for chain B.

§Examples

use pamoja_radios::sx1302::lbt::refused;
use pamoja_radios::sx1302::tx::Chain;

assert!(refused(0b0100_0001, Chain::A), "started, and held back by the check");
assert!(!refused(0b1000_0001, Chain::A), "bit 7 is chain B's");