Pulse Width Modulator (PWM)
If latched faults are configured, the application must call ROM_PWMGenFaultClear() to clear
each trigger.
Note:
This function is only available on devices supporting extended PWM fault handling.
Returns:
Returns the current state of the fault triggers for the given PWM generator. A set bit indicates
that the associated trigger is active. For PWM_FAULT_GROUP_0, the returned value is
a logical OR of PWM_FAULT_FAULT0, PWM_FAULT_FAULT1, PWM_FAULT_FAULT2,
or PWM_FAULT_FAULT3. For PWM_FAULT_GROUP_1, the return value is the log-
ical OR of PWM_FAULT_DCMP0, PWM_FAULT_DCMP1, PWM_FAULT_DCMP2,
PWM_FAULT_DCMP3, PWM_FAULT_DCMP4, PWM_FAULT_DCMP5,
PWM_FAULT_DCMP6, or PWM_FAULT_DCMP7.
15.2.1.11 ROM_PWMGenFaultTriggerGet
Returns the set of fault triggers currently configured for a given PWM generator.
Prototype:
uint32_t
ROM_PWMGenFaultTriggerGet(uint32_t ui32Base,
uint32_t ui32Gen,
uint32_t ui32Group)
ROM Location:
ROM_APITABLE is an array of pointers located at 0x0100.0010.
ROM_PWMTABLE is an array of pointers located at ROM_APITABLE[8].
ROM_PWMGenFaultTriggerGet is a function pointer located at ROM_PWMTABLE[26].
Parameters:
ui32Base is the base address of the PWM module.
ui32Gen is the PWM generator whose fault triggers are being queried. Must be one of
PWM_GEN_0, PWM_GEN_1, PWM_GEN_2, or PWM_GEN_3.
ui32Group indicates the subset of faults that are being queried. This must be
PWM_FAULT_GROUP_0 or PWM_FAULT_GROUP_1.
Description:
This function allows an application to query the current set of inputs that contribute towards the
generation of a fault condition to a given PWM generator.
Note:
This function is only available on devices supporting extended PWM fault handling.
Returns:
Returns the current fault triggers configured for the fault group provided. For
PWM_FAULT_GROUP_0, the returned value is a logical OR of PWM_FAULT_FAULT0,
PWM_FAULT_FAULT1, PWM_FAULT_FAULT2, or PWM_FAULT_FAULT3. For
PWM_FAULT_GROUP_1, the return value is the logical OR of PWM_FAULT_DCMP0,
PWM_FAULT_DCMP1, PWM_FAULT_DCMP2, PWM_FAULT_DCMP3,
PWM_FAULT_DCMP4, PWM_FAULT_DCMP5, PWM_FAULT_DCMP6, or
PWM_FAULT_DCMP7.
162 April 8, 2013