v_mix
Vitis Drivers API Documentation
xv_mix_sinit.c File Reference

Functions

XV_mix_ConfigXV_mix_LookupConfig (u16 DeviceId)
 Looks up the hardware configuration for a given device ID. More...
 
int XV_mix_Initialize (XV_mix *InstancePtr, u16 DeviceId)
 Initializes the XV_mix instance. More...
 

Function Documentation

int XV_mix_Initialize ( XV_mix InstancePtr,
u16  DeviceId 
)

Initializes the XV_mix instance.

This function initializes a specific XV_mix device instance using the provided DeviceId. It looks up the device configuration, and if found, initializes the instance with the configuration data. If the configuration is not found, it sets the instance as not ready and returns an error code.

Parameters
InstancePtrPointer to the XV_mix instance to be initialized.
DeviceIdUnique identifier for the device to initialize.
Returns
  • XST_SUCCESS if initialization is successful.
  • XST_DEVICE_NOT_FOUND if the device configuration is not found.

References XV_mix_Config::BaseAddress, XV_mix::IsReady, XV_mix_CfgInitialize(), and XV_mix_LookupConfig().

Referenced by XVMix_Initialize().

XV_mix_Config* XV_mix_LookupConfig ( u16  DeviceId)

Looks up the hardware configuration for a given device ID.

This function searches the configuration table for an entry that matches the specified DeviceId. If a match is found, it returns a pointer to the corresponding XV_mix_Config structure. If no match is found, it returns NULL.

Parameters
DeviceIdThe unique identifier for the device whose configuration is to be found.
Returns
  • Pointer to the XV_mix_Config structure corresponding to the DeviceId, if found.
  • NULL if no matching configuration is found.

Referenced by XV_mix_Initialize().