(Page 13 of 29 in this chapter) Version
typedef struct
{
DWORD size;
DWORD clocktype;
DWORD clocksource;
DWORD network;
union
{
struct
{
DWORD mc1clockmode;
DWORD autofallback;
DWORD fallbackoccurred;
} mc1; /* only for MC1*/
struct
{
DWORD clockmode;
DWORD autofallback;
DWORD fallbackoccurred;
DWORD clockstatus_a;
DWORD clockstatus_b;
DWORD clockstatus_netref1;
DWORD clockstatus_netref2;
}h100; /* only for h100 */
} ext; /* extension, specific parts for each board, based on
clocktype */
} SWI_QUERY_CLOCK_ARGS;
void myGetClock (SWIHD swihd)
{
SWI_QUERY_CLOCK_ARGS queryclock;
DWORD clocktype;
unsigned size;
size = sizeof (SWI_QUERY_CLOCK_ARGS);
swiGetBoardClock (swihd, clocktype, &queryclock, size);
} }
(Page 13 of 29 in this chapter) Version