Nuvo-2500 Series User’s Manual
Copyright © 2015 Neousys Technology Inc. All Right Reserved.
Page 138 of 154
5.6.1.10 PWM_SyncUpdate
Synchronizes all pending updates.
Syntax
BOOL PWM_SyncUpdate(DWORD genBits);
Description
For the selected PWM generators, this function causes all queued updates to the
period or pulse width to be applied the next time the corresponding counter becomes
zero.
Parameter
genBits
[in]
Specifies the generator bits of PWM controllers.
Return Value
Returns TRUE if procedure successes, FALSE if procedure failed.
Usage
BOOL bRet = PWM_SyncUpdate(PWM_GEN_0 | PWM_GEN_1);