RobotCode/codegentemp/PWM_A.c
void PWM_A_SetInterruptMode(uint16 position, uint16 mode)
{
    uint32 intrCfg;
    
    intrCfg =  PWM_A_INTCFG & (uint32)(~(uint32)position);
    PWM_A_INTCFG = intrCfg | ((uint32)position & (uint32)mode);
}
/**
*
* \brief Configures the interrupt mode for each of the Pins component's
*  pins. Alternatively you may set the interrupt mode for all the pins
*  specified in the Pins component.
*
*  <b>Note</b> The interrupt is port-wide and therefore any enabled pin
*  interrupt may trigger it.
*
* \param position
*  The pin position as listed in the Pins component. You may OR these to be 
*  able to configure the interrupt mode of multiple pins within a Pins 
*  component. Or you may use PWM_A_INTR_ALL to configure the
*  interrupt mode of all the pins in the Pins component.       
*  - PWM_A_0_INTR       (First pin in the list)
*  - PWM_A_1_INTR       (Second pin in the list)
*  - ...
*  - PWM_A_INTR_ALL     (All pins in Pins component)
*
* \param mode
*  Interrupt mode for the selected pins. Valid options are documented in
*  \ref intrMode.
*
* \return 
*  None
*  
* \sideeffect
*  It is recommended that the interrupt be disabled before calling this 
*  function to avoid unintended interrupt requests. Note that the interrupt
*  type is port wide, and therefore will trigger for any enabled pin on the 
*  port.
*
* \funcusage
*  \snippet PWM_A_SUT.c usage_PWM_A_SetInterruptMode
*******************************************************************************/
\brief Configures the interrupt mode for each of the Pins component's
pins. Alternatively you may set the interrupt mode for all the pins
specified in the Pins component.

Note The interrupt is port-wide and therefore any enabled pin
interrupt may trigger it.

\param position
The pin position as listed in the Pins component. You may OR these to be
able to configure the interrupt mode of multiple pins within a Pins
component. Or you may use PWM_A_INTR_ALL to configure the
interrupt mode of all the pins in the Pins component.
PWM_A_0_INTR       (First pin in the list)
PWM_A_1_INTR       (Second pin in the list)

PWM_A_INTR_ALL     (All pins in Pins component)

\param mode
Interrupt mode for the selected pins. Valid options are documented in
\ref intrMode.

\return
None

\sideeffect
It is recommended that the interrupt be disabled before calling this
function to avoid unintended interrupt requests. Note that the interrupt
type is port wide, and therefore will trigger for any enabled pin on the
port.


\ brief Configures the interrupt mode for each of the Pins component ' s pins . Alternatively you may set the interrupt mode for all the pins specified in the Pins component . Note The interrupt is port - wide and therefore any enabled pin interrupt may trigger it . \ param position The pin position as listed in the Pins component . You may OR these to be able to configure the interrupt mode of multiple pins within a Pins component . Or you may use PWM_A_INTR_ALL to configure the interrupt mode of all the pins in the Pins component . PWM_A_0_INTR ( First pin in the list ) PWM_A_1_INTR ( Second pin in the list ) PWM_A_INTR_ALL ( All pins in Pins component ) \ param mode Interrupt mode for the selected pins . Valid options are documented in \ ref intrMode . \ return None \ sideeffect It is recommended that the interrupt be disabled before calling this function to avoid unintended interrupt requests . Note that the interrupt type is port wide and therefore will trigger for any enabled pin on the port .
void PWM_A_SetInterruptMode(uint16 position, uint16 mode)
{
    uint32 intrCfg;
    intrCfg =  PWM_A_INTCFG & (uint32)(~(uint32)position);
    PWM_A_INTCFG = intrCfg | ((uint32)position & (uint32)mode);
}
void PWM_A_SetInterruptMode ( uint16 position , uint16 mode ) { uint32 intrCfg ; intrCfg = PWM_A_INTCFG & ( uint32 ) ( ~ ( uint32 ) position ) ; PWM_A_INTCFG = intrCfg | ( ( uint32 ) position & ( uint32 ) mode ) ; }
\brief Configures the interrupt mode for each of the Pins component's
pins.
\ brief Configures the interrupt mode for each of the Pins component ' s pins .