pub fn spreading_factor_from_u8(sf: u8) -> Option<SpreadingFactor>
Convert a numeric spreading factor (5-12) to the lora-phy enum.