XPm_ClockSetParent - 2023.1 English

Standalone Library Documentation: BSP and Libraries Document Collection (UG643)

Document ID
UG643
Release Date
2023-05-16
Version
2023.1 English

Call this function to set parent for a clock.

Note: If the access isn't permitted this function returns an error code.

Prototype

XStatus XPm_ClockSetParent(const enum XPmClock clk, const enum XPmClock parent);

Parameters

The following table lists the XPm_ClockSetParent function arguments.

Table 1. XPm_ClockSetParent Arguments
Type Name Description
const enum XPmClock clk Identifier of the target clock
const enum XPmClock parent Identifier of the target parent clock

Returns

XST_INVALID_PARAM or status of performing the operation as returned by the PMU-FW.