profile_params

Function profile_params 

Source
pub fn profile_params<RK, DLY>(
    lora: &mut LoRa<RK, DLY>,
    profile: &PhyProfile,
    rx_preamble_symbols: u16,
) -> Result<(ModulationParams, PacketParams, PacketParams), RadioError>
where RK: RadioKind, DLY: DelayNs,
Expand description

Build modulation and packet parameters for a vetted PHY profile.

The private sync word the profiles specify is not set here: it is fixed at LoRa::new time by enable_public_network = false. CRC is on and IQ normal, matching what MeshCore transmits.

rx_preamble_symbols stays a caller decision because it is a property of the receiving chip rather than the profile: 8 suffices on an SX126x, while the LR1110 needs the full transmitted length to detect reliably.

Returns (ModulationParams, rx_PacketParams, tx_PacketParams).