pub struct Board {
pub output: PaOutput,
pub tcxo: bool,
}Expand description
How a module wires its SX127x: the amplifier output on its antenna and its clock.
The SPI interface cannot see which output a module uses, so it comes from the module’s schematic.
§Examples
use pamoja_radios::sx127x::config::PaOutput;
use pamoja_radios::sx127x::Board;
// An RFM95W: the antenna on PA_BOOST and a crystal.
let board = Board::new(PaOutput::PaBoost);
assert!(!board.tcxo);Fields§
§output: PaOutputThe amplifier output the antenna is on.
tcxo: boolWhether a TCXO drives the XTA pin in place of a crystal.
Implementations§
Trait Implementations§
impl Copy for Board
impl Eq for Board
impl StructuralPartialEq for Board
Auto Trait Implementations§
impl Freeze for Board
impl RefUnwindSafe for Board
impl Send for Board
impl Sync for Board
impl Unpin for Board
impl UnsafeUnpin for Board
impl UnwindSafe for Board
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more