Xpm_SetEvents - 2022.2 English

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

Document ID
UG643
Release Date
2022-10-19
Version
2022.2 English

This function sets up one of the event counters to count events based on the Event ID passed. For supported Event IDs please refer xpm_counter.h. Upon invoked, the API searches for an available counter. After finding one, it sets up the counter to count events for the requested event.

Prototype

void Xpm_SetEvents(s32 PmcrCfg);

Parameters

The following table lists the Xpm_SetEvents function arguments.

Table 1. Xpm_SetEvents Arguments
Name Description
PmcrCfg Configuration value based on which the event counters are configured.XPM_CNTRCFG* values defined in xpm_counter.h can be utilized for setting configuration

Returns

None.