v_frmbuf_rd
Vitis Drivers API Documentation
xv_frmbufrd_sinit.c File Reference

Functions

XV_frmbufrd_ConfigXV_frmbufrd_LookupConfig (u16 DeviceId)
 Looks up the configuration for a frame buffer reader instance based on the given device ID. More...
 
int XV_frmbufrd_Initialize (XV_frmbufrd *InstancePtr, u16 DeviceId)
 Initializes the frame buffer read core instance. More...
 

Function Documentation

int XV_frmbufrd_Initialize ( XV_frmbufrd InstancePtr,
u16  DeviceId 
)

Initializes the frame buffer read core instance.

Parameters
InstancePtrPointer to the XV_frmbufrd instance to be initialized.
DeviceIdDevice ID of the frame buffer read core to look up configuration.

This function looks up the configuration for the specified device ID and initializes the XV_frmbufrd instance with the configuration data. If the configuration is not found, the function marks the instance as not ready and returns an error code.

Returns
XST_SUCCESS if initialization is successful. XST_DEVICE_NOT_FOUND if the configuration for the device ID is not found.

References XV_frmbufrd_Config::BaseAddress, XV_frmbufrd::IsReady, XV_frmbufrd_CfgInitialize(), and XV_frmbufrd_LookupConfig().

Referenced by XVFrmbufRd_Initialize().

XV_frmbufrd_Config* XV_frmbufrd_LookupConfig ( u16  DeviceId)

Looks up the configuration for a frame buffer reader instance based on the given device ID.

This function searches the XV_frmbufrd_ConfigTable for an entry whose DeviceId matches the specified DeviceId. If a matching entry is found, a pointer to its configuration structure is returned. If no matching entry is found, NULL is returned.

Parameters
DeviceIdDevice ID of the frame buffer reader core to look up.
Returns
A pointer to the configuration structure if found, or NULL otherwise.

Referenced by XV_frmbufrd_Initialize().