v_csc
Vitis Drivers API Documentation
xv_csc.c File Reference

Functions

int XV_csc_CfgInitialize (XV_csc *InstancePtr, XV_csc_Config *ConfigPtr, UINTPTR EffectiveAddr)
 XV_csc_CfgInitialize - Initializes a specific XV_csc instance. More...
 
void XV_csc_Start (XV_csc *InstancePtr)
 Starts the Color Space Converter (CSC) hardware core. More...
 
u32 XV_csc_IsDone (XV_csc *InstancePtr)
 Checks if the XV_csc hardware core has completed its current operation. More...
 
u32 XV_csc_IsIdle (XV_csc *InstancePtr)
 Checks if the XV_csc hardware core is idle. More...
 
u32 XV_csc_IsReady (XV_csc *InstancePtr)
 Checks if the XV_csc hardware core is ready to accept new input. More...
 
void XV_csc_EnableAutoRestart (XV_csc *InstancePtr)
 Enables the auto-restart feature for the Color Space Converter (CSC) hardware. More...
 
void XV_csc_DisableAutoRestart (XV_csc *InstancePtr)
 Disable the auto-restart feature of the XV_csc hardware core. More...
 
void XV_csc_Set_HwReg_InVideoFormat (XV_csc *InstancePtr, u32 Data)
 Sets the input video format hardware register for the XV_csc instance. More...
 
u32 XV_csc_Get_HwReg_InVideoFormat (XV_csc *InstancePtr)
 Retrieves the hardware register value for the input video format. More...
 
void XV_csc_Set_HwReg_OutVideoFormat (XV_csc *InstancePtr, u32 Data)
 Sets the output video format hardware register for the CSC (Color Space Converter) instance. More...
 
u32 XV_csc_Get_HwReg_OutVideoFormat (XV_csc *InstancePtr)
 Retrieves the output video format hardware register value from the CSC (Color Space Converter) instance. More...
 
void XV_csc_Set_HwReg_width (XV_csc *InstancePtr, u32 Data)
 Sets the hardware register for the width parameter of the XV_csc instance. More...
 
u32 XV_csc_Get_HwReg_width (XV_csc *InstancePtr)
 Retrieves the hardware register value for the width parameter of the CSC (Color Space Converter) instance. More...
 
void XV_csc_Set_HwReg_height (XV_csc *InstancePtr, u32 Data)
 Sets the hardware register for the height parameter in the XV_csc instance. More...
 
u32 XV_csc_Get_HwReg_height (XV_csc *InstancePtr)
 Retrieves the value of the hardware register that stores the height parameter for the Color Space Converter (CSC) instance. More...
 
void XV_csc_Set_HwReg_ColStart (XV_csc *InstancePtr, u32 Data)
 Sets the hardware register for column start value in the Color Space Converter (CSC) core. More...
 
u32 XV_csc_Get_HwReg_ColStart (XV_csc *InstancePtr)
 Retrieves the value of the hardware register for column start from the CSC (Color Space Converter) instance. More...
 
void XV_csc_Set_HwReg_ColEnd (XV_csc *InstancePtr, u32 Data)
 Sets the hardware register for the column end value in the Color Space Converter (CSC) core. More...
 
u32 XV_csc_Get_HwReg_ColEnd (XV_csc *InstancePtr)
 Retrieves the value of the HWREG_COLEND hardware register from the Color Space Converter (CSC) instance. More...
 
void XV_csc_Set_HwReg_RowStart (XV_csc *InstancePtr, u32 Data)
 Sets the hardware register for the row start value in the Color Space Converter (CSC) core. More...
 
u32 XV_csc_Get_HwReg_RowStart (XV_csc *InstancePtr)
 Retrieves the value of the HWREG_ROWSTART hardware register from the CSC core. More...
 
void XV_csc_Set_HwReg_RowEnd (XV_csc *InstancePtr, u32 Data)
 Sets the hardware register for the row end value in the Color Space Converter (CSC) core. More...
 
u32 XV_csc_Get_HwReg_RowEnd (XV_csc *InstancePtr)
 Retrieves the value of the HWREG_ROWEND hardware register from the Color Space Converter (CSC) instance. More...
 
void XV_csc_Set_HwReg_K11 (XV_csc *InstancePtr, u32 Data)
 Sets the value of the HWREG_K11 hardware register for the CSC (Color Space Converter) instance. More...
 
u32 XV_csc_Get_HwReg_K11 (XV_csc *InstancePtr)
 Retrieves the value of the HWREG_K11 hardware register from the CSC (Color Space Converter) instance. More...
 
void XV_csc_Set_HwReg_K12 (XV_csc *InstancePtr, u32 Data)
 Set the value of the HWREG_K12 hardware register for the XV_csc instance. More...
 
u32 XV_csc_Get_HwReg_K12 (XV_csc *InstancePtr)
 Retrieves the value of the HWREG_K12 hardware register from the CSC (Color Space Converter) instance. More...
 
void XV_csc_Set_HwReg_K13 (XV_csc *InstancePtr, u32 Data)
 Set the value of the HWREG_K13 hardware register for the XV_csc instance. More...
 
u32 XV_csc_Get_HwReg_K13 (XV_csc *InstancePtr)
 Retrieves the value of the HWREG_K13 hardware register from the CSC (Color Space Converter) instance. More...
 
void XV_csc_Set_HwReg_K21 (XV_csc *InstancePtr, u32 Data)
 Sets the value of the HWREG_K21 hardware register for the XV_csc instance. More...
 
u32 XV_csc_Get_HwReg_K21 (XV_csc *InstancePtr)
 Retrieves the value of the HWREG_K21 hardware register from the CSC (Color Space Converter) instance. More...
 
void XV_csc_Set_HwReg_K22 (XV_csc *InstancePtr, u32 Data)
 Sets the value of the HWREG_K22 hardware register for the XV_csc instance. More...
 
u32 XV_csc_Get_HwReg_K22 (XV_csc *InstancePtr)
 Retrieves the value of the HWREG_K22 hardware register from the CSC (Color Space Converter) instance. More...
 
void XV_csc_Set_HwReg_K23 (XV_csc *InstancePtr, u32 Data)
 Sets the value of the HWREG_K23 hardware register for the XV_csc instance. More...
 
u32 XV_csc_Get_HwReg_K23 (XV_csc *InstancePtr)
 This function gets the K23 hardware register value. More...
 
void XV_csc_Set_HwReg_K31 (XV_csc *InstancePtr, u32 Data)
 This function sets the K31 hardware register. More...
 
u32 XV_csc_Get_HwReg_K31 (XV_csc *InstancePtr)
 This function gets the K31 hardware register value. More...
 
void XV_csc_Set_HwReg_K32 (XV_csc *InstancePtr, u32 Data)
 This function sets the K32 hardware register. More...
 
u32 XV_csc_Get_HwReg_K32 (XV_csc *InstancePtr)
 This function gets the K32 hardware register value. More...
 
void XV_csc_Set_HwReg_K33 (XV_csc *InstancePtr, u32 Data)
 This function sets the K33 hardware register. More...
 
u32 XV_csc_Get_HwReg_K33 (XV_csc *InstancePtr)
 This function gets the K33 hardware register value. More...
 
void XV_csc_Set_HwReg_ROffset_V (XV_csc *InstancePtr, u32 Data)
 This function sets the ROffset_V hardware register. More...
 
u32 XV_csc_Get_HwReg_ROffset_V (XV_csc *InstancePtr)
 This function gets the ROffset_V hardware register value. More...
 
void XV_csc_Set_HwReg_GOffset_V (XV_csc *InstancePtr, u32 Data)
 This function sets the GOffset_V hardware register. More...
 
u32 XV_csc_Get_HwReg_GOffset_V (XV_csc *InstancePtr)
 This function gets the GOffset_V hardware register value. More...
 
void XV_csc_Set_HwReg_BOffset_V (XV_csc *InstancePtr, u32 Data)
 This function sets the BOffset_V hardware register. More...
 
u32 XV_csc_Get_HwReg_BOffset_V (XV_csc *InstancePtr)
 This function gets the BOffset_V hardware register value. More...
 
void XV_csc_Set_HwReg_ClampMin_V (XV_csc *InstancePtr, u32 Data)
 This function sets the ClampMin_V hardware register. More...
 
u32 XV_csc_Get_HwReg_ClampMin_V (XV_csc *InstancePtr)
 This function gets the ClampMin_V hardware register value. More...
 
void XV_csc_Set_HwReg_ClipMax_V (XV_csc *InstancePtr, u32 Data)
 This function sets the ClipMax_V hardware register. More...
 
u32 XV_csc_Get_HwReg_ClipMax_V (XV_csc *InstancePtr)
 This function gets the ClipMax_V hardware register value. More...
 
void XV_csc_Set_HwReg_K11_2 (XV_csc *InstancePtr, u32 Data)
 This function sets the K11_2 hardware register. More...
 
u32 XV_csc_Get_HwReg_K11_2 (XV_csc *InstancePtr)
 This function gets the K11_2 hardware register value. More...
 
void XV_csc_Set_HwReg_K12_2 (XV_csc *InstancePtr, u32 Data)
 This function sets the K12_2 hardware register. More...
 
u32 XV_csc_Get_HwReg_K12_2 (XV_csc *InstancePtr)
 This function gets the K12_2 hardware register value. More...
 
void XV_csc_Set_HwReg_K13_2 (XV_csc *InstancePtr, u32 Data)
 This function sets the K13_2 hardware register. More...
 
u32 XV_csc_Get_HwReg_K13_2 (XV_csc *InstancePtr)
 This function gets the K13_2 hardware register value. More...
 
void XV_csc_Set_HwReg_K21_2 (XV_csc *InstancePtr, u32 Data)
 This function sets the K21_2 hardware register. More...
 
u32 XV_csc_Get_HwReg_K21_2 (XV_csc *InstancePtr)
 This function gets the K21_2 hardware register value. More...
 
void XV_csc_Set_HwReg_K22_2 (XV_csc *InstancePtr, u32 Data)
 This function sets the K22_2 hardware register. More...
 
u32 XV_csc_Get_HwReg_K22_2 (XV_csc *InstancePtr)
 This function gets the K22_2 hardware register value. More...
 
void XV_csc_Set_HwReg_K23_2 (XV_csc *InstancePtr, u32 Data)
 This function sets the K23_2 hardware register. More...
 
u32 XV_csc_Get_HwReg_K23_2 (XV_csc *InstancePtr)
 This function gets the K23_2 hardware register value. More...
 
void XV_csc_Set_HwReg_K31_2 (XV_csc *InstancePtr, u32 Data)
 This function sets the K31_2 hardware register. More...
 
u32 XV_csc_Get_HwReg_K31_2 (XV_csc *InstancePtr)
 This function gets the K31_2 hardware register value. More...
 
void XV_csc_Set_HwReg_K32_2 (XV_csc *InstancePtr, u32 Data)
 This function sets the K32_2 hardware register. More...
 
u32 XV_csc_Get_HwReg_K32_2 (XV_csc *InstancePtr)
 This function gets the K32_2 hardware register value. More...
 
void XV_csc_Set_HwReg_K33_2 (XV_csc *InstancePtr, u32 Data)
 This function sets the K33_2 hardware register. More...
 
u32 XV_csc_Get_HwReg_K33_2 (XV_csc *InstancePtr)
 This function gets the K33_2 hardware register value. More...
 
void XV_csc_Set_HwReg_ROffset_2_V (XV_csc *InstancePtr, u32 Data)
 This function sets the ROffset_2_V hardware register. More...
 
u32 XV_csc_Get_HwReg_ROffset_2_V (XV_csc *InstancePtr)
 This function gets the hardware register R offset 2 value. More...
 
void XV_csc_Set_HwReg_GOffset_2_V (XV_csc *InstancePtr, u32 Data)
 This function sets the hardware register G offset 2 value. More...
 
u32 XV_csc_Get_HwReg_GOffset_2_V (XV_csc *InstancePtr)
 This function gets the hardware register G offset 2 value. More...
 
void XV_csc_Set_HwReg_BOffset_2_V (XV_csc *InstancePtr, u32 Data)
 This function sets the hardware register B offset 2 value. More...
 
u32 XV_csc_Get_HwReg_BOffset_2_V (XV_csc *InstancePtr)
 This function gets the hardware register B offset 2 value. More...
 
void XV_csc_Set_HwReg_ClampMin_2_V (XV_csc *InstancePtr, u32 Data)
 This function sets the hardware register clamp minimum value. More...
 
u32 XV_csc_Get_HwReg_ClampMin_2_V (XV_csc *InstancePtr)
 This function gets the hardware register clamp minimum value. More...
 
void XV_csc_Set_HwReg_ClipMax_2_V (XV_csc *InstancePtr, u32 Data)
 This function sets the hardware register clip maximum value. More...
 
u32 XV_csc_Get_HwReg_ClipMax_2_V (XV_csc *InstancePtr)
 This function gets the hardware register clip maximum value. More...
 
void XV_csc_InterruptGlobalEnable (XV_csc *InstancePtr)
 This function enables global interrupts. More...
 
void XV_csc_InterruptGlobalDisable (XV_csc *InstancePtr)
 This function disables global interrupts. More...
 
void XV_csc_InterruptEnable (XV_csc *InstancePtr, u32 Mask)
 This function enables specific interrupts. More...
 
void XV_csc_InterruptDisable (XV_csc *InstancePtr, u32 Mask)
 Disable specific interrupts for the XV_csc instance. More...
 
void XV_csc_InterruptClear (XV_csc *InstancePtr, u32 Mask)
 This function clears specific interrupts. More...
 
u32 XV_csc_InterruptGetEnabled (XV_csc *InstancePtr)
 This Function Retrieves the interrupt enable register value for the XV_csc instance. More...
 
u32 XV_csc_InterruptGetStatus (XV_csc *InstancePtr)
 Retrieves the interrupt status of the Color Space Converter (CSC) core. More...
 

Function Documentation

int XV_csc_CfgInitialize ( XV_csc InstancePtr,
XV_csc_Config ConfigPtr,
UINTPTR  EffectiveAddr 
)

XV_csc_CfgInitialize - Initializes a specific XV_csc instance.

This function initializes an XV_csc instance using the provided configuration structure and effective base address. It copies the configuration, sets the base address, and marks the instance as ready for use.

Parameters
InstancePtr,:Pointer to the XV_csc instance to be initialized.
ConfigPtr,:Pointer to the configuration structure for the instance.
EffectiveAddr,:Physical base address for the hardware instance.
Returns
  • XST_SUCCESS if initialization was successful.

Preconditions:

  • InstancePtr must not be NULL.
  • ConfigPtr must not be NULL.
  • EffectiveAddr must not be NULL.

References XV_csc_Config::BaseAddress, XV_csc::Config, and XV_csc::IsReady.

Referenced by XV_csc_Initialize().

void XV_csc_DisableAutoRestart ( XV_csc InstancePtr)

Disable the auto-restart feature of the XV_csc hardware core.

This function disables the auto-restart mechanism by writing 0 to the AP_CTRL register of the core. Auto-restart allows the core to automatically start processing after completing the previous operation. Disabling it requires manual intervention to start subsequent operations.

Parameters
InstancePtrPointer to the XV_csc instance.

CODE

  • InstancePtr must not be NULL.
  • InstancePtr->IsReady must be set to XIL_COMPONENT_IS_READY.
Returns
None.

References XV_csc_Config::BaseAddress, XV_csc::Config, XV_csc::IsReady, and XV_CSC_CTRL_ADDR_AP_CTRL.

Referenced by XV_CscStop().

void XV_csc_EnableAutoRestart ( XV_csc InstancePtr)

Enables the auto-restart feature for the Color Space Converter (CSC) hardware.

This function sets the appropriate control register bit to enable automatic restarting of the CSC hardware after each operation, allowing continuous processing without manual intervention.

Parameters
InstancePtrPointer to the XV_csc instance.

CODE

  • InstancePtr must not be NULL.
  • InstancePtr->IsReady must be equal to XIL_COMPONENT_IS_READY.
Note
  • This function does not check if auto-restart is already enabled.
  • The function is intended for use with Xilinx CSC hardware.

References XV_csc_Config::BaseAddress, XV_csc::Config, XV_csc::IsReady, and XV_CSC_CTRL_ADDR_AP_CTRL.

Referenced by XV_CscStart().

u32 XV_csc_Get_HwReg_BOffset_2_V ( XV_csc InstancePtr)

This function gets the hardware register B offset 2 value.

Parameters
InstancePtrPointer to the XV_csc instance.
Returns
The value of the hardware register B offset 2.

References XV_csc_Config::BaseAddress, XV_csc::Config, and XV_csc::IsReady.

Referenced by XV_CscDbgReportStatus().

u32 XV_csc_Get_HwReg_BOffset_V ( XV_csc InstancePtr)

This function gets the BOffset_V hardware register value.

Parameters
InstancePtrPointer to the XV_csc instance.
Returns
The value of the BOffset_V register.

References XV_csc_Config::BaseAddress, XV_csc::Config, and XV_csc::IsReady.

Referenced by XV_CscDbgReportStatus().

u32 XV_csc_Get_HwReg_ClampMin_2_V ( XV_csc InstancePtr)

This function gets the hardware register clamp minimum value.

Parameters
InstancePtrPointer to the XV_csc instance.
Returns
The value of the hardware register clamp minimum.

References XV_csc_Config::BaseAddress, XV_csc::Config, and XV_csc::IsReady.

Referenced by XV_CscDbgReportStatus().

u32 XV_csc_Get_HwReg_ClampMin_V ( XV_csc InstancePtr)

This function gets the ClampMin_V hardware register value.

Parameters
InstancePtrPointer to the XV_csc instance.
Returns
The value of the ClampMin_V register.

References XV_csc_Config::BaseAddress, XV_csc::Config, and XV_csc::IsReady.

Referenced by XV_CscDbgReportStatus().

u32 XV_csc_Get_HwReg_ClipMax_2_V ( XV_csc InstancePtr)

This function gets the hardware register clip maximum value.

Parameters
InstancePtrPointer to the XV_csc instance.
Returns
The value of the hardware register clip maximum.

References XV_csc_Config::BaseAddress, XV_csc::Config, and XV_csc::IsReady.

Referenced by XV_CscDbgReportStatus().

u32 XV_csc_Get_HwReg_ClipMax_V ( XV_csc InstancePtr)

This function gets the ClipMax_V hardware register value.

Parameters
InstancePtrPointer to the XV_csc instance.
Returns
The value of the ClipMax_V register.

References XV_csc_Config::BaseAddress, XV_csc::Config, and XV_csc::IsReady.

Referenced by XV_CscDbgReportStatus().

u32 XV_csc_Get_HwReg_ColEnd ( XV_csc InstancePtr)

Retrieves the value of the HWREG_COLEND hardware register from the Color Space Converter (CSC) instance.

This function reads the column end value from the CSC hardware register, which is used to determine the end column for color space conversion operations.

Parameters
InstancePtrPointer to the XV_csc instance.
  • Must not be NULL.
  • Instance must be initialized and ready.
Returns
The value of the HWREG_COLEND register.
Note
The function asserts that the instance pointer is valid and the component is ready.

References XV_csc_Config::BaseAddress, XV_csc::Config, and XV_csc::IsReady.

Referenced by XV_CscDbgReportStatus().

u32 XV_csc_Get_HwReg_ColStart ( XV_csc InstancePtr)

Retrieves the value of the hardware register for column start from the CSC (Color Space Converter) instance.

This function reads the HWREG_COLSTART register from the hardware using the base address provided in the instance configuration. It asserts that the instance pointer is not NULL and that the instance is ready before performing the read operation.

Parameters
InstancePtrPointer to the XV_csc instance.
Returns
The value of the HWREG_COLSTART hardware register.

References XV_csc_Config::BaseAddress, XV_csc::Config, and XV_csc::IsReady.

Referenced by XV_CscDbgReportStatus().

u32 XV_csc_Get_HwReg_GOffset_2_V ( XV_csc InstancePtr)

This function gets the hardware register G offset 2 value.

Parameters
InstancePtrPointer to the XV_csc instance.
Returns
The value of the hardware register G offset 2.

References XV_csc_Config::BaseAddress, XV_csc::Config, and XV_csc::IsReady.

Referenced by XV_CscDbgReportStatus().

u32 XV_csc_Get_HwReg_GOffset_V ( XV_csc InstancePtr)

This function gets the GOffset_V hardware register value.

Parameters
InstancePtrPointer to the XV_csc instance.
Returns
The value of the GOffset_V register.

References XV_csc_Config::BaseAddress, XV_csc::Config, and XV_csc::IsReady.

Referenced by XV_CscDbgReportStatus().

u32 XV_csc_Get_HwReg_height ( XV_csc InstancePtr)

Retrieves the value of the hardware register that stores the height parameter for the Color Space Converter (CSC) instance.

This function reads the height value from the hardware register associated with the CSC peripheral. It asserts that the provided instance pointer is not NULL and that the instance is ready before accessing the register.

Parameters
InstancePtrPointer to the XV_csc instance.
Returns
The value of the height register (u32).

References XV_csc_Config::BaseAddress, XV_csc::Config, and XV_csc::IsReady.

Referenced by XV_CscDbgReportStatus().

u32 XV_csc_Get_HwReg_InVideoFormat ( XV_csc InstancePtr)

Retrieves the hardware register value for the input video format.

This function reads the value from the hardware register that specifies the input video format for the Color Space Converter (CSC) instance.

Parameters
InstancePtrPointer to the XV_csc instance. Must not be NULL and must be initialized.
Returns
The value of the input video format hardware register.

References XV_csc_Config::BaseAddress, XV_csc::Config, and XV_csc::IsReady.

Referenced by XV_CscDbgReportStatus().

u32 XV_csc_Get_HwReg_K11 ( XV_csc InstancePtr)

Retrieves the value of the HWREG_K11 hardware register from the CSC (Color Space Converter) instance.

This function reads the value of the K11 register from the hardware using the base address specified in the instance configuration. It asserts that the instance pointer is not NULL and that the instance is ready before performing the read operation.

Parameters
InstancePtrPointer to the XV_csc instance.
Returns
The value read from the HWREG_K11 register.

References XV_csc_Config::BaseAddress, XV_csc::Config, and XV_csc::IsReady.

Referenced by XV_CscDbgReportStatus().

u32 XV_csc_Get_HwReg_K11_2 ( XV_csc InstancePtr)

This function gets the K11_2 hardware register value.

Parameters
InstancePtrPointer to the XV_csc instance.
Returns
The value of the K11_2 register.

References XV_csc_Config::BaseAddress, XV_csc::Config, and XV_csc::IsReady.

Referenced by XV_CscDbgReportStatus().

u32 XV_csc_Get_HwReg_K12 ( XV_csc InstancePtr)

Retrieves the value of the HWREG_K12 hardware register from the CSC (Color Space Converter) instance.

This function reads the value of the HWREG_K12 register using the base address from the instance's configuration. It asserts that the instance pointer is not NULL and that the instance is ready before accessing the register.

Parameters
InstancePtrPointer to the XV_csc instance.
Returns
The 32-bit value read from the HWREG_K12 register.

References XV_csc_Config::BaseAddress, XV_csc::Config, and XV_csc::IsReady.

Referenced by XV_CscDbgReportStatus().

u32 XV_csc_Get_HwReg_K12_2 ( XV_csc InstancePtr)

This function gets the K12_2 hardware register value.

Parameters
InstancePtrPointer to the XV_csc instance.
Returns
The value of the K12_2 register.

References XV_csc_Config::BaseAddress, XV_csc::Config, and XV_csc::IsReady.

Referenced by XV_CscDbgReportStatus().

u32 XV_csc_Get_HwReg_K13 ( XV_csc InstancePtr)

Retrieves the value of the HWREG_K13 hardware register from the CSC (Color Space Converter) instance.

Parameters
InstancePtrPointer to the XV_csc instance.
  • Must not be NULL.
  • Must be initialized and ready.
Returns
The 32-bit value read from the HWREG_K13 register.
Note
This function asserts that the instance pointer is valid and the instance is ready.

References XV_csc_Config::BaseAddress, XV_csc::Config, and XV_csc::IsReady.

Referenced by XV_CscDbgReportStatus().

u32 XV_csc_Get_HwReg_K13_2 ( XV_csc InstancePtr)

This function gets the K13_2 hardware register value.

Parameters
InstancePtrPointer to the XV_csc instance.
Returns
The value of the K13_2 register.

References XV_csc_Config::BaseAddress, XV_csc::Config, and XV_csc::IsReady.

Referenced by XV_CscDbgReportStatus().

u32 XV_csc_Get_HwReg_K21 ( XV_csc InstancePtr)

Retrieves the value of the HWREG_K21 hardware register from the CSC (Color Space Converter) instance.

This function reads the value of the HWREG_K21 register using the base address specified in the instance configuration. It asserts that the instance pointer is not NULL and that the instance is ready before performing the read operation.

Parameters
InstancePtrPointer to the XV_csc instance.
Returns
The 32-bit value read from the HWREG_K21 register.

References XV_csc_Config::BaseAddress, XV_csc::Config, and XV_csc::IsReady.

Referenced by XV_CscDbgReportStatus().

u32 XV_csc_Get_HwReg_K21_2 ( XV_csc InstancePtr)

This function gets the K21_2 hardware register value.

Parameters
InstancePtrPointer to the XV_csc instance.
Returns
The value of the K21_2 register.

References XV_csc_Config::BaseAddress, XV_csc::Config, and XV_csc::IsReady.

Referenced by XV_CscDbgReportStatus().

u32 XV_csc_Get_HwReg_K22 ( XV_csc InstancePtr)

Retrieves the value of the HWREG_K22 hardware register from the CSC (Color Space Converter) instance.

This function reads the value of the K22 register from the hardware using the base address specified in the instance configuration. It asserts that the instance pointer is not NULL and that the instance is ready before performing the read operation.

Parameters
InstancePtrPointer to the XV_csc instance.
Returns
The value read from the HWREG_K22 register.

References XV_csc_Config::BaseAddress, XV_csc::Config, and XV_csc::IsReady.

Referenced by XV_CscDbgReportStatus().

u32 XV_csc_Get_HwReg_K22_2 ( XV_csc InstancePtr)

This function gets the K22_2 hardware register value.

Parameters
InstancePtrPointer to the XV_csc instance.
Returns
The value of the K22_2 register.

References XV_csc_Config::BaseAddress, XV_csc::Config, and XV_csc::IsReady.

Referenced by XV_CscDbgReportStatus().

u32 XV_csc_Get_HwReg_K23 ( XV_csc InstancePtr)

This function gets the K23 hardware register value.

Parameters
InstancePtrPointer to the XV_csc instance.
Returns
The value of the K23 register.

References XV_csc_Config::BaseAddress, XV_csc::Config, and XV_csc::IsReady.

Referenced by XV_CscDbgReportStatus().

u32 XV_csc_Get_HwReg_K23_2 ( XV_csc InstancePtr)

This function gets the K23_2 hardware register value.

Parameters
InstancePtrPointer to the XV_csc instance.
Returns
The value of the K23_2 register.

References XV_csc_Config::BaseAddress, XV_csc::Config, and XV_csc::IsReady.

Referenced by XV_CscDbgReportStatus().

u32 XV_csc_Get_HwReg_K31 ( XV_csc InstancePtr)

This function gets the K31 hardware register value.

Parameters
InstancePtrPointer to the XV_csc instance.
Returns
The value of the K31 register.

References XV_csc_Config::BaseAddress, XV_csc::Config, and XV_csc::IsReady.

Referenced by XV_CscDbgReportStatus().

u32 XV_csc_Get_HwReg_K31_2 ( XV_csc InstancePtr)

This function gets the K31_2 hardware register value.

Parameters
InstancePtrPointer to the XV_csc instance.
Returns
The value of the K31_2 register.

References XV_csc_Config::BaseAddress, XV_csc::Config, and XV_csc::IsReady.

Referenced by XV_CscDbgReportStatus().

u32 XV_csc_Get_HwReg_K32 ( XV_csc InstancePtr)

This function gets the K32 hardware register value.

Parameters
InstancePtrPointer to the XV_csc instance.
Returns
The value of the K32 register.

References XV_csc_Config::BaseAddress, XV_csc::Config, and XV_csc::IsReady.

Referenced by XV_CscDbgReportStatus().

u32 XV_csc_Get_HwReg_K32_2 ( XV_csc InstancePtr)

This function gets the K32_2 hardware register value.

Parameters
InstancePtrPointer to the XV_csc instance.
Returns
The value of the K32_2 register.

References XV_csc_Config::BaseAddress, XV_csc::Config, and XV_csc::IsReady.

Referenced by XV_CscDbgReportStatus().

u32 XV_csc_Get_HwReg_K33 ( XV_csc InstancePtr)

This function gets the K33 hardware register value.

Parameters
InstancePtrPointer to the XV_csc instance.
Returns
The value of the K33 register.

References XV_csc_Config::BaseAddress, XV_csc::Config, and XV_csc::IsReady.

Referenced by XV_CscDbgReportStatus().

u32 XV_csc_Get_HwReg_K33_2 ( XV_csc InstancePtr)

This function gets the K33_2 hardware register value.

Parameters
InstancePtrPointer to the XV_csc instance.
Returns
The value of the K33_2 register.

References XV_csc_Config::BaseAddress, XV_csc::Config, and XV_csc::IsReady.

Referenced by XV_CscDbgReportStatus().

u32 XV_csc_Get_HwReg_OutVideoFormat ( XV_csc InstancePtr)

Retrieves the output video format hardware register value from the CSC (Color Space Converter) instance.

Parameters
InstancePtrPointer to the XV_csc instance.
  • Must not be NULL.
  • Must be initialized and ready.
Returns
The value of the HWREG_OUTVIDEOFORMAT register.
Note
This function asserts that the instance pointer is valid and the component is ready.

References XV_csc_Config::BaseAddress, XV_csc::Config, and XV_csc::IsReady.

Referenced by XV_CscDbgReportStatus().

u32 XV_csc_Get_HwReg_ROffset_2_V ( XV_csc InstancePtr)

This function gets the hardware register R offset 2 value.

Parameters
InstancePtrPointer to the XV_csc instance.
Returns
The value of the hardware register R offset 2.

References XV_csc_Config::BaseAddress, XV_csc::Config, and XV_csc::IsReady.

Referenced by XV_CscDbgReportStatus().

u32 XV_csc_Get_HwReg_ROffset_V ( XV_csc InstancePtr)

This function gets the ROffset_V hardware register value.

Parameters
InstancePtrPointer to the XV_csc instance.
Returns
The value of the ROffset_V register.

References XV_csc_Config::BaseAddress, XV_csc::Config, and XV_csc::IsReady.

Referenced by XV_CscDbgReportStatus().

u32 XV_csc_Get_HwReg_RowEnd ( XV_csc InstancePtr)

Retrieves the value of the HWREG_ROWEND hardware register from the Color Space Converter (CSC) instance.

This function reads the HWREG_ROWEND register, which typically indicates the end row address or value used in hardware processing for the CSC core. It asserts that the provided instance pointer is valid and that the instance is ready before accessing the register.

Parameters
InstancePtrPointer to the XV_csc instance.
Returns
The value read from the HWREG_ROWEND register.

References XV_csc_Config::BaseAddress, XV_csc::Config, and XV_csc::IsReady.

Referenced by XV_CscDbgReportStatus().

u32 XV_csc_Get_HwReg_RowStart ( XV_csc InstancePtr)

Retrieves the value of the HWREG_ROWSTART hardware register from the CSC core.

This function reads the HWREG_ROWSTART register using the base address from the configuration of the provided XV_csc instance. It asserts that the instance pointer is not NULL and that the instance is ready before performing the read operation.

Parameters
InstancePtrPointer to the XV_csc instance.
Returns
The value of the HWREG_ROWSTART register.

References XV_csc_Config::BaseAddress, XV_csc::Config, and XV_csc::IsReady.

Referenced by XV_CscDbgReportStatus().

u32 XV_csc_Get_HwReg_width ( XV_csc InstancePtr)

Retrieves the hardware register value for the width parameter of the CSC (Color Space Converter) instance.

This function reads the width value from the hardware register associated with the given CSC instance. It asserts that the instance pointer is not NULL and that the instance is ready before accessing the register.

Parameters
InstancePtrPointer to the XV_csc instance.
Returns
The width value read from the hardware register.

References XV_csc_Config::BaseAddress, XV_csc::Config, and XV_csc::IsReady.

Referenced by XV_CscDbgReportStatus().

void XV_csc_InterruptClear ( XV_csc InstancePtr,
u32  Mask 
)

This function clears specific interrupts.

Parameters
InstancePtrPointer to the XV_csc instance.
MaskThe mask of interrupts to clear.
Returns
None

References XV_csc_Config::BaseAddress, XV_csc::Config, and XV_csc::IsReady.

void XV_csc_InterruptDisable ( XV_csc InstancePtr,
u32  Mask 
)

Disable specific interrupts for the XV_csc instance.

This function disables the interrupts specified by the Mask parameter for the given XV_csc instance. It reads the current interrupt enable register, clears the bits specified by Mask, and writes the updated value back to the register.

Parameters
InstancePtrPointer to the XV_csc instance.
MaskBitmask specifying which interrupts to disable.
Note
  • The InstancePtr must be valid and initialized.
  • Only the interrupts specified by Mask will be disabled.

References XV_csc_Config::BaseAddress, XV_csc::Config, and XV_csc::IsReady.

void XV_csc_InterruptEnable ( XV_csc InstancePtr,
u32  Mask 
)

This function enables specific interrupts.

Parameters
InstancePtrPointer to the XV_csc instance.
MaskThe mask of interrupts to enable.
Returns
None

References XV_csc_Config::BaseAddress, XV_csc::Config, and XV_csc::IsReady.

u32 XV_csc_InterruptGetEnabled ( XV_csc InstancePtr)

This Function Retrieves the interrupt enable register value for the XV_csc instance.

This function checks that the provided instance pointer is valid and that the instance is ready. It then reads and returns the value of the Interrupt Enable Register (IER) from the hardware.

Parameters
InstancePtrPointer to the XV_csc instance.
Returns
The value of the interrupt enable register.

References XV_csc_Config::BaseAddress, XV_csc::Config, and XV_csc::IsReady.

u32 XV_csc_InterruptGetStatus ( XV_csc InstancePtr)

Retrieves the interrupt status of the Color Space Converter (CSC) core.

This function reads the Interrupt Status Register (ISR) of the CSC hardware to determine the current interrupt status. It asserts that the provided instance pointer is not NULL and that the instance is ready before accessing the hardware register.

Parameters
InstancePtrPointer to the XV_csc instance.
Returns
The value of the interrupt status register (ISR).

References XV_csc_Config::BaseAddress, XV_csc::Config, and XV_csc::IsReady.

void XV_csc_InterruptGlobalDisable ( XV_csc InstancePtr)

This function disables global interrupts.

Parameters
InstancePtrPointer to the XV_csc instance.
Returns
None

References XV_csc_Config::BaseAddress, XV_csc::Config, and XV_csc::IsReady.

void XV_csc_InterruptGlobalEnable ( XV_csc InstancePtr)

This function enables global interrupts.

Parameters
InstancePtrPointer to the XV_csc instance.
Returns
None

References XV_csc_Config::BaseAddress, XV_csc::Config, and XV_csc::IsReady.

u32 XV_csc_IsDone ( XV_csc InstancePtr)

Checks if the XV_csc hardware core has completed its current operation.

This function reads the control register of the XV_csc instance to determine if the hardware operation is done. It asserts that the instance pointer is not NULL and that the instance is ready before accessing the hardware.

Parameters
InstancePtris a pointer to the XV_csc instance.
Returns
1 if the operation is done, 0 otherwise.

References XV_csc_Config::BaseAddress, XV_csc::Config, XV_csc::IsReady, and XV_CSC_CTRL_ADDR_AP_CTRL.

Referenced by XV_CscDbgReportStatus().

u32 XV_csc_IsIdle ( XV_csc InstancePtr)

Checks if the XV_csc hardware core is idle.

This function reads the control register of the XV_csc instance and determines whether the core is currently idle. It asserts that the instance pointer is not NULL and that the core is ready before performing the check.

Parameters
InstancePtrPointer to the XV_csc instance.
Returns
  • 1 if the core is idle.
  • 0 if the core is not idle.

References XV_csc_Config::BaseAddress, XV_csc::Config, XV_csc::IsReady, and XV_CSC_CTRL_ADDR_AP_CTRL.

Referenced by XV_CscDbgReportStatus().

u32 XV_csc_IsReady ( XV_csc InstancePtr)

Checks if the XV_csc hardware core is ready to accept new input.

This function reads the control register of the XV_csc instance to determine if the core is ready for the next operation. It asserts that the instance pointer is valid and that the core has been initialized. The readiness is determined by checking the 'ap_start' bit in the control register.

Parameters
InstancePtrPointer to the XV_csc instance.
Returns
  • 1 if the core is ready for new input.
  • 0 if the core is busy processing previous input.

References XV_csc_Config::BaseAddress, XV_csc::Config, XV_csc::IsReady, and XV_CSC_CTRL_ADDR_AP_CTRL.

Referenced by XV_CscDbgReportStatus().

void XV_csc_Set_HwReg_BOffset_2_V ( XV_csc InstancePtr,
u32  Data 
)

This function sets the hardware register B offset 2 value.

Parameters
InstancePtrPointer to the XV_csc instance.
DataThe value to set in the hardware register B offset 2.
Returns
None

References XV_csc_Config::BaseAddress, XV_csc::Config, and XV_csc::IsReady.

void XV_csc_Set_HwReg_BOffset_V ( XV_csc InstancePtr,
u32  Data 
)

This function sets the BOffset_V hardware register.

Parameters
InstancePtrPointer to the XV_csc instance.
DataData to write to the BOffset_V register.
Returns
None.

References XV_csc_Config::BaseAddress, XV_csc::Config, and XV_csc::IsReady.

void XV_csc_Set_HwReg_ClampMin_2_V ( XV_csc InstancePtr,
u32  Data 
)

This function sets the hardware register clamp minimum value.

Parameters
InstancePtrPointer to the XV_csc instance.
DataThe value to set in the hardware register clamp minimum.
Returns
None

References XV_csc_Config::BaseAddress, XV_csc::Config, and XV_csc::IsReady.

void XV_csc_Set_HwReg_ClampMin_V ( XV_csc InstancePtr,
u32  Data 
)

This function sets the ClampMin_V hardware register.

Parameters
InstancePtrPointer to the XV_csc instance.
DataData to write to the ClampMin_V register.
Returns
None.

References XV_csc_Config::BaseAddress, XV_csc::Config, and XV_csc::IsReady.

void XV_csc_Set_HwReg_ClipMax_2_V ( XV_csc InstancePtr,
u32  Data 
)

This function sets the hardware register clip maximum value.

Parameters
InstancePtrPointer to the XV_csc instance.
DataThe value to set in the hardware register clip maximum.
Returns
None

References XV_csc_Config::BaseAddress, XV_csc::Config, and XV_csc::IsReady.

void XV_csc_Set_HwReg_ClipMax_V ( XV_csc InstancePtr,
u32  Data 
)

This function sets the ClipMax_V hardware register.

Parameters
InstancePtrPointer to the XV_csc instance.
DataData to write to the ClipMax_V register.
Returns
None.

References XV_csc_Config::BaseAddress, XV_csc::Config, and XV_csc::IsReady.

void XV_csc_Set_HwReg_ColEnd ( XV_csc InstancePtr,
u32  Data 
)

Sets the hardware register for the column end value in the Color Space Converter (CSC) core.

This function writes the specified column end value to the corresponding hardware register. It first asserts that the provided instance pointer is not NULL and that the instance is ready.

Parameters
InstancePtrPointer to the XV_csc instance.
DataThe column end value to be written to the hardware register.
Returns
None

References XV_csc_Config::BaseAddress, XV_csc::Config, and XV_csc::IsReady.

Referenced by XV_CscSetActiveSize(), and XV_CscSetDemoWindow().

void XV_csc_Set_HwReg_ColStart ( XV_csc InstancePtr,
u32  Data 
)

Sets the hardware register for column start value in the Color Space Converter (CSC) core.

This function writes the specified column start value to the hardware register responsible for controlling the column start position in the CSC core.

Parameters
InstancePtrPointer to the XV_csc instance.
DataThe column start value to be written to the hardware register.
Returns
None
Note
The function asserts that the instance pointer is not NULL and that the instance is ready before performing the register write.

References XV_csc_Config::BaseAddress, XV_csc::Config, and XV_csc::IsReady.

Referenced by XV_CscSetActiveSize(), and XV_CscSetDemoWindow().

void XV_csc_Set_HwReg_GOffset_2_V ( XV_csc InstancePtr,
u32  Data 
)

This function sets the hardware register G offset 2 value.

Parameters
InstancePtrPointer to the XV_csc instance.
DataThe value to set in the hardware register G offset 2.
Returns
None

References XV_csc_Config::BaseAddress, XV_csc::Config, and XV_csc::IsReady.

void XV_csc_Set_HwReg_GOffset_V ( XV_csc InstancePtr,
u32  Data 
)

This function sets the GOffset_V hardware register.

Parameters
InstancePtrPointer to the XV_csc instance.
DataData to write to the GOffset_V register.
Returns
None.

References XV_csc_Config::BaseAddress, XV_csc::Config, and XV_csc::IsReady.

void XV_csc_Set_HwReg_height ( XV_csc InstancePtr,
u32  Data 
)

Sets the hardware register for the height parameter in the XV_csc instance.

This function writes the specified height value to the hardware register responsible for controlling the height in the Color Space Converter (CSC) core.

Parameters
InstancePtrPointer to the XV_csc instance.
DataThe height value to be written to the hardware register.
Returns
None
Note
The instance pointer must not be NULL and the instance must be ready.

References XV_csc_Config::BaseAddress, XV_csc::Config, and XV_csc::IsReady.

Referenced by XV_CscSetActiveSize().

void XV_csc_Set_HwReg_InVideoFormat ( XV_csc InstancePtr,
u32  Data 
)

Sets the input video format hardware register for the XV_csc instance.

This function writes the specified data value to the hardware register responsible for configuring the input video format of the Color Space Converter (CSC).

Parameters
InstancePtrPointer to the XV_csc instance.
DataValue to be written to the input video format register.
Returns
None.
Note
The instance pointer must not be NULL and the instance must be ready.

References XV_csc_Config::BaseAddress, XV_csc::Config, and XV_csc::IsReady.

Referenced by XV_CscSetColorspace().

void XV_csc_Set_HwReg_K11 ( XV_csc InstancePtr,
u32  Data 
)

Sets the value of the HWREG_K11 hardware register for the CSC (Color Space Converter) instance.

This function writes the specified data to the HWREG_K11 register of the CSC hardware. It first asserts that the provided instance pointer is not NULL and that the instance is ready.

Parameters
InstancePtrPointer to the XV_csc instance.
DataValue to be written to the HWREG_K11 register.
Returns
None

References XV_csc_Config::BaseAddress, XV_csc::Config, and XV_csc::IsReady.

void XV_csc_Set_HwReg_K11_2 ( XV_csc InstancePtr,
u32  Data 
)

This function sets the K11_2 hardware register.

Parameters
InstancePtrPointer to the XV_csc instance.
DataData to write to the K11_2 register.
Returns
None.

References XV_csc_Config::BaseAddress, XV_csc::Config, and XV_csc::IsReady.

void XV_csc_Set_HwReg_K12 ( XV_csc InstancePtr,
u32  Data 
)

Set the value of the HWREG_K12 hardware register for the XV_csc instance.

This function writes the specified data to the HWREG_K12 register of the Color Space Converter (CSC) hardware. It first checks that the instance pointer is not NULL and that the instance is ready before performing the register write.

Parameters
InstancePtrPointer to the XV_csc instance.
Data32-bit value to write to the HWREG_K12 register.
Returns
None

References XV_csc_Config::BaseAddress, XV_csc::Config, and XV_csc::IsReady.

void XV_csc_Set_HwReg_K12_2 ( XV_csc InstancePtr,
u32  Data 
)

This function sets the K12_2 hardware register.

Parameters
InstancePtrPointer to the XV_csc instance.
DataData to write to the K12_2 register.
Returns
None.

References XV_csc_Config::BaseAddress, XV_csc::Config, and XV_csc::IsReady.

void XV_csc_Set_HwReg_K13 ( XV_csc InstancePtr,
u32  Data 
)

Set the value of the HWREG_K13 hardware register for the XV_csc instance.

This function writes the specified data to the HWREG_K13 register of the Color Space Converter (CSC) hardware. It first checks that the instance pointer is not NULL and that the instance is ready before performing the register write.

Parameters
InstancePtrPointer to the XV_csc instance.
DataValue to be written to the HWREG_K13 register.
Returns
None

References XV_csc_Config::BaseAddress, XV_csc::Config, and XV_csc::IsReady.

void XV_csc_Set_HwReg_K13_2 ( XV_csc InstancePtr,
u32  Data 
)

This function sets the K13_2 hardware register.

Parameters
InstancePtrPointer to the XV_csc instance.
DataData to write to the K13_2 register.
Returns
None.

References XV_csc_Config::BaseAddress, XV_csc::Config, and XV_csc::IsReady.

void XV_csc_Set_HwReg_K21 ( XV_csc InstancePtr,
u32  Data 
)

Sets the value of the HWREG_K21 hardware register for the XV_csc instance.

This function writes the specified data to the HWREG_K21 register of the Color Space Converter (CSC) hardware. It first asserts that the instance pointer is not NULL and that the instance is ready before performing the register write operation.

Parameters
InstancePtrPointer to the XV_csc instance.
Data32-bit value to be written to the HWREG_K21 register.
Returns
None

References XV_csc_Config::BaseAddress, XV_csc::Config, and XV_csc::IsReady.

void XV_csc_Set_HwReg_K21_2 ( XV_csc InstancePtr,
u32  Data 
)

This function sets the K21_2 hardware register.

Parameters
InstancePtrPointer to the XV_csc instance.
DataData to write to the K21_2 register.
Returns
None.

References XV_csc_Config::BaseAddress, XV_csc::Config, and XV_csc::IsReady.

void XV_csc_Set_HwReg_K22 ( XV_csc InstancePtr,
u32  Data 
)

Sets the value of the HWREG_K22 hardware register for the XV_csc instance.

This function writes the specified data to the HWREG_K22 register of the Color Space Converter (CSC) hardware. It first checks that the instance pointer is not NULL and that the instance is ready before performing the register write operation.

Parameters
InstancePtrPointer to the XV_csc instance.
DataValue to be written to the HWREG_K22 register.
Returns
None

References XV_csc_Config::BaseAddress, XV_csc::Config, and XV_csc::IsReady.

void XV_csc_Set_HwReg_K22_2 ( XV_csc InstancePtr,
u32  Data 
)

This function sets the K22_2 hardware register.

Parameters
InstancePtrPointer to the XV_csc instance.
DataData to write to the K22_2 register.
Returns
None.

References XV_csc_Config::BaseAddress, XV_csc::Config, and XV_csc::IsReady.

void XV_csc_Set_HwReg_K23 ( XV_csc InstancePtr,
u32  Data 
)

Sets the value of the HWREG_K23 hardware register for the XV_csc instance.

This function writes the specified data to the HWREG_K23 register of the Color Space Converter (CSC) hardware. It first asserts that the instance pointer is not NULL and that the instance is ready before performing the register write operation.

Parameters
InstancePtrPointer to the XV_csc instance.
DataValue to be written to the HWREG_K23 register.
Returns
None

References XV_csc_Config::BaseAddress, XV_csc::Config, and XV_csc::IsReady.

void XV_csc_Set_HwReg_K23_2 ( XV_csc InstancePtr,
u32  Data 
)

This function sets the K23_2 hardware register.

Parameters
InstancePtrPointer to the XV_csc instance.
DataData to write to the K23_2 register.
Returns
None.

References XV_csc_Config::BaseAddress, XV_csc::Config, and XV_csc::IsReady.

void XV_csc_Set_HwReg_K31 ( XV_csc InstancePtr,
u32  Data 
)

This function sets the K31 hardware register.

Parameters
InstancePtrPointer to the XV_csc instance.
DataData to write to the K31 register.
Returns
None.

References XV_csc_Config::BaseAddress, XV_csc::Config, and XV_csc::IsReady.

void XV_csc_Set_HwReg_K31_2 ( XV_csc InstancePtr,
u32  Data 
)

This function sets the K31_2 hardware register.

Parameters
InstancePtrPointer to the XV_csc instance.
DataData to write to the K31_2 register.
Returns
None.

References XV_csc_Config::BaseAddress, XV_csc::Config, and XV_csc::IsReady.

void XV_csc_Set_HwReg_K32 ( XV_csc InstancePtr,
u32  Data 
)

This function sets the K32 hardware register.

Parameters
InstancePtrPointer to the XV_csc instance.
DataData to write to the K32 register.
Returns
None.

References XV_csc_Config::BaseAddress, XV_csc::Config, and XV_csc::IsReady.

void XV_csc_Set_HwReg_K32_2 ( XV_csc InstancePtr,
u32  Data 
)

This function sets the K32_2 hardware register.

Parameters
InstancePtrPointer to the XV_csc instance.
DataData to write to the K32_2 register.
Returns
None.

References XV_csc_Config::BaseAddress, XV_csc::Config, and XV_csc::IsReady.

void XV_csc_Set_HwReg_K33 ( XV_csc InstancePtr,
u32  Data 
)

This function sets the K33 hardware register.

Parameters
InstancePtrPointer to the XV_csc instance.
DataData to write to the K33 register.
Returns
None.

References XV_csc_Config::BaseAddress, XV_csc::Config, and XV_csc::IsReady.

void XV_csc_Set_HwReg_K33_2 ( XV_csc InstancePtr,
u32  Data 
)

This function sets the K33_2 hardware register.

Parameters
InstancePtrPointer to the XV_csc instance.
DataData to write to the K33_2 register.
Returns
None.

References XV_csc_Config::BaseAddress, XV_csc::Config, and XV_csc::IsReady.

void XV_csc_Set_HwReg_OutVideoFormat ( XV_csc InstancePtr,
u32  Data 
)

Sets the output video format hardware register for the CSC (Color Space Converter) instance.

This function writes the specified data value to the hardware register responsible for configuring the output video format of the CSC core.

Parameters
InstancePtrPointer to the XV_csc instance.
DataValue to be written to the output video format register.
Note
The function asserts that the instance pointer is not NULL and that the instance is ready.
Returns
None

References XV_csc_Config::BaseAddress, XV_csc::Config, and XV_csc::IsReady.

Referenced by XV_CscSetColorspace().

void XV_csc_Set_HwReg_ROffset_2_V ( XV_csc InstancePtr,
u32  Data 
)

This function sets the ROffset_2_V hardware register.

Parameters
InstancePtrPointer to the XV_csc instance.
DataData to write to the ROffset_2_V register.
Returns
None.

References XV_csc_Config::BaseAddress, XV_csc::Config, and XV_csc::IsReady.

void XV_csc_Set_HwReg_ROffset_V ( XV_csc InstancePtr,
u32  Data 
)

This function sets the ROffset_V hardware register.

Parameters
InstancePtrPointer to the XV_csc instance.
DataData to write to the ROffset_V register.
Returns
None.

References XV_csc_Config::BaseAddress, XV_csc::Config, and XV_csc::IsReady.

void XV_csc_Set_HwReg_RowEnd ( XV_csc InstancePtr,
u32  Data 
)

Sets the hardware register for the row end value in the Color Space Converter (CSC) core.

This function writes the specified data to the HWREG_ROWEND register of the CSC hardware. It asserts that the provided instance pointer is not NULL and that the instance is ready before performing the register write.

Parameters
InstancePtrPointer to the XV_csc instance.
DataValue to be written to the HWREG_ROWEND register.
Returns
None

References XV_csc_Config::BaseAddress, XV_csc::Config, and XV_csc::IsReady.

Referenced by XV_CscSetActiveSize(), and XV_CscSetDemoWindow().

void XV_csc_Set_HwReg_RowStart ( XV_csc InstancePtr,
u32  Data 
)

Sets the hardware register for the row start value in the Color Space Converter (CSC) core.

This function writes the specified row start value to the corresponding hardware register. It asserts that the provided instance pointer is not NULL and that the instance is ready.

Parameters
InstancePtrPointer to the XV_csc instance.
DataValue to be written to the HWREG_ROWSTART register.
Returns
None

References XV_csc_Config::BaseAddress, XV_csc::Config, and XV_csc::IsReady.

Referenced by XV_CscSetActiveSize(), and XV_CscSetDemoWindow().

void XV_csc_Set_HwReg_width ( XV_csc InstancePtr,
u32  Data 
)

Sets the hardware register for the width parameter of the XV_csc instance.

This function writes the specified width value to the hardware register associated with the XV_csc instance. It first checks that the instance pointer is not NULL and that the instance is ready before performing the register write.

Parameters
InstancePtrPointer to the XV_csc instance.
DataWidth value to be written to the hardware register.
Returns
None.

References XV_csc_Config::BaseAddress, XV_csc::Config, and XV_csc::IsReady.

Referenced by XV_CscSetActiveSize().

void XV_csc_Start ( XV_csc InstancePtr)

Starts the Color Space Converter (CSC) hardware core.

This function initiates the operation of the CSC hardware by setting the appropriate control register bit. It first asserts that the provided instance pointer is valid and that the core is ready. Then, it reads the current value of the control register, preserves the auto-restart bit, and sets the start bit to begin processing.

Parameters
InstancePtrPointer to the XV_csc instance.
Returns
None
Note
This function does not wait for the operation to complete.

References XV_csc_Config::BaseAddress, XV_csc::Config, XV_csc::IsReady, and XV_CSC_CTRL_ADDR_AP_CTRL.

Referenced by XV_CscStart().