2.90.36 PWM_TriggerCompareValueSet Function

C

inline static void PWM_TriggerCompareValueSet(PWM_GENERATOR genNum,uint32_t trigCompValue)

Summary

This inline function sets the PWM trigger compare value in count for the PWM Generator selected by the argument PWM_GENERATOR Enum

Description

This function sets the trigger compare value for the specified PWM generator, which determines the timing for triggering other events or signals.

Precondition

Refer datasheet for valid size of data bits.

Parameters

ParamDescription
genNumPWM generator number
trigCompValueTrigger compare value in count

Returns

None

Example

enum PWM_GENERATOR genNum;
uint16_t trigCompValue;
trigCompValue = 0x01;
genNum = PWM_GENERATOR_1;
PWM_TriggerCompareValueSet(genNum, trigCompValue);

Remarks

None