Clock Trim (ILO, PILO)¶
These functions perform a single trim operation on the ILO or PILO.
Each function’s parameter is the actual frequency of the clock. To measure the frequency, use the functions described in the Clock Measurement API.
To trim the clock as close as possible to the target frequency, multiple calls to the trim function may be needed. A typical usage example is to:
Call the clock measurement functions to get the actual frequency of the clock
Call the trim function, passing in the measured frequency
Repeat the above until the trim function reports that the clock is trimmed to within limits.