pub unsafe extern "C" fn otPlatRadioSetChannelTargetPower(
    aInstance: *mut otInstance,
    aChannel: u8,
    aTargetPower: i16
) -> otError
Expand description

Set the target power for the given channel.

@note This API is an optional radio platform API. It’s up to the platform layer to implement it. If this API is implemented, the function otPlatRadioSetTransmitPower() should be disabled.

The radio driver should set the actual output power to be less than or equal to the target power and as close as possible to the target power.

@param[in] aInstance The OpenThread instance structure. @param[in] aChannel The radio channel. @param[in] aTargetPower The target power in 0.01dBm. Passing INT16_MAX will disable this channel to use the target power.

@retval OT_ERROR_NONE Successfully set the target power. @retval OT_ERROR_INVALID_ARGS The @p aChannel or @p aTargetPower is invalid. @retval OT_ERROR_NOT_IMPLEMENTED The feature is not implemented.