pub unsafe extern "C" fn otPlatDiagRadioGetPowerSettings(
    aInstance: *mut otInstance,
    aChannel: u8,
    aTargetPower: *mut i16,
    aActualPower: *mut i16,
    aRawPowerSetting: *mut u8,
    aRawPowerSettingLength: *mut u16
) -> otError
Expand description

Get the power settings for the given channel.

@param[in] aInstance The OpenThread instance structure. @param[in] aChannel The radio channel. @param[out] aTargetPower The target power in 0.01 dBm. @param[out] aActualPower The actual power in 0.01 dBm. @param[out] aRawPowerSetting A pointer to the raw power setting byte array. @param[in,out] aRawPowerSettingLength On input, a pointer to the size of @p aRawPowerSetting. On output, a pointer to the length of the raw power setting data.

@retval OT_ERROR_NONE Successfully got the target power. @retval OT_ERROR_INVALID_ARGS The @p aChannel is invalid, @aTargetPower, @p aActualPower, @p aRawPowerSetting or @p aRawPowerSettingLength is NULL or @aRawPowerSettingLength is too short. @retval OT_ERROR_NOT_FOUND The power settings for the @p aChannel was not found. @retval OT_ERROR_NOT_IMPLEMENTED This method is not implemented.