(Page 5 of 28 in this chapter)


swiConfig8KRefClock

Description

Defines the source of the 8 KHz reference signal on the MC1 bus.

Prototype

DWORD swiConfig8KRefClock ( SWIHD swihd,
DWORD source,
DWORD network)

swihd Handle returned by swiOpenSwitch.

source Specifies where the 8 KHz reference signal originates. Refer to the Details section for acceptable values.

network Device source of the 8KREF signal. Refer to the Details section for acceptable values.

Return Values

Events

Details

This function defines the source of the 8 KHz reference signal on the MC1 bus.

Acceptable values for source are:

MVIP95_SOURCE_DISABLE
MVIP95_SOURCE_INTERNAL
MVIP95_SOURCE_SEC8K
MVIP95_SOURCE_MVIP
MVIP95_SOURCE_NETWORK

Acceptable values for network are 1 to n where n is the number of devices capable of being a source for 8KREF.

Refer to Chapter 5 for more information about configuring clocks. Refer to the MC1 Installation and Developer's Manual for more information about MC1.

If CTAERR_DRIVER_ERROR is returned, call swiGetLastError to retrieve the MVIP device error code.

See Also

swiConfigBoardClock, swiConfigSec8KClock, swiGetLastError

Example


void myMC18KRefInit(SWIHD mc1hd)
{
/* configure MC1 8KREF signal to sync to SEC8K on MVIP bus */
swiConfig8KRefClock(mc1hd, MVIP95_SOURCE_SEC8K, 1);
}


(Page 5 of 28 in this chapter)


tech_support@nmss.com
Copyright © 1997, Natural MicroSystems, Inc. All rights reserved.