v_frmbuf_wr
Vitis Drivers API Documentation
xv_frmbufwr_sinit.c File Reference

Overview

Functions

XV_frmbufwr_ConfigXV_frmbufwr_LookupConfig (u16 DeviceId)
 XV_frmbufwr_LookupConfig - Looks up the configuration for a device instance. More...
 
int XV_frmbufwr_Initialize (XV_frmbufwr *InstancePtr, u16 DeviceId)
 Initialize the frame buffer write core instance. More...
 

Function Documentation

int XV_frmbufwr_Initialize ( XV_frmbufwr InstancePtr,
u16  DeviceId 
)

Initialize the frame buffer write core instance.

This function initializes an XV_frmbufwr instance using the configuration corresponding to the specified DeviceId. It looks up the configuration, checks for validity, and then calls the core's configuration initialization function. If the configuration is not found, the instance is marked as not ready and an error code is returned.

Parameters
InstancePtrPointer to the XV_frmbufwr instance to be initialized.
DeviceIdUnique device ID of the frame buffer write core.
Returns
  • XST_SUCCESS if initialization was successful.
  • XST_DEVICE_NOT_FOUND if the configuration for the given DeviceId was not found.

References XV_frmbufwr_Config::BaseAddress, XV_frmbufwr::IsReady, XV_frmbufwr_CfgInitialize(), and XV_frmbufwr_LookupConfig().

Referenced by XVFrmbufWr_Initialize().

XV_frmbufwr_Config* XV_frmbufwr_LookupConfig ( u16  DeviceId)

XV_frmbufwr_LookupConfig - Looks up the configuration for a device instance.

Parameters
DeviceIdThe unique device ID of the XV_frmbufwr instance to look up.
Returns
Pointer to the configuration structure if found, NULL otherwise.

This function searches the configuration table for an entry matching the specified DeviceId and returns a pointer to its configuration structure.

Referenced by XV_frmbufwr_Initialize().