![]() |
v_csc
Vitis Drivers API Documentation
|
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... | |
| 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.
| 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. |
Preconditions:
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.
| InstancePtr | Pointer to the XV_csc instance. |
CODE
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.
| InstancePtr | Pointer to the XV_csc instance. |
CODE
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.
| InstancePtr | Pointer to the XV_csc instance. |
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.
| InstancePtr | Pointer to the XV_csc instance. |
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.
| InstancePtr | Pointer to the XV_csc instance. |
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.
| InstancePtr | Pointer to the XV_csc instance. |
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.
| InstancePtr | Pointer to the XV_csc instance. |
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.
| InstancePtr | Pointer to the XV_csc instance. |
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.
| InstancePtr | Pointer to the XV_csc instance.
|
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.
| InstancePtr | Pointer to the XV_csc instance. |
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.
| InstancePtr | Pointer to the XV_csc instance. |
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.
| InstancePtr | Pointer to the XV_csc instance. |
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.
| InstancePtr | Pointer to the XV_csc instance. |
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.
| InstancePtr | Pointer to the XV_csc instance. Must not be NULL and must be initialized. |
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.
| InstancePtr | Pointer to the XV_csc instance. |
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.
| InstancePtr | Pointer to the XV_csc instance. |
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.
| InstancePtr | Pointer to the XV_csc instance. |
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.
| InstancePtr | Pointer to the XV_csc instance. |
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.
| InstancePtr | Pointer to the XV_csc instance.
|
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.
| InstancePtr | Pointer to the XV_csc instance. |
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.
| InstancePtr | Pointer to the XV_csc instance. |
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.
| InstancePtr | Pointer to the XV_csc instance. |
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.
| InstancePtr | Pointer to the XV_csc instance. |
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.
| InstancePtr | Pointer to the XV_csc instance. |
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.
| InstancePtr | Pointer to the XV_csc instance. |
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.
| InstancePtr | Pointer to the XV_csc instance. |
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.
| InstancePtr | Pointer to the XV_csc instance. |
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.
| InstancePtr | Pointer to the XV_csc instance. |
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.
| InstancePtr | Pointer to the XV_csc instance. |
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.
| InstancePtr | Pointer to the XV_csc instance. |
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.
| InstancePtr | Pointer to the XV_csc instance. |
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.
| InstancePtr | Pointer to the XV_csc instance. |
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.
| InstancePtr | Pointer to the XV_csc instance.
|
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.
| InstancePtr | Pointer to the XV_csc instance. |
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.
| InstancePtr | Pointer to the XV_csc instance. |
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.
| InstancePtr | Pointer to the XV_csc instance. |
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.
| InstancePtr | Pointer to the XV_csc instance. |
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.
| InstancePtr | Pointer to the XV_csc instance. |
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.
| InstancePtr | Pointer to the XV_csc instance. |
| Mask | The mask of interrupts to clear. |
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.
| InstancePtr | Pointer to the XV_csc instance. |
| Mask | Bitmask specifying which interrupts to disable. |
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.
| InstancePtr | Pointer to the XV_csc instance. |
| Mask | The mask of interrupts to enable. |
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.
| InstancePtr | Pointer to the XV_csc instance. |
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.
| InstancePtr | Pointer to the XV_csc instance. |
References XV_csc_Config::BaseAddress, XV_csc::Config, and XV_csc::IsReady.
| void XV_csc_InterruptGlobalDisable | ( | XV_csc * | InstancePtr | ) |
This function disables global interrupts.
| InstancePtr | Pointer to the XV_csc instance. |
References XV_csc_Config::BaseAddress, XV_csc::Config, and XV_csc::IsReady.
| void XV_csc_InterruptGlobalEnable | ( | XV_csc * | InstancePtr | ) |
This function enables global interrupts.
| InstancePtr | Pointer to the XV_csc instance. |
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.
| InstancePtr | is a pointer to the XV_csc instance. |
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.
| InstancePtr | Pointer to the XV_csc instance. |
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.
| InstancePtr | Pointer to the XV_csc instance. |
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.
| InstancePtr | Pointer to the XV_csc instance. |
| Data | The value to set in the hardware register B offset 2. |
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.
| InstancePtr | Pointer to the XV_csc instance. |
| Data | Data to write to the BOffset_V register. |
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.
| InstancePtr | Pointer to the XV_csc instance. |
| Data | The value to set in the hardware register clamp minimum. |
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.
| InstancePtr | Pointer to the XV_csc instance. |
| Data | Data to write to the ClampMin_V register. |
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.
| InstancePtr | Pointer to the XV_csc instance. |
| Data | The value to set in the hardware register clip maximum. |
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.
| InstancePtr | Pointer to the XV_csc instance. |
| Data | Data to write to the ClipMax_V register. |
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.
| InstancePtr | Pointer to the XV_csc instance. |
| Data | The column end value to be written to the hardware register. |
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.
| InstancePtr | Pointer to the XV_csc instance. |
| Data | The column start value to be written to the hardware register. |
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.
| InstancePtr | Pointer to the XV_csc instance. |
| Data | The value to set in the hardware register G offset 2. |
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.
| InstancePtr | Pointer to the XV_csc instance. |
| Data | Data to write to the GOffset_V register. |
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.
| InstancePtr | Pointer to the XV_csc instance. |
| Data | The height value to be written to the hardware register. |
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).
| InstancePtr | Pointer to the XV_csc instance. |
| Data | Value to be written to the input video format register. |
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.
| InstancePtr | Pointer to the XV_csc instance. |
| Data | Value to be written to the HWREG_K11 register. |
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.
| InstancePtr | Pointer to the XV_csc instance. |
| Data | Data to write to the K11_2 register. |
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.
| InstancePtr | Pointer to the XV_csc instance. |
| Data | 32-bit value to write to the HWREG_K12 register. |
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.
| InstancePtr | Pointer to the XV_csc instance. |
| Data | Data to write to the K12_2 register. |
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.
| InstancePtr | Pointer to the XV_csc instance. |
| Data | Value to be written to the HWREG_K13 register. |
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.
| InstancePtr | Pointer to the XV_csc instance. |
| Data | Data to write to the K13_2 register. |
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.
| InstancePtr | Pointer to the XV_csc instance. |
| Data | 32-bit value to be written to the HWREG_K21 register. |
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.
| InstancePtr | Pointer to the XV_csc instance. |
| Data | Data to write to the K21_2 register. |
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.
| InstancePtr | Pointer to the XV_csc instance. |
| Data | Value to be written to the HWREG_K22 register. |
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.
| InstancePtr | Pointer to the XV_csc instance. |
| Data | Data to write to the K22_2 register. |
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.
| InstancePtr | Pointer to the XV_csc instance. |
| Data | Value to be written to the HWREG_K23 register. |
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.
| InstancePtr | Pointer to the XV_csc instance. |
| Data | Data to write to the K23_2 register. |
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.
| InstancePtr | Pointer to the XV_csc instance. |
| Data | Data to write to the K31 register. |
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.
| InstancePtr | Pointer to the XV_csc instance. |
| Data | Data to write to the K31_2 register. |
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.
| InstancePtr | Pointer to the XV_csc instance. |
| Data | Data to write to the K32 register. |
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.
| InstancePtr | Pointer to the XV_csc instance. |
| Data | Data to write to the K32_2 register. |
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.
| InstancePtr | Pointer to the XV_csc instance. |
| Data | Data to write to the K33 register. |
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.
| InstancePtr | Pointer to the XV_csc instance. |
| Data | Data to write to the K33_2 register. |
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.
| InstancePtr | Pointer to the XV_csc instance. |
| Data | Value to be written to the output video format register. |
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.
| InstancePtr | Pointer to the XV_csc instance. |
| Data | Data to write to the ROffset_2_V register. |
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.
| InstancePtr | Pointer to the XV_csc instance. |
| Data | Data to write to the ROffset_V register. |
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.
| InstancePtr | Pointer to the XV_csc instance. |
| Data | Value to be written to the HWREG_ROWEND register. |
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.
| InstancePtr | Pointer to the XV_csc instance. |
| Data | Value to be written to the HWREG_ROWSTART register. |
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.
| InstancePtr | Pointer to the XV_csc instance. |
| Data | Width value to be written to the hardware register. |
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.
| InstancePtr | Pointer to the XV_csc instance. |
References XV_csc_Config::BaseAddress, XV_csc::Config, XV_csc::IsReady, and XV_CSC_CTRL_ADDR_AP_CTRL.
Referenced by XV_CscStart().