2.90.11 PWM_GeneratorEventStatusGet Function

C

inline static bool PWM_GeneratorEventStatusGet(PWM_GENERATOR genNum, PWM_GENERATOR_INTERRUPT interrupt);

Summary

This inline function gets the PWM interrupt status for the PWM Generator selected by the argument PWM_GENERATOR Enum

Description

This function gets the PWM interrupt status for the PWM Generator.

Precondition

None

Parameters

ParamDescription
genNumPWM generator number
interruptPWM generator interrupt source

Returns

true - Interrupt is pending.

false - Interrupt is not pending.

Example

enum PWM_GENERATOR genNum;
enum PWM_GENERATOR_INTERRUPT interrupt;
bool status;
genNum = PWM_GENERATOR_1;
interrupt = PWM_GENERATOR_INTERRUPT_TRIGGER;
status = PWM_GeneratorEventStatusGet(genNum, interrupt);

Remarks

None