pub unsafe extern "C" fn otLinkRawTransmit(
    aInstance: *mut otInstance,
    aCallback: otLinkRawTransmitDone
) -> otError
Expand description

Begins the transmit sequence on the radio.

The caller must form the IEEE 802.15.4 frame in the buffer provided by otLinkRawGetTransmitBuffer() before requesting transmission. The channel and transmit power are also included in the otRadioFrame structure.

The transmit sequence consists of:

  1. Transitioning the radio to Transmit from Receive.
  2. Transmits the PSDU on the given channel and at the given transmit power.

@param[in] aInstance A pointer to an OpenThread instance. @param[in] aCallback A pointer to a function called on completion of the transmission.

@retval OT_ERROR_NONE Successfully transitioned to Transmit. @retval OT_ERROR_INVALID_STATE The radio was not in the Receive state.