Pulse Width Modulator (PWM)
If latched faults are configured, the application must call
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
Summary of Contents for Tiva TM4C123GH6PM
Page 26: ...Boot Loader 26 April 8 2013...
Page 68: ...Controller Area Network CAN 68 April 8 2013...
Page 122: ...Hibernation Module 122 April 8 2013...
Page 136: ...Inter Integrated Circuit I2C 136 April 8 2013...
Page 152: ...Memory Protection Unit MPU 152 April 8 2013...
Page 174: ...Pulse Width Modulator PWM Returns None 174 April 8 2013...
Page 196: ...Synchronous Serial Interface SSI 196 April 8 2013...
Page 222: ...System Control 222 April 8 2013...
Page 270: ...UART 270 April 8 2013...
Page 296: ...uDMA Controller 296 April 8 2013...
Page 351: ...April 8 2013 351...