Skip to main content

PamojaSx126xBoard

Struct PamojaSx126xBoard 

Source
#[repr(C)]
pub struct PamojaSx126xBoard { pub high_power: bool, pub tcxo: bool, pub tcxo_voltage: u8, pub dio2_rf_switch: bool, pub dc_dc: bool, pub llcc68: bool, pub tcxo_settle_us: u32, }
Expand description

How a module wires its SX126x.

The SPI interface cannot see the parts around the chip, so these come from the module’s schematic or its maker’s example code.

Fields§

§high_power: bool

true for the high power amplifier of the SX1262, SX1268, and LLCC68, false for the SX1261’s low power amplifier.

§tcxo: bool

true when a TCXO powered from DIO3 clocks the chip instead of a crystal.

§tcxo_voltage: u8

The TCXO supply voltage as SetDIO3AsTCXOCtrl takes it: 0 for 1.6 V, 1 for 1.7 V, 2 for 1.8 V, 3 for 2.2 V, 4 for 2.4 V, 5 for 2.7 V, 6 for 3.0 V, and 7 for 3.3 V.

§dio2_rf_switch: bool

true when DIO2 drives the antenna switch.

§dc_dc: bool

true when the module fits the inductor the DC-DC regulator needs.

§llcc68: bool

true for an LLCC68, which is held to the rates it supports.

§tcxo_settle_us: u32

How long the TCXO takes to settle, in microseconds.

Trait Implementations§

Source§

impl Clone for PamojaSx126xBoard

Source§

fn clone(&self) -> PamojaSx126xBoard

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Copy for PamojaSx126xBoard

Source§

impl Debug for PamojaSx126xBoard

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for PamojaSx126xBoard

Source§

fn default() -> PamojaSx126xBoard

Returns the “default value” for a type. Read more
Source§

impl Eq for PamojaSx126xBoard

Source§

impl PartialEq for PamojaSx126xBoard

Source§

fn eq(&self, other: &PamojaSx126xBoard) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for PamojaSx126xBoard

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
§

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.