openthread_sys

Function otPlatRadioSetChannelMaxTransmitPower

Source
pub unsafe extern "C" fn otPlatRadioSetChannelMaxTransmitPower(
    aInstance: *mut otInstance,
    aChannel: u8,
    aMaxPower: i8,
) -> otError
Expand description

Set the max transmit power for a specific channel.

@param[in] aInstance The OpenThread instance structure. @param[in] aChannel The radio channel. @param[in] aMaxPower The max power in dBm, passing OT_RADIO_RSSI_INVALID will disable this channel.

@retval OT_ERROR_NOT_IMPLEMENTED The feature is not implemented @retval OT_ERROR_INVALID_ARGS The specified channel is not valid. @retval OT_ERROR_FAILED Other platform specific errors. @retval OT_ERROR_NONE Successfully set max transmit power.