(Page 9 of 28 in this chapter)


swiConfigSec8KClock

Description

Defines the source of the secondary 8 KHz clock on the bus.

Prototype

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

swihd Handle returned by swiOpenSwitch.

source The clock source for the secondary 8 KHz signal on a board. Refer to the Details section for acceptable values.

network Device source of the secondary 8 KHz signal when source is MVIP95_SOURCE_NETWORK. See the Details section for acceptable values.

Return Values

Events

Details

This function establishes the source of the secondary 8 KHz clock on the bus.

Acceptable values for source are:

MVIP95_SOURCE_DISABLE
MVIP95_SOURCE_INTERNAL
MVIP95_SOURCE_MVIP
MVIP95_SOURCE_NETWORK
MVIP95_SOURCE_8KREF
(only on MC1 boards)

Acceptable values for network are 1 to n where n is the number of devices on the board. Not all devices are capable of being a source for SEC8K. Refer to the device-specific hardware documentation for the devices that are capable of being a source for SEC8K.

Refer to Chapter 5 for more information about configuring clocks.

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

See Also

swiConfigBoardClock, swiConfig8KRefClock, swiGetLastError

Example


void myAGT1ClockInit(SWIHD t1hd)
{
SWI_CLOCK_ARGS boardclock;

/* Make AG-T1 sync off MVIP bus clock */
boardclock.size = sizeof(SWI_CLOCK_ARGS);
boardclock.clocktype = MVIP95_STD_CLOCKING;
boardclock.clocksource = MVIP95_SOURCE_MVIP;
swiConfigBoardClock(t1hd, &boardclock);

/* Make AG-T1's network 1 provide the source of the Sec8K signal */
swiConfigSec8KClock(t1hd, MVIP95_SOURCE_NETWORK, 1);
}


(Page 9 of 28 in this chapter)


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