Skip to main content

pamoja_gateway_station_message_add_broadcast

Function pamoja_gateway_station_message_add_broadcast 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn pamoja_gateway_station_message_add_broadcast( message: *mut PamojaGatewayStationMessage, frame: *const PamojaGatewayStationBroadcast, pdu: *const u8, pdu_len: usize, ) -> PamojaStatus
Expand description

Adds a frame to a schedule.

§Arguments

  • message - the schedule.
  • frame - when and how to transmit it.
  • pdu - the frame’s bytes.
  • pdu_len - how many bytes pdu holds.

§Returns

PamojaStatus::Ok once added, or PamojaStatus::InvalidArgument for a message that is not a schedule.

§Safety

message must be a live handle, frame must point to a readable frame, and pdu to pdu_len readable bytes.