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.
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 |