Skip to main content

pamoja_gateway_station_message_data_rate

Function pamoja_gateway_station_message_data_rate 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn pamoja_gateway_station_message_data_rate( message: *const PamojaGatewayStationMessage, index: usize, out_rate: *mut PamojaGatewayStationDataRate, ) -> PamojaStatus
Expand description

Reads one number of a configuration’s data-rate table.

§Arguments

  • message - the configuration.
  • index - the data-rate number, below the data_rate_count its fields report.
  • out_rate - receives the data rate, with defined false for a number the table leaves undefined.

§Returns

PamojaStatus::Ok once read, or PamojaStatus::InvalidArgument for an index past the table or a message that is not a configuration.

§Safety

message must be a live handle, and out_rate must point to writable storage.