v_hscaler
Vitis Drivers API Documentation
xv_hscaler.h File Reference

Data Structures

struct  XV_hscaler_Config
 This typedef contains configuration information for the horizontal scaler core. More...
 
struct  XV_hscaler
 Driver instance data. More...
 

Functions

int XV_hscaler_Initialize (XV_hscaler *InstancePtr, u16 DeviceId)
 XV_hscaler_Initialize - Initializes an XV_hscaler instance. More...
 
XV_hscaler_ConfigXV_hscaler_LookupConfig (u16 DeviceId)
 This function looks up the configuration for a device instance by its DeviceId. More...
 
int XV_hscaler_CfgInitialize (XV_hscaler *InstancePtr, XV_hscaler_Config *ConfigPtr, UINTPTR EffectiveAddr)
 XV_hscaler_CfgInitialize - Initializes an XV_hscaler instance. More...
 
void XV_hscaler_Start (XV_hscaler *InstancePtr)
 XV_hscaler_Start - Start the HScaler hardware. More...
 
u32 XV_hscaler_IsDone (XV_hscaler *InstancePtr)
 XV_hscaler_IsDone - Check if the HScaler operation is done. More...
 
u32 XV_hscaler_IsIdle (XV_hscaler *InstancePtr)
 XV_hscaler_IsIdle - Check if the HScaler hardware is idle. More...
 
u32 XV_hscaler_IsReady (XV_hscaler *InstancePtr)
 XV_hscaler_IsReady - Check if HScaler is ready for next input. More...
 
void XV_hscaler_EnableAutoRestart (XV_hscaler *InstancePtr)
 XV_hscaler_EnableAutoRestart - Enable auto-restart mode. More...
 
void XV_hscaler_DisableAutoRestart (XV_hscaler *InstancePtr)
 XV_hscaler_DisableAutoRestart - Disable auto-restart mode. More...
 
void XV_hscaler_Set_HwReg_Height (XV_hscaler *InstancePtr, u32 Data)
 XV_hscaler_Set_HwReg_Height - Set the HWREG_HEIGHT register. More...
 
u32 XV_hscaler_Get_HwReg_Height (XV_hscaler *InstancePtr)
 XV_hscaler_Get_HwReg_Height - Get HWREG_HEIGHT register value. More...
 
void XV_hscaler_Set_HwReg_WidthIn (XV_hscaler *InstancePtr, u32 Data)
 XV_hscaler_Set_HwReg_WidthIn - Set HWREG_WIDTHIN register. More...
 
u32 XV_hscaler_Get_HwReg_WidthIn (XV_hscaler *InstancePtr)
 XV_hscaler_Get_HwReg_WidthIn - Get HWREG_WIDTHIN register value. More...
 
void XV_hscaler_Set_HwReg_WidthOut (XV_hscaler *InstancePtr, u32 Data)
 XV_hscaler_Set_HwReg_WidthOut - Set HWREG_WIDTHOUT register. More...
 
u32 XV_hscaler_Get_HwReg_WidthOut (XV_hscaler *InstancePtr)
 XV_hscaler_Get_HwReg_WidthOut - Get HWREG_WIDTHOUT register value. More...
 
void XV_hscaler_Set_HwReg_ColorMode (XV_hscaler *InstancePtr, u32 Data)
 XV_hscaler_Set_HwReg_ColorMode - Set HWREG_COLORMODE register. More...
 
u32 XV_hscaler_Get_HwReg_ColorMode (XV_hscaler *InstancePtr)
 XV_hscaler_Get_HwReg_ColorMode - Get HWREG_COLORMODE register value. More...
 
void XV_hscaler_Set_HwReg_ColorModeOut (XV_hscaler *InstancePtr, u32 Data)
 XV_hscaler_Set_HwReg_ColorModeOut - Set HWREG_COLORMODEOUT reg. More...
 
u32 XV_hscaler_Get_HwReg_ColorModeOut (XV_hscaler *InstancePtr)
 XV_hscaler_Get_HwReg_ColorModeOut - Get HWREG_COLORMODEOUT reg value. More...
 
void XV_hscaler_Set_HwReg_PixelRate (XV_hscaler *InstancePtr, u32 Data)
 This function sets the hardware register pixel rate. More...
 
u32 XV_hscaler_Get_HwReg_PixelRate (XV_hscaler *InstancePtr)
 This function gets the hardware register pixel rate. More...
 
UINTPTR XV_hscaler_Get_HwReg_hfltCoeff_BaseAddress (XV_hscaler *InstancePtr)
 This function gets the base address of the hardware register hfltCoeff. More...
 
UINTPTR XV_hscaler_Get_HwReg_hfltCoeff_HighAddress (XV_hscaler *InstancePtr)
 This function gets the high address of the hardware register hfltCoeff. More...
 
u32 XV_hscaler_Get_HwReg_hfltCoeff_TotalBytes (XV_hscaler *InstancePtr)
 This function gets the total bytes of the hardware register hfltCoeff. More...
 
u32 XV_hscaler_Get_HwReg_hfltCoeff_BitWidth (XV_hscaler *InstancePtr)
 This function gets the bit width of the hardware register hfltCoeff. More...
 
u32 XV_hscaler_Get_HwReg_hfltCoeff_Depth (XV_hscaler *InstancePtr)
 This function gets the depth of the hardware register hfltCoeff. More...
 
u32 XV_hscaler_Write_HwReg_hfltCoeff_Words (XV_hscaler *InstancePtr, int offset, int *data, int length)
 This function writes words to the hardware register hfltCoeff. More...
 
u32 XV_hscaler_Read_HwReg_hfltCoeff_Words (XV_hscaler *InstancePtr, int offset, int *data, int length)
 This function reads words from the hardware register hfltCoeff. More...
 
u32 XV_hscaler_Write_HwReg_hfltCoeff_Bytes (XV_hscaler *InstancePtr, int offset, char *data, int length)
 This function writes bytes to the hardware register hfltCoeff. More...
 
u32 XV_hscaler_Read_HwReg_hfltCoeff_Bytes (XV_hscaler *InstancePtr, int offset, char *data, int length)
 This function reads bytes from the hardware register hfltCoeff. More...
 
UINTPTR XV_hscaler_Get_HwReg_phasesH_V_BaseAddress (XV_hscaler *InstancePtr)
 This function gets the base address of the hardware register phasesH_V. More...
 
UINTPTR XV_hscaler_Get_HwReg_phasesH_V_HighAddress (XV_hscaler *InstancePtr)
 function gets the high address of the hardware register phasesH_V. More...
 
u32 XV_hscaler_Get_HwReg_phasesH_V_TotalBytes (XV_hscaler *InstancePtr)
 This function gets the total bytes of the hardware register phasesH_V. More...
 
u32 XV_hscaler_Get_HwReg_phasesH_V_BitWidth (XV_hscaler *InstancePtr)
 This function gets the bit width of the hardware register phasesH_V. More...
 
u32 XV_hscaler_Get_HwReg_phasesH_V_Depth (XV_hscaler *InstancePtr)
 This function gets the depth of the hardware register phasesH_V. More...
 
u32 XV_hscaler_Write_HwReg_phasesH_V_Words (XV_hscaler *InstancePtr, int offset, int *data, int length)
 This function writes words to the hardware register phasesH_V. More...
 
u32 XV_hscaler_Read_HwReg_phasesH_V_Words (XV_hscaler *InstancePtr, int offset, int *data, int length)
 This function reads words from the hardware register phasesH_V. More...
 
u32 XV_hscaler_Write_HwReg_phasesH_V_Bytes (XV_hscaler *InstancePtr, int offset, char *data, int length)
 This function writes bytes to the hardware register phasesH_V. More...
 
u32 XV_hscaler_Read_HwReg_phasesH_V_Bytes (XV_hscaler *InstancePtr, int offset, char *data, int length)
 This function reads bytes from the hardware register phasesH_V. More...
 
void XV_hscaler_InterruptGlobalEnable (XV_hscaler *InstancePtr)
 This function enables global interrupts. More...
 
void XV_hscaler_InterruptGlobalDisable (XV_hscaler *InstancePtr)
 This function disables global interrupts. More...
 
void XV_hscaler_InterruptEnable (XV_hscaler *InstancePtr, u32 Mask)
 This function enables specific interrupts. More...
 
void XV_hscaler_InterruptDisable (XV_hscaler *InstancePtr, u32 Mask)
 This function disables specific interrupts. More...
 
void XV_hscaler_InterruptClear (XV_hscaler *InstancePtr, u32 Mask)
 This function clears specific interrupts. More...
 
u32 XV_hscaler_InterruptGetEnabled (XV_hscaler *InstancePtr)
 This function gets the enabled interrupts. More...
 
u32 XV_hscaler_InterruptGetStatus (XV_hscaler *InstancePtr)
 This function gets the interrupt status. More...
 

Function Documentation

int XV_hscaler_CfgInitialize ( XV_hscaler InstancePtr,
XV_hscaler_Config ConfigPtr,
UINTPTR  EffectiveAddr 
)

XV_hscaler_CfgInitialize - Initializes an XV_hscaler instance.

Parameters
InstancePtris a pointer to the XV_hscaler instance to be worked on.
ConfigPtrpoints to the configuration structure.
EffectiveAddris the base address of the device.
Returns
  • XST_SUCCESS if initialization was successful.
Note
None. XV_hscaler_CfgInitialize - Initialize an XV_hscaler instance.

This function initializes an XV_hscaler 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
InstancePtrPointer to the XV_hscaler instance to be initialized.
ConfigPtrPointer to the configuration structure for the device.
EffectiveAddrPhysical base address of the device.
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_hscaler_Config::BaseAddress, XV_hscaler::Config, and XV_hscaler::IsReady.

Referenced by XV_hscaler_Initialize().

void XV_hscaler_DisableAutoRestart ( XV_hscaler InstancePtr)

XV_hscaler_DisableAutoRestart - Disable auto-restart mode.

Parameters
InstancePtris a pointer to the XV_hscaler instance.
Returns
None

This function clears the auto-restart bit (bit 7) in the control register, disabling the hardware from automatically restarting after completing an operation.

References XV_hscaler_Config::BaseAddress, XV_hscaler::Config, XV_hscaler::IsReady, and XV_HSCALER_CTRL_ADDR_AP_CTRL.

Referenced by XV_HScalerStop().

void XV_hscaler_EnableAutoRestart ( XV_hscaler InstancePtr)

XV_hscaler_EnableAutoRestart - Enable auto-restart mode.

Parameters
InstancePtris a pointer to the XV_hscaler instance.
Returns
None

This function sets the auto-restart bit (bit 7) in the control register, enabling the hardware to automatically restart after completing an operation.

References XV_hscaler_Config::BaseAddress, XV_hscaler::Config, XV_hscaler::IsReady, and XV_HSCALER_CTRL_ADDR_AP_CTRL.

Referenced by XV_HScalerStart().

u32 XV_hscaler_Get_HwReg_ColorMode ( XV_hscaler InstancePtr)

XV_hscaler_Get_HwReg_ColorMode - Get HWREG_COLORMODE register value.

Parameters
InstancePtris a pointer to the XV_hscaler instance.

This function reads the HWREG_COLORMODE register from the HScaler hardware and returns its value.

Returns
Value of HWREG_COLORMODE register.

References XV_hscaler_Config::BaseAddress, XV_hscaler::Config, and XV_hscaler::IsReady.

Referenced by XV_HScalerDbgReportStatus().

u32 XV_hscaler_Get_HwReg_ColorModeOut ( XV_hscaler InstancePtr)

XV_hscaler_Get_HwReg_ColorModeOut - Get HWREG_COLORMODEOUT reg value.

Parameters
InstancePtris a pointer to the XV_hscaler instance.

This function reads the HWREG_COLORMODEOUT register from the HScaler hardware and returns its value.

Returns
Value of HWREG_COLORMODEOUT register.

References XV_hscaler_Config::BaseAddress, XV_hscaler::Config, and XV_hscaler::IsReady.

Referenced by XV_HScalerDbgReportStatus().

u32 XV_hscaler_Get_HwReg_Height ( XV_hscaler InstancePtr)

XV_hscaler_Get_HwReg_Height - Get HWREG_HEIGHT register value.

Parameters
InstancePtris a pointer to the XV_hscaler instance.

This function reads the HWREG_HEIGHT register from the HScaler hardware and returns its value.

Returns
Value of HWREG_HEIGHT register.

References XV_hscaler_Config::BaseAddress, XV_hscaler::Config, and XV_hscaler::IsReady.

Referenced by XV_HScalerDbgReportStatus().

UINTPTR XV_hscaler_Get_HwReg_hfltCoeff_BaseAddress ( XV_hscaler InstancePtr)

This function gets the base address of the hardware register hfltCoeff.

Parameters
InstancePtrPointer to the XV_hscaler instance.
Returns
The base address of the hardware register hfltCoeff.

References XV_hscaler_Config::BaseAddress, XV_hscaler::Config, and XV_hscaler::IsReady.

Referenced by XV_HScalerDbgReportStatus().

u32 XV_hscaler_Get_HwReg_hfltCoeff_BitWidth ( XV_hscaler InstancePtr)

This function gets the bit width of the hardware register hfltCoeff.

Parameters
InstancePtrPointer to the XV_hscaler instance.
Returns
The bit width of the hardware register hfltCoeff.

References XV_hscaler::IsReady.

u32 XV_hscaler_Get_HwReg_hfltCoeff_Depth ( XV_hscaler InstancePtr)

This function gets the depth of the hardware register hfltCoeff.

Parameters
InstancePtrPointer to the XV_hscaler instance.
Returns
The depth of the hardware register hfltCoeff.

References XV_hscaler::IsReady.

UINTPTR XV_hscaler_Get_HwReg_hfltCoeff_HighAddress ( XV_hscaler InstancePtr)

This function gets the high address of the hardware register hfltCoeff.

Parameters
InstancePtrPointer to the XV_hscaler instance.
Returns
The high address of the hardware register hfltCoeff.

References XV_hscaler_Config::BaseAddress, XV_hscaler::Config, and XV_hscaler::IsReady.

u32 XV_hscaler_Get_HwReg_hfltCoeff_TotalBytes ( XV_hscaler InstancePtr)

This function gets the total bytes of the hardware register hfltCoeff.

Parameters
InstancePtrPointer to the XV_hscaler instance.
Returns
The total bytes of the hardware register hfltCoeff.

References XV_hscaler::IsReady.

UINTPTR XV_hscaler_Get_HwReg_phasesH_V_BaseAddress ( XV_hscaler InstancePtr)

This function gets the base address of the hardware register phasesH_V.

Parameters
InstancePtrPointer to the XV_hscaler instance.
Returns
The base address of the hardware register phasesH_V.

References XV_hscaler_Config::BaseAddress, XV_hscaler::Config, and XV_hscaler::IsReady.

u32 XV_hscaler_Get_HwReg_phasesH_V_BitWidth ( XV_hscaler InstancePtr)

This function gets the bit width of the hardware register phasesH_V.

Parameters
InstancePtrPointer to the XV_hscaler instance.
Returns
The bit width of the hardware register phasesH_V.

References XV_hscaler::IsReady.

u32 XV_hscaler_Get_HwReg_phasesH_V_Depth ( XV_hscaler InstancePtr)

This function gets the depth of the hardware register phasesH_V.

Parameters
InstancePtrPointer to the XV_hscaler instance.
Returns
The depth of the hardware register phasesH_V.

References XV_hscaler::IsReady.

UINTPTR XV_hscaler_Get_HwReg_phasesH_V_HighAddress ( XV_hscaler InstancePtr)

function gets the high address of the hardware register phasesH_V.

Parameters
InstancePtrPointer to the XV_hscaler instance.
Returns
The high address of the hardware register phasesH_V.

References XV_hscaler_Config::BaseAddress, XV_hscaler::Config, and XV_hscaler::IsReady.

u32 XV_hscaler_Get_HwReg_phasesH_V_TotalBytes ( XV_hscaler InstancePtr)

This function gets the total bytes of the hardware register phasesH_V.

Parameters
InstancePtrPointer to the XV_hscaler instance.
Returns
The total bytes of the hardware register phasesH_V.

References XV_hscaler::IsReady.

u32 XV_hscaler_Get_HwReg_PixelRate ( XV_hscaler InstancePtr)

This function gets the hardware register pixel rate.

Parameters
InstancePtrPointer to the XV_hscaler instance.
Returns
The value of the hardware register pixel rate.

References XV_hscaler_Config::BaseAddress, XV_hscaler::Config, and XV_hscaler::IsReady.

Referenced by XV_HScalerDbgReportStatus().

u32 XV_hscaler_Get_HwReg_WidthIn ( XV_hscaler InstancePtr)

XV_hscaler_Get_HwReg_WidthIn - Get HWREG_WIDTHIN register value.

Parameters
InstancePtris a pointer to the XV_hscaler instance.

This function reads the HWREG_WIDTHIN register from the HScaler hardware and returns its value.

Returns
Value of HWREG_WIDTHIN register.

References XV_hscaler_Config::BaseAddress, XV_hscaler::Config, and XV_hscaler::IsReady.

Referenced by XV_HScalerDbgReportStatus().

u32 XV_hscaler_Get_HwReg_WidthOut ( XV_hscaler InstancePtr)

XV_hscaler_Get_HwReg_WidthOut - Get HWREG_WIDTHOUT register value.

Parameters
InstancePtris a pointer to the XV_hscaler instance.

This function reads the HWREG_WIDTHOUT register from the HScaler hardware and returns its value.

Returns
Value of HWREG_WIDTHOUT register.

References XV_hscaler_Config::BaseAddress, XV_hscaler::Config, and XV_hscaler::IsReady.

Referenced by XV_HScalerDbgReportStatus().

int XV_hscaler_Initialize ( XV_hscaler InstancePtr,
u16  DeviceId 
)

XV_hscaler_Initialize - Initializes an XV_hscaler instance.

This function looks up the hardware configuration for the device specified by DeviceId, and initializes the XV_hscaler instance pointed to by InstancePtr. If the configuration is not found, the function sets the instance's IsReady flag to 0 and returns XST_DEVICE_NOT_FOUND. Otherwise, it calls XV_hscaler_CfgInitialize to complete the initialization.

Parameters
InstancePtrPointer to the XV_hscaler instance to be initialized.
DeviceIdUnique device ID of the XV_hscaler core.
Returns
  • XST_SUCCESS if initialization was successful.
  • XST_DEVICE_NOT_FOUND if the device configuration could not be found.

References XV_hscaler_Config::BaseAddress, XV_hscaler::IsReady, XV_hscaler_CfgInitialize(), and XV_hscaler_LookupConfig().

Referenced by XV_HScalerInitialize().

void XV_hscaler_InterruptClear ( XV_hscaler InstancePtr,
u32  Mask 
)

This function clears specific interrupts.

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

References XV_hscaler_Config::BaseAddress, XV_hscaler::Config, and XV_hscaler::IsReady.

void XV_hscaler_InterruptDisable ( XV_hscaler InstancePtr,
u32  Mask 
)

This function disables specific interrupts.

Parameters
InstancePtrPointer to the XV_hscaler instance.
MaskThe mask of interrupts to disable.
Returns
None

References XV_hscaler_Config::BaseAddress, XV_hscaler::Config, and XV_hscaler::IsReady.

void XV_hscaler_InterruptEnable ( XV_hscaler InstancePtr,
u32  Mask 
)

This function enables specific interrupts.

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

References XV_hscaler_Config::BaseAddress, XV_hscaler::Config, and XV_hscaler::IsReady.

u32 XV_hscaler_InterruptGetEnabled ( XV_hscaler InstancePtr)

This function gets the enabled interrupts.

Parameters
InstancePtrPointer to the XV_hscaler instance.
Returns
The mask of enabled interrupts.

References XV_hscaler_Config::BaseAddress, XV_hscaler::Config, and XV_hscaler::IsReady.

u32 XV_hscaler_InterruptGetStatus ( XV_hscaler InstancePtr)

This function gets the interrupt status.

Parameters
InstancePtrPointer to the XV_hscaler instance.
Returns
The mask of interrupt status.

References XV_hscaler_Config::BaseAddress, XV_hscaler::Config, and XV_hscaler::IsReady.

void XV_hscaler_InterruptGlobalDisable ( XV_hscaler InstancePtr)

This function disables global interrupts.

Parameters
InstancePtrPointer to the XV_hscaler instance.
Returns
None

References XV_hscaler_Config::BaseAddress, XV_hscaler::Config, and XV_hscaler::IsReady.

void XV_hscaler_InterruptGlobalEnable ( XV_hscaler InstancePtr)

This function enables global interrupts.

Parameters
InstancePtrPointer to the XV_hscaler instance.
Returns
None

References XV_hscaler_Config::BaseAddress, XV_hscaler::Config, and XV_hscaler::IsReady.

u32 XV_hscaler_IsDone ( XV_hscaler InstancePtr)

XV_hscaler_IsDone - Check if the HScaler operation is done.

Parameters
InstancePtris a pointer to the XV_hscaler instance.

This function reads the control register and checks the ap_done bit (bit 1) to determine if the hardware has finished processing.

Returns
1 if done, 0 otherwise.

References XV_hscaler_Config::BaseAddress, XV_hscaler::Config, XV_hscaler::IsReady, and XV_HSCALER_CTRL_ADDR_AP_CTRL.

Referenced by XV_HScalerDbgReportStatus().

u32 XV_hscaler_IsIdle ( XV_hscaler InstancePtr)

XV_hscaler_IsIdle - Check if the HScaler hardware is idle.

Parameters
InstancePtris a pointer to the XV_hscaler instance.

This function reads the control register and checks the ap_idle bit (bit 2) to determine if the hardware is idle.

Returns
1 if idle, 0 otherwise.

References XV_hscaler_Config::BaseAddress, XV_hscaler::Config, XV_hscaler::IsReady, and XV_HSCALER_CTRL_ADDR_AP_CTRL.

Referenced by XV_HScalerDbgReportStatus().

u32 XV_hscaler_IsReady ( XV_hscaler InstancePtr)

XV_hscaler_IsReady - Check if HScaler is ready for next input.

Parameters
InstancePtris a pointer to the XV_hscaler instance.

This function reads the control register and checks the ap_start bit (bit 0) to determine if the hardware is ready for the next input. Returns 1 if ready, 0 otherwise.

Returns
1 if ready, 0 otherwise.

References XV_hscaler_Config::BaseAddress, XV_hscaler::Config, XV_hscaler::IsReady, and XV_HSCALER_CTRL_ADDR_AP_CTRL.

Referenced by XV_HScalerDbgReportStatus().

XV_hscaler_Config* XV_hscaler_LookupConfig ( u16  DeviceId)

This function looks up the configuration for a device instance by its DeviceId.

Parameters
DeviceIdis the unique device ID of the XV_hscaler instance.
Returns
A pointer to the configuration structure if found, or NULL otherwise.
Note
None.

Referenced by XV_hscaler_Initialize().

u32 XV_hscaler_Read_HwReg_hfltCoeff_Bytes ( XV_hscaler InstancePtr,
int  offset,
char *  data,
int  length 
)

This function reads bytes from the hardware register hfltCoeff.

Parameters
InstancePtrPointer to the XV_hscaler instance.
offsetThe offset to start reading.
dataPointer to the buffer to store the read data.
lengthThe number of bytes to read.
Returns
The number of bytes read.

References XV_hscaler_Config::BaseAddress, XV_hscaler::Config, and XV_hscaler::IsReady.

u32 XV_hscaler_Read_HwReg_hfltCoeff_Words ( XV_hscaler InstancePtr,
int  offset,
int *  data,
int  length 
)

This function reads words from the hardware register hfltCoeff.

Parameters
InstancePtrPointer to the XV_hscaler instance.
offsetThe offset to start reading.
dataPointer to the buffer to store the read data.
lengthThe number of words to read.
Returns
The number of words read.

References XV_hscaler_Config::BaseAddress, XV_hscaler::Config, and XV_hscaler::IsReady.

u32 XV_hscaler_Read_HwReg_phasesH_V_Bytes ( XV_hscaler InstancePtr,
int  offset,
char *  data,
int  length 
)

This function reads bytes from the hardware register phasesH_V.

Parameters
InstancePtrPointer to the XV_hscaler instance.
offsetThe offset to start reading.
dataPointer to the buffer to store the read data.
lengthThe number of bytes to read.
Returns
The number of bytes read.

References XV_hscaler_Config::BaseAddress, XV_hscaler::Config, and XV_hscaler::IsReady.

u32 XV_hscaler_Read_HwReg_phasesH_V_Words ( XV_hscaler InstancePtr,
int  offset,
int *  data,
int  length 
)

This function reads words from the hardware register phasesH_V.

Parameters
InstancePtrPointer to the XV_hscaler instance.
offsetThe offset to start reading.
dataPointer to the buffer to store the read data.
lengthThe number of words to read.
Returns
The number of words read.

References XV_hscaler_Config::BaseAddress, XV_hscaler::Config, and XV_hscaler::IsReady.

void XV_hscaler_Set_HwReg_ColorMode ( XV_hscaler InstancePtr,
u32  Data 
)

XV_hscaler_Set_HwReg_ColorMode - Set HWREG_COLORMODE register.

Parameters
InstancePtris a pointer to the XV_hscaler instance.
Datais the value to write to HWREG_COLORMODE register.
Returns
None This function writes the specified value to the HWREG_COLORMODE register of the HScaler hardware.

References XV_hscaler_Config::BaseAddress, XV_hscaler::Config, and XV_hscaler::IsReady.

Referenced by XV_HScalerSetup().

void XV_hscaler_Set_HwReg_ColorModeOut ( XV_hscaler InstancePtr,
u32  Data 
)

XV_hscaler_Set_HwReg_ColorModeOut - Set HWREG_COLORMODEOUT reg.

Parameters
InstancePtris a pointer to the XV_hscaler instance.
Datais the value to write to HWREG_COLORMODEOUT reg.
Returns
None This function writes the specified value to the HWREG_COLORMODEOUT register of the HScaler hardware.

References XV_hscaler_Config::BaseAddress, XV_hscaler::Config, and XV_hscaler::IsReady.

Referenced by XV_HScalerSetup().

void XV_hscaler_Set_HwReg_Height ( XV_hscaler InstancePtr,
u32  Data 
)

XV_hscaler_Set_HwReg_Height - Set the HWREG_HEIGHT register.

Parameters
InstancePtris a pointer to the XV_hscaler instance.
Datais the value to write to HWREG_HEIGHT register.
Returns
None This function writes the specified value to the HWREG_HEIGHT register of the HScaler hardware.

References XV_hscaler_Config::BaseAddress, XV_hscaler::Config, and XV_hscaler::IsReady.

Referenced by XV_HScalerSetup().

void XV_hscaler_Set_HwReg_PixelRate ( XV_hscaler InstancePtr,
u32  Data 
)

This function sets the hardware register pixel rate.

Parameters
InstancePtrPointer to the XV_hscaler instance.
DataThe value to set in the hardware register pixel rate.
Returns
None

References XV_hscaler_Config::BaseAddress, XV_hscaler::Config, and XV_hscaler::IsReady.

Referenced by XV_HScalerSetup().

void XV_hscaler_Set_HwReg_WidthIn ( XV_hscaler InstancePtr,
u32  Data 
)

XV_hscaler_Set_HwReg_WidthIn - Set HWREG_WIDTHIN register.

Parameters
InstancePtris a pointer to the XV_hscaler instance.
Datais the value to write to HWREG_WIDTHIN register.
Returns
None This function writes the specified value to the HWREG_WIDTHIN register of the HScaler hardware.

References XV_hscaler_Config::BaseAddress, XV_hscaler::Config, and XV_hscaler::IsReady.

Referenced by XV_HScalerSetup().

void XV_hscaler_Set_HwReg_WidthOut ( XV_hscaler InstancePtr,
u32  Data 
)

XV_hscaler_Set_HwReg_WidthOut - Set HWREG_WIDTHOUT register.

Parameters
InstancePtris a pointer to the XV_hscaler instance.
Datais the value to write to HWREG_WIDTHOUT register.
Returns
None This function writes the specified value to the HWREG_WIDTHOUT register of the HScaler hardware.

References XV_hscaler_Config::BaseAddress, XV_hscaler::Config, and XV_hscaler::IsReady.

Referenced by XV_HScalerSetup().

void XV_hscaler_Start ( XV_hscaler InstancePtr)

XV_hscaler_Start - Start the HScaler hardware.

Parameters
InstancePtris a pointer to the XV_hscaler instance.
Returns
None This function sets the ap_start bit in the control register to start the hardware. It preserves the auto-restart bit.

References XV_hscaler_Config::BaseAddress, XV_hscaler::Config, XV_hscaler::IsReady, and XV_HSCALER_CTRL_ADDR_AP_CTRL.

Referenced by XV_HScalerStart().

u32 XV_hscaler_Write_HwReg_hfltCoeff_Bytes ( XV_hscaler InstancePtr,
int  offset,
char *  data,
int  length 
)

This function writes bytes to the hardware register hfltCoeff.

Parameters
InstancePtrPointer to the XV_hscaler instance.
offsetThe offset to start writing.
dataPointer to the data to write.
lengthThe number of bytes to write.
Returns
The number of bytes written.

References XV_hscaler_Config::BaseAddress, XV_hscaler::Config, and XV_hscaler::IsReady.

u32 XV_hscaler_Write_HwReg_hfltCoeff_Words ( XV_hscaler InstancePtr,
int  offset,
int *  data,
int  length 
)

This function writes words to the hardware register hfltCoeff.

Parameters
InstancePtrPointer to the XV_hscaler instance.
offsetThe offset to start writing.
dataPointer to the data to write.
lengthThe number of words to write.
Returns
The number of words written.

References XV_hscaler_Config::BaseAddress, XV_hscaler::Config, and XV_hscaler::IsReady.

u32 XV_hscaler_Write_HwReg_phasesH_V_Bytes ( XV_hscaler InstancePtr,
int  offset,
char *  data,
int  length 
)

This function writes bytes to the hardware register phasesH_V.

Parameters
InstancePtrPointer to the XV_hscaler instance.
offsetThe offset to start writing.
dataPointer to the data to write.
lengthThe number of bytes to write.
Returns
The number of bytes written.

References XV_hscaler_Config::BaseAddress, XV_hscaler::Config, and XV_hscaler::IsReady.

u32 XV_hscaler_Write_HwReg_phasesH_V_Words ( XV_hscaler InstancePtr,
int  offset,
int *  data,
int  length 
)

This function writes words to the hardware register phasesH_V.

Parameters
InstancePtrPointer to the XV_hscaler instance.
offsetThe offset to start writing.
dataPointer to the data to write.
lengthThe number of words to write.
Returns
The number of words written.

References XV_hscaler_Config::BaseAddress, XV_hscaler::Config, and XV_hscaler::IsReady.