pub struct RadioProfile {
pub frequency: Frequency,
pub modulation: Modulation,
pub tx_power: TxPower,
pub preamble: PreambleSymbols,
pub region: Region,
}Fields§
§frequency: Frequency§modulation: Modulation§tx_power: TxPower§preamble: PreambleSymbols§region: RegionImplementations§
Source§impl RadioProfile
impl RadioProfile
Sourcepub const fn validate(self) -> Result<(), RadioProfileError>
pub const fn validate(self) -> Result<(), RadioProfileError>
Validate the profile against both the selected region and the SX1262 PA.
pub const fn nominal_bitrate_bps(self) -> u32
Sourcepub const fn time_on_air_us(self, frame_bytes: usize) -> u64
pub const fn time_on_air_us(self, frame_bytes: usize) -> u64
RNode firmware add_airtime (RNode_Firmware.ino, SX126x arm): the real on-air time of one frame_bytes transmission at this profile, counting what the nominal bitrate ignores (preamble, PHY header symbols, CRC bits, sync overhead, low-data-rate widening). Integer throughout; agrees with the firmware’s float arithmetic to under a microsecond.
Trait Implementations§
Source§impl Clone for RadioProfile
impl Clone for RadioProfile
Source§fn clone(&self) -> RadioProfile
fn clone(&self) -> RadioProfile
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 RadioProfile
Source§impl Debug for RadioProfile
impl Debug for RadioProfile
impl Eq for RadioProfile
Source§impl PartialEq for RadioProfile
impl PartialEq for RadioProfile
impl StructuralPartialEq for RadioProfile
Auto Trait Implementations§
impl Freeze for RadioProfile
impl RefUnwindSafe for RadioProfile
impl Send for RadioProfile
impl Sync for RadioProfile
impl Unpin for RadioProfile
impl UnsafeUnpin for RadioProfile
impl UnwindSafe for RadioProfile
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