Skip to main content

started

Function started 

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

Whether the gain control reports that a transmission has started on a chain.

§Arguments

  • status - the gain control’s status register.
  • chain - the chain the packet was armed on.

§Returns

Bit 0 for chain A and bit 1 for chain B.

§Examples

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

assert!(started(0b0000_0001, Chain::A));
assert!(!started(0b0000_0001, Chain::B));