Pulse Width Modulator (PWM)
ui32PWMOutBits are the PWM outputs to be modified. Must be the logical OR of
any of PWM_OUT_0_BIT, PWM_OUT_1_BIT, PWM_OUT_2_BIT, PWM_OUT_3_BIT,
PWM_OUT_4_BIT, PWM_OUT_5_BIT, PWM_OUT_6_BIT, or PWM_OUT_7_BIT.
bInvert determines if the signal is inverted or passed through.
Description:
This function is used to select the inversion mode for the selected PWM outputs. The outputs
are selected using the parameter ui32PWMOutBits. The parameter bInvert determines the
inversion mode for the selected outputs. If bInvert is true, this function will cause the specified
PWM output signals to be inverted, or made active low. If bInvert is false, the specified outputs
are passed through as is, or be made active high.
Returns:
None.
15.2.1.25 ROM_PWMOutputState
Enables or disables PWM outputs.
Prototype:
void
ROM_PWMOutputState(uint32_t ui32Base,
uint32_t ui32PWMOutBits,
bool bEnable)
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_PWMOutputState is a function pointer located at ROM_PWMTABLE[11].
Parameters:
ui32Base is the base address of the PWM module.
ui32PWMOutBits are the PWM outputs to be modified. Must be the logical OR of
any of PWM_OUT_0_BIT, PWM_OUT_1_BIT, PWM_OUT_2_BIT, PWM_OUT_3_BIT,
PWM_OUT_4_BIT, PWM_OUT_5_BIT, PWM_OUT_6_BIT, or PWM_OUT_7_BIT.
bEnable determines if the signal is enabled or disabled.
Description:
This function is used to enable or disable the selected PWM outputs. The outputs are selected
using the parameter ui32PWMOutBits. The parameter bEnable determines the state of the
selected outputs. If bEnable is true, then the selected PWM outputs are enabled, or placed in
the active state. If bEnable is false, then the selected outputs are disabled, or placed in the
inactive state.
Returns:
None.
15.2.1.26 ROM_PWMPulseWidthGet
Gets the pulse width of a PWM output.
April 8, 2013 171