#[repr(C)]pub struct PamojaSx127xTxPower {
pub pa_config: u8,
pub pa_dac: u8,
pub ocp: u8,
pub output_dbm: i8,
}Expand description
The amplifier settings of an SX127x: RegPaConfig, RegPaDac, and RegOcp.
Fields§
§pa_config: u8RegPaConfig: PaSelect, MaxPower, and OutputPower.
pa_dac: u8RegPaDac: the +20 dBm setting above +17 dBm on PA_BOOST, else its reset value.
ocp: u8RegOcp: the current limit.
output_dbm: i8The output power the settings produce, in dBm.
Trait Implementations§
Source§impl Clone for PamojaSx127xTxPower
impl Clone for PamojaSx127xTxPower
Source§fn clone(&self) -> PamojaSx127xTxPower
fn clone(&self) -> PamojaSx127xTxPower
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for PamojaSx127xTxPower
Source§impl Debug for PamojaSx127xTxPower
impl Debug for PamojaSx127xTxPower
Source§impl Default for PamojaSx127xTxPower
impl Default for PamojaSx127xTxPower
Source§fn default() -> PamojaSx127xTxPower
fn default() -> PamojaSx127xTxPower
Returns the “default value” for a type. Read more
impl Eq for PamojaSx127xTxPower
Source§impl PartialEq for PamojaSx127xTxPower
impl PartialEq for PamojaSx127xTxPower
impl StructuralPartialEq for PamojaSx127xTxPower
Auto Trait Implementations§
impl Freeze for PamojaSx127xTxPower
impl RefUnwindSafe for PamojaSx127xTxPower
impl Send for PamojaSx127xTxPower
impl Sync for PamojaSx127xTxPower
impl Unpin for PamojaSx127xTxPower
impl UnsafeUnpin for PamojaSx127xTxPower
impl UnwindSafe for PamojaSx127xTxPower
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