XilinxProcessorIPLib/drivers/hdcp22_tx/src/xhdcp22_tx_test.c
void XHdcp22Tx_Dump(const char *String, const u8 *Buf, u32 Buflen)
{
	u32 Offset;

	xil_printf("\n##########################################\r\n");
	xil_printf("INFO::%s::Byte[0:%0d]", String, Buflen-1);
	for(Offset=0; Offset<Buflen; Offset++)
	{
		if((Offset%20) == 0) {
			xil_printf("\r\n");
		}

		xil_printf("%02x ", Buf[Offset]);
	}
	xil_printf("\r\n##########################################\r\n");
}
/*****************************************************************************/
/**
*
* This function dumps a buffer with a name (string) to the output (UART).
*
* @param  String is a string printed before the buffer contents.
* @param  Buf is the buffer to print..
* @param  Buflen is the length of the buffer.
*
* @return None.
*
* @note   None.
*
******************************************************************************/
This function dumps a buffer with a name (string) to the output (UART).
This function dumps a buffer with a name ( string ) to the output ( UART ) .
void XHdcp22Tx_Dump(const char *String, const u8 *Buf, u32 Buflen)
{
	u32 Offset;
	xil_printf("\n##########################################\r\n");
	xil_printf("INFO::%s::Byte[0:%0d]", String, Buflen-1);
	for(Offset=0; Offset<Buflen; Offset++)
	{
		if((Offset%20) == 0) {
			xil_printf("\r\n");
		}
		xil_printf("%02x ", Buf[Offset]);
	}
	xil_printf("\r\n##########################################\r\n");
}
void XHdcp22Tx_Dump ( const char * String , const u8 * Buf , u32 Buflen ) { u32 Offset ; xil_printf ( " \n \r \n " ) ; xil_printf ( " " , String , Buflen - 1 ) ; for ( Offset = 0 ; Offset < Buflen ; Offset ++ ) { if ( ( Offset % 20 ) == 0 ) { xil_printf ( " \r \n " ) ; } xil_printf ( " " , Buf [ Offset ] ) ; } xil_printf ( " \r \n \r \n " ) ; }
This function dumps a buffer with a name (string) to the output (UART).
This function dumps a buffer with a name ( string ) to the output ( UART ) .