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

mostSetSyncSpdifMode

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

Function Syntax

long mostSetSyncSpdifMode(long channel, long mode);

Description

Sets the timing mode for the S/PDIF signal.

Parameters

  • channel: Channel of the connected interface
  • mode:
    • 0: S/PDIF slave.
    • 1: S/PDIF master.

Return Values

See error codes.

Example

Use Cases:
  • External S/PDIF sink device connected to the S/PDIF Out connector of the VN2610 In this case, the VN2610 is S/PDIF Master and the S/PDIF mode has to be set accordingly (mode = 1).
    on key 's'
    {
      long channel = 1;
      mostSetSyncSpdifMode(channel, 1);
    }
    
  • External S/PDIF source device connected to the S/PDIF In connector of the VN2610 In this case, the VN2610 is S/PDIF Slave and the S/PDIF mode has to be set accordingly (mode = 0).
    on key 's'
    {
      long channel = 1;
      mostSetSyncSpdifMode(channel, 0);
    }
    
More S/PDIF examples see MOST Access to Digital Audio Channels (S/PDIF In and Out). mostSetSyncSpdifmostSetSyncSpdifLockmostGetSyncSpdifModemostSetClockSourcemostGetClockSourcemostSetSyncAudio