Skip to main content

pamoja_lorawan_relay_second_channel

Function pamoja_lorawan_relay_second_channel 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn pamoja_lorawan_relay_second_channel( second_channel_index: u8, data_rate: u8, ack_offset: u8, frequency_hz: u32, out_channel: *mut PamojaLoraRelayChannel, ) -> PamojaStatus
Expand description

Reads the second channel a relay or end device configuration describes.

§Arguments

  • second_channel_index - the coded index, 1 for a second channel.
  • data_rate - its data rate.
  • ack_offset - the coded acknowledgment offset, TS011-1.0.1 table 35.
  • frequency_hz - its frequency.
  • out_channel - receives the channel with its acknowledgment frequency.

§Returns

PamojaStatus::Ok on success.

§Errors

Returns PamojaStatus::InvalidArgument for a null pointer, an index that is not 1, or a reserved offset.

§Safety

out_channel must be writable.