Switching Service Developer's Reference Manual (6421-10): Alphabetical Function Reference
(Page 6 of 28 in this chapter)
swiConfigBoardClock
Description
- Establishes the clock source for an MVIP board.
Prototype
- DWORD swiConfigBoardClock ( SWIHD swihd,
SWI_CLOCK_ARGS *args)
- swihd Handle returned by swiOpenSwitch.
- args Pointer to a clock parameter structure for configuring the MVIP board clock. The SWI_CLOCK_ARGS structure is:
typedef struct
{
DWORD size;
DWORD clocktype;
DWORD clocksource;
DWORD network;
union
{
struct
{
DWORD mc1clockmode;
DWORD autofallback;
} mc1; /* only for MC1 */
} ext; /* specific extensions per board based on clocktype */
} SWI_CLOCK_ARGS;
- See the Details section for a description of these fields.
Return Values
Events
Details
- This function establishes the clock source for an MVIP board. This single function supports clock configuration for all standard MVIP boards as well as MC1, MC2, MC3, MC4, and future generations of MVIP boards.
- The size, clocktype, clocksource, and network fields of the SWI_CLOCK_ARGS structure are identical across all board types.
- The extension part of the SWI_CLOCK_ARGS structure is a union that currently only has a structure for MC1 boards. Further evolution of MVIP and standardization work will modify this part of the SWI_CLOCK_ARGS structure.
- 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
- swiConfigSec8KClock, swiConfig8KRefClock, swiGetLastError
Example
void myAGT1ClockFallback(SWIHD t1hd)
{
SWI_CLOCK_ARGS boardclock;
/* Make AG-T1 sync off SEC8K */
boardclock.size = sizeof(SWI_CLOCK_ARGS);
boardclock.clocktype = MVIP95_STD_CLOCKING;
boardclock.clocksource = MVIP95_SOURCE_SEC8K;
swiConfigBoardClock(t1hd, &boardclock);
}
(Page 6 of 28 in this chapter)
tech_support@nmss.com
Copyright © 1997, Natural MicroSystems, Inc. All rights
reserved.