Skip to main content
Open topic with navigation CAPL Functions » MOST » mostSetClockSource

mostSetClockSource

Valid for: CANoe DE Note
This function is only available with MOST hardware VN2610.

Function Syntax

Description

Sets the clock source for the MOST timing master. The function has no effect if the network interface is configured as MOST timing slave.

Parameters

  • channel: Channel of the connected interface
  • source:
    • 0: Internal oscillator.
    • 1: Synchronizes the timing master clock to the S/PDIF input signal. The network interface must be configured as S/PDIF timing slave (refer to mostSetSyncSpdifMode()).

Return Values

See error codes.

Example

Use case: External S/PDIF source device connected to the S/PDIF In connector of the VN2610 Typically the internal oscillator is used as clock source, since most S/PDIF source devices do not generate a S/PDIF signal with the same clock as the MOST clock (44,1 / 48 kHz).
In some special cases, e.g. for testing purpose it is possible to synchronize the timing master clock to S/PDIF input signal.
More S/PDIF examples see MOST Access to Digital Audio Channels (S/PDIF In and Out). Related Functions:
mostSetTimingModemostSetSyncSpdifModemostGetSyncSpdifModemostGetClockSourcemostSetSyncAudiomostSetSyncSpdif