Table of Contents Index NMS Glossary Previous Page Next Page (Page 8 of 29 in this chapter) Version


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 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.

Note: If you open a switch and call swiConfigSec8KClock without calling swiConfigBoardClock at least once, the clock source is changed to OSC. To prevent this, call swiConfigBoardClock before calling swiConfigSec8KClock for the first time on a particular switch handle.

Acceptable values for source are:

MVIP95_SOURCE_DISABLE
MVIP95_SOURCE_INTERNAL
MVIP95_SOURCE_NETWORK

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 4 for more information about configuring clocks.

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

See Also

swiConfigBoardClock, swiConfigNetrefClock, swiGetBoardClock, swiGetLastError, swiGetTimingReference, swiOpenSwitch

Example


void myT1ClockInit(SWIHD swihd)
{
SWI_CLOCK_ARGS boardclock;

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

/* Make board's network 1 provide the source of the Sec8K signal */
swiConfigSec8KClock(swihd, MVIP95_SOURCE_NETWORK, 1);
}


Table of Contents Index NMS Glossary Previous Page Next Page (Page 8 of 29 in this chapter) Version


Want to send us feedback on our documentation? Email: Tech_Pubs@nmss.com
Copyright © 2000, Natural MicroSystems, Inc. All rights reserved.