Beispiel #1
0
static void dumpADAT(void)
{
	BOOL	bEnable;
	BOOL	bLocked;
	BOOL	bLocked_aux;
	uADATRX_STATUS error, error_aux;
	
	adatRxGetEnable (&bEnable);
	bLocked = adatIsLocked (0);
	bLocked_aux = adatIsLocked (1);
	adatRxGetError(0,&error, TRUE);
	adatRxGetError(1,&error_aux, TRUE);
	
	cliPrintf("ADAT Rx:\n\r");
	cliPrintf("\tState           : %s\n\r", bEnable ? (bLocked ? "Locked" : "Unlocked") : "Disabled");	
	cliPrintf("ADAT Errors  L=No Lock, S=No Sync\n\r");
	cliPrintf("\tErrors          : %c%c%\n\r", error.bit.no_lock ? 'L' : ' ', error.bit.no_sync ? 'S' : ' ');
	cliPrintf("ADAT Rx registers:\n\r");
	cliPrintf("\tSTATUS         : 0x%04x\n\r", pDiceADATRx->status.reg);
	cliPrintf("ADAT Tx registers:\n\r");
	cliPrintf("\tUSER_SETUP     : 0x%04x\n\r", pDiceADATTx->userSetup.reg & 0x0f);
	cliPrintf("\tCH_MUTE        : 0x%04x\n\r", pDiceADATTx->chMute.reg);	

	cliPrintf("ADAT AUX Rx:\n\r");
	cliPrintf("\tState           : %s\n\r", bEnable ? (bLocked_aux ? "Locked" : "Unlocked") : "Disabled");	
	cliPrintf("ADAT AUX Errors  L=No Lock, S=No Sync\n\r");
	cliPrintf("\tErrors          : %c%c%\n\r", error_aux.bit.no_lock ? 'L' : ' ', error_aux.bit.no_sync ? 'S' : ' ');
	cliPrintf("ADAT AUX Rx registers:\n\r");
	cliPrintf("\tSTATUS         : 0x%04x\n\r", pDiceADATRx->statusAux.reg);
	cliPrintf("ADAT AUX Tx registers:\n\r");
	cliPrintf("\tUSER_SETUP     : 0x%04x\n\r", (pDiceADATTx->userSetup.reg>>4));
	cliPrintf("\tCH_MUTE        : 0x%04x\n\r", pDiceADATTx->chMuteAux.reg);	

}
Beispiel #2
0
static void dumpADAT(void)
{
	BOOL	bEnable;
	BOOL	bLocked;
	uADATRX_STATUS error;
	
	adatRxGetEnable (&bEnable);
	bLocked = adatIsLocked ();
	adatRxGetError(&error, TRUE);
	
	cliPrintf("ADAT Rx:\n\r");
	cliPrintf("\tState           : %s\n\r", bEnable ? (bLocked ? "Locked" : "Unlocked") : "Disabled");	
	cliPrintf("ADAT Errors  R=Repeat, S=Slip\n\r");
	cliPrintf("\tErrors          : %c%c%\n\r", error.bit.u_run ? 'R' : ' ', error.bit.o_run ? 'S' : ' ');
	cliPrintf("ADAT Rx registers:\n\r");
	cliPrintf("\tSETUP          : 0x%04x\n\r", pDiceADATRx->setup.reg);
	cliPrintf("\tSTATUS         : 0x%04x\n\r", pDiceADATRx->status.reg);
	cliPrintf("ADAT Tx registers:\n\r");
	cliPrintf("\tUSER_SETUP     : 0x%04x\n\r", pDiceADATTx->userSetup.reg);
	cliPrintf("\tMUX_SETUP      : 0x%04x\n\r", pDiceADATTx->muxSetup.reg);
	cliPrintf("\tCH_MUTE        : 0x%04x\n\r", pDiceADATTx->chMute.reg);	
}