Skip to main content

pamoja_lora_sim_chip_sx127x

Function pamoja_lora_sim_chip_sx127x 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn pamoja_lora_sim_chip_sx127x( pa_boost: bool, tcxo: bool, out_chip: *mut *mut PamojaLoraSimChip, ) -> PamojaStatus
Expand description

Creates a simulated SX1276, SX1277, SX1278, or SX1279, out of reset.

§Arguments

  • pa_boost - true when the antenna is on the PA_BOOST output, as on the RFM95W, and false for RFO.
  • tcxo - true when a TCXO drives the XTA pin instead of a crystal.
  • out_chip - receives the chip.

§Returns

PamojaStatus::Ok with the chip in out_chip, or PamojaStatus::InvalidArgument for a null out_chip.

§Safety

out_chip must be a writable pointer or null.