XPm_PinCtrlSetFunction - 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 a pin function.

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

Prototype

XStatus XPm_PinCtrlSetFunction(const u32 pin, const enum XPmPinFn fn);

Parameters

The following table lists the XPm_PinCtrlSetFunction function arguments.

Table 1. XPm_PinCtrlSetFunction Arguments
Type Name Description
const u32 pin Pin identifier
const enum XPmPinFn fn Pin function to be set

Returns

Status of performing the operation as returned by the PMU-FW