onlinedokumentation

KS_setClockSource

The function KS_setClockSource modifies a specific clock.

C/C++
Error KS_setClockSource(const KSClockSource* pClockSource, uint clockId);

Delphi
function KS_setClockSource(pClockSource: PKSClockSource; clockId: uint): Error;

C#
int KS_setClockSource(ref KSClockSource pClockSource, uint clockId);

Parameters

pClockSource (const KSClockSource*)
Pointer to structure with new clock information.

clockId (uint)
Clock to modify.

Return values

KSERROR_BAD_PARAMOne parameter is wrong.
KSERROR_FUNCTION_NOT_AVAILABLEThe chosen clock is not available.

Comments

The changes made for the clock effects the entire system.

The function can be used on kernel-level, including real-time mode.

Example 1

In the following example ….

...
int ksError = KS_setClockSource(pClockSource, clockId);
... // error handling

...

Example 2

See smp\ClockSources.

See also