XilinxProcessorIPLib/drivers/v_letterbox/src/xv_letterbox_l2.c
void XV_LBoxDbgReportStatus(XV_Lbox_l2 *InstancePtr)
{
  XV_letterbox *pLbox = &InstancePtr->Lbox;
  u32 done, idle, ready, ctrl;
  u32 colstart, colend, rowstart, rowend;
  u32 yr,cbg,crb, cfmt, width, height;

  /*
   * Assert validates the input arguments
   */
  Xil_AssertVoid(InstancePtr != NULL);

  xil_printf("\r\n\r\n----->LBOX IP STATUS<----\r\n");

  done  = XV_letterbox_IsDone(pLbox);
  idle  = XV_letterbox_IsIdle(pLbox);
  ready = XV_letterbox_IsReady(pLbox);
  ctrl  = XV_letterbox_ReadReg(pLbox->Config.BaseAddress, XV_LETTERBOX_CTRL_ADDR_AP_CTRL);

  colstart = XV_letterbox_Get_HwReg_col_start(pLbox);
  colend   = XV_letterbox_Get_HwReg_col_end(pLbox);
  rowstart = XV_letterbox_Get_HwReg_row_start(pLbox);
  rowend   = XV_letterbox_Get_HwReg_row_end(pLbox);
  yr       = XV_letterbox_Get_HwReg_Y_R_value(pLbox);
  cbg      = XV_letterbox_Get_HwReg_Cb_G_value(pLbox);
  crb      = XV_letterbox_Get_HwReg_Cr_B_value(pLbox);
  height   = XV_letterbox_Get_HwReg_height(pLbox);
  width    = XV_letterbox_Get_HwReg_width(pLbox);
  cfmt     = XV_letterbox_Get_HwReg_video_format(pLbox);


  xil_printf("IsDone:  %d\r\n", done);
  xil_printf("IsIdle:  %d\r\n", idle);
  xil_printf("IsReady: %d\r\n", ready);
  xil_printf("Ctrl:    0x%x\r\n\r\n", ctrl);

  xil_printf(" Window Start X : %d\r\n",colstart);
  xil_printf(" Window End   X : %d\r\n",colend);
  xil_printf(" Window Start Y : %d\r\n",rowstart);
  xil_printf(" Window End   Y : %d\r\n",rowend);
  xil_printf(" Frame Width    : %d\r\n",width);
  xil_printf(" Frame Height   : %d\r\n",height);
  xil_printf(" Color Format   : %d\r\n",cfmt);
  xil_printf(" Bkgnd Color Y/R: %d\r\n",yr);
  xil_printf(" Bkgnd Color U/G: %d\r\n",cbg);
  xil_printf(" Bkgnd Color V/B: %d\r\n",crb);
}
/*****************************************************************************/
/**
*
* This function prints LBox IP status on the console
*
* @param	InstancePtr is the pointer to the core instance.
*
* @return	None
*
******************************************************************************/
This function prints LBox IP status on the console
This function prints LBox IP status on the console
void XV_LBoxDbgReportStatus(XV_Lbox_l2 *InstancePtr)
{
  XV_letterbox *pLbox = &InstancePtr->Lbox;
  u32 done, idle, ready, ctrl;
  u32 colstart, colend, rowstart, rowend;
  u32 yr,cbg,crb, cfmt, width, height;
  Xil_AssertVoid(InstancePtr != NULL);
  xil_printf("\r\n\r\n----->LBOX IP STATUS<----\r\n");
  done  = XV_letterbox_IsDone(pLbox);
  idle  = XV_letterbox_IsIdle(pLbox);
  ready = XV_letterbox_IsReady(pLbox);
  ctrl  = XV_letterbox_ReadReg(pLbox->Config.BaseAddress, XV_LETTERBOX_CTRL_ADDR_AP_CTRL);
  colstart = XV_letterbox_Get_HwReg_col_start(pLbox);
  colend   = XV_letterbox_Get_HwReg_col_end(pLbox);
  rowstart = XV_letterbox_Get_HwReg_row_start(pLbox);
  rowend   = XV_letterbox_Get_HwReg_row_end(pLbox);
  yr       = XV_letterbox_Get_HwReg_Y_R_value(pLbox);
  cbg      = XV_letterbox_Get_HwReg_Cb_G_value(pLbox);
  crb      = XV_letterbox_Get_HwReg_Cr_B_value(pLbox);
  height   = XV_letterbox_Get_HwReg_height(pLbox);
  width    = XV_letterbox_Get_HwReg_width(pLbox);
  cfmt     = XV_letterbox_Get_HwReg_video_format(pLbox);
  xil_printf("IsDone:  %d\r\n", done);
  xil_printf("IsIdle:  %d\r\n", idle);
  xil_printf("IsReady: %d\r\n", ready);
  xil_printf("Ctrl:    0x%x\r\n\r\n", ctrl);
  xil_printf(" Window Start X : %d\r\n",colstart);
  xil_printf(" Window End   X : %d\r\n",colend);
  xil_printf(" Window Start Y : %d\r\n",rowstart);
  xil_printf(" Window End   Y : %d\r\n",rowend);
  xil_printf(" Frame Width    : %d\r\n",width);
  xil_printf(" Frame Height   : %d\r\n",height);
  xil_printf(" Color Format   : %d\r\n",cfmt);
  xil_printf(" Bkgnd Color Y/R: %d\r\n",yr);
  xil_printf(" Bkgnd Color U/G: %d\r\n",cbg);
  xil_printf(" Bkgnd Color V/B: %d\r\n",crb);
}
void XV_LBoxDbgReportStatus ( XV_Lbox_l2 * InstancePtr ) { XV_letterbox * pLbox = & InstancePtr -> Lbox ; u32 done , idle , ready , ctrl ; u32 colstart , colend , rowstart , rowend ; u32 yr , cbg , crb , cfmt , width , height ; Xil_AssertVoid ( InstancePtr != NULL ) ; xil_printf ( " \r \n \r \n \r \n " ) ; done = XV_letterbox_IsDone ( pLbox ) ; idle = XV_letterbox_IsIdle ( pLbox ) ; ready = XV_letterbox_IsReady ( pLbox ) ; ctrl = XV_letterbox_ReadReg ( pLbox -> Config . BaseAddress , XV_LETTERBOX_CTRL_ADDR_AP_CTRL ) ; colstart = XV_letterbox_Get_HwReg_col_start ( pLbox ) ; colend = XV_letterbox_Get_HwReg_col_end ( pLbox ) ; rowstart = XV_letterbox_Get_HwReg_row_start ( pLbox ) ; rowend = XV_letterbox_Get_HwReg_row_end ( pLbox ) ; yr = XV_letterbox_Get_HwReg_Y_R_value ( pLbox ) ; cbg = XV_letterbox_Get_HwReg_Cb_G_value ( pLbox ) ; crb = XV_letterbox_Get_HwReg_Cr_B_value ( pLbox ) ; height = XV_letterbox_Get_HwReg_height ( pLbox ) ; width = XV_letterbox_Get_HwReg_width ( pLbox ) ; cfmt = XV_letterbox_Get_HwReg_video_format ( pLbox ) ; xil_printf ( " \r \n " , done ) ; xil_printf ( " \r \n " , idle ) ; xil_printf ( " \r \n " , ready ) ; xil_printf ( " \r \n \r \n " , ctrl ) ; xil_printf ( " \r \n " , colstart ) ; xil_printf ( " \r \n " , colend ) ; xil_printf ( " \r \n " , rowstart ) ; xil_printf ( " \r \n " , rowend ) ; xil_printf ( " \r \n " , width ) ; xil_printf ( " \r \n " , height ) ; xil_printf ( " \r \n " , cfmt ) ; xil_printf ( " \r \n " , yr ) ; xil_printf ( " \r \n " , cbg ) ; xil_printf ( " \r \n " , crb ) ; }
This function prints LBox IP status on the console
This function prints LBox IP status on the console
/*
   * Assert validates the input arguments
   */