#[repr(C)]pub struct PamojaSx127xModem {
pub modem_config_1: u8,
pub modem_config_2: u8,
pub modem_config_3: u8,
pub detection_optimize: u8,
pub detection_threshold: u8,
}Expand description
The LoRa modem registers of an SX127x for a link.
Fields§
§modem_config_1: u8RegModemConfig1: bandwidth, coding rate, and header mode.
modem_config_2: u8RegModemConfig2: spreading factor, CRC, and the top bits of the symbol timeout.
modem_config_3: u8RegModemConfig3: low data rate optimization and the AGC.
detection_optimize: u8The DetectionOptimize bits of RegDetectOptimize, 0x05 for SF6 and 0x03 otherwise, to put in its low three bits.
detection_threshold: u8RegDetectionThreshold.
Trait Implementations§
Source§impl Clone for PamojaSx127xModem
impl Clone for PamojaSx127xModem
Source§fn clone(&self) -> PamojaSx127xModem
fn clone(&self) -> PamojaSx127xModem
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 PamojaSx127xModem
Source§impl Debug for PamojaSx127xModem
impl Debug for PamojaSx127xModem
Source§impl Default for PamojaSx127xModem
impl Default for PamojaSx127xModem
Source§fn default() -> PamojaSx127xModem
fn default() -> PamojaSx127xModem
Returns the “default value” for a type. Read more
impl Eq for PamojaSx127xModem
Source§impl PartialEq for PamojaSx127xModem
impl PartialEq for PamojaSx127xModem
impl StructuralPartialEq for PamojaSx127xModem
Auto Trait Implementations§
impl Freeze for PamojaSx127xModem
impl RefUnwindSafe for PamojaSx127xModem
impl Send for PamojaSx127xModem
impl Sync for PamojaSx127xModem
impl Unpin for PamojaSx127xModem
impl UnsafeUnpin for PamojaSx127xModem
impl UnwindSafe for PamojaSx127xModem
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