v_letterbox
Vitis Drivers API Documentation
xv_letterbox_sinit.c File Reference

Functions

XV_letterbox_ConfigXV_letterbox_LookupConfig (u16 DeviceId)
 XV_letterbox_LookupConfig - Looks up the configuration for a specific XV_letterbox device. More...
 
int XV_letterbox_Initialize (XV_letterbox *InstancePtr, u16 DeviceId)
 XV_letterbox_Initialize - Initializes an XV_letterbox instance. More...
 

Variables

XV_letterbox_Config XV_letterbox_ConfigTable []
 XV_letterbox_ConfigTable - Configuration table for XV_letterbox driver instances. More...
 

Function Documentation

int XV_letterbox_Initialize ( XV_letterbox InstancePtr,
u16  DeviceId 
)

XV_letterbox_Initialize - Initializes an XV_letterbox instance.

This function initializes the specified XV_letterbox instance using the configuration data corresponding to the provided DeviceId. It first looks up the configuration for the given DeviceId. If the configuration is found, it initializes the instance with the configuration data and base address. If the configuration is not found, the function sets the instance's IsReady flag to 0 and returns XST_DEVICE_NOT_FOUND.

Parameters
InstancePtris a pointer to the XV_letterbox instance to be initialized.
DeviceIdis the unique identifier for the XV_letterbox device.
Returns
XST_SUCCESS if initialization is successful, or XST_DEVICE_NOT_FOUND if the device configuration is not found.

References XV_letterbox_Config::BaseAddress, XV_letterbox::IsReady, XV_letterbox_CfgInitialize(), and XV_letterbox_LookupConfig().

Referenced by XV_LBoxInitialize().

XV_letterbox_Config* XV_letterbox_LookupConfig ( u16  DeviceId)

XV_letterbox_LookupConfig - Looks up the configuration for a specific XV_letterbox device.

This function searches the configuration table for an entry that matches the provided DeviceId. If a matching configuration is found, a pointer to the configuration structure is returned. If no match is found, NULL is returned.

Parameters
DeviceIdis the unique identifier for the XV_letterbox device.
Returns
A pointer to the configuration structure corresponding to the given DeviceId, or NULL if no matching device is found.

Referenced by XV_letterbox_Initialize().

Variable Documentation

XV_letterbox_Config XV_letterbox_ConfigTable[]

XV_letterbox_ConfigTable - Configuration table for XV_letterbox driver instances.

This table contains configuration structures for each XV_letterbox hardware instance. Each entry specifies the hardware parameters for the instance.

Fields: DEVICE_ID - Unique device ID for the instance. BASEADDR - Base address of the hardware register. SAMPLES_PER_CLOCK - Number of samples processed per clock cycle. NUM_VIDEO_COMPONENTS - Number of video components supported. MAX_COLS - Maximum number of columns supported. MAX_ROWS - Maximum number of rows supported. MAX_DATA_WIDTH - Maximum data width supported.