Hi
I am trying to transfer 16bit RAW video data from a FPGA to DM648 Video Port2. i have created a device named "VP2CAPTURE" in the DSP BIOS. as below
bios.UDEV.create("VP2CAPTURE");
bios.UDEV.instance("VP2CAPTURE").initFxn = prog.extern("VPORT2_init");
bios.UDEV.instance("VP2CAPTURE").fxnTable = prog.extern("VPORTCAP_Fxns");
bios.UDEV.instance("VP2CAPTURE").fxnTableType = "IOM_Fxns";
bios.UDEV.instance("VP2CAPTURE").deviceId = 2;
bios.UDEV.instance("VP2CAPTURE").params = prog.extern("vCapParamsPortRaw");
in the VPORT2_init function i enable the VP2
void VPORT2_init(void)
{
PAL_sysModuleClkCtrl(PAL_SYS_CLK_MODULE_VP2, PAL_SYS_MODULE_CLK_ENABLE); // Power on VPORT2
PAL_sysPinmuxEnable(PAL_SYS_PINMUX_VP2); // Enable pin mux
}
//==================================================================================================
// Capture Video Port - Create(Initialization)
//==================================================================================================
Int CaptureVideoPortCreate(void)
{
int status=0;
// CREATE and CONFIGURE CAPTURE DRIVER
vCapParamsChanRaw.numFrmBufs =0;
vCapParamsChanRaw.segId =EXTERNALHEAP;
vCapParamsChanRaw.hEdma = hEdma;
chCaptureVP.chanHandle = FVID_create ("/VP2CAPTURE/A", // capture driver name
IOM_INPUT, // IOM_INPUT(capture), IDM_OUTPUT(display)
&status, // status
&vCapParamsChanRaw, // channel information
NULL // attrs
);
if(chCaptureVP.chanHandle==NULL) {
printf( "Failed create capture channel!!\n");
}
return 0;
}
where vCapParamsChanRaw is of "VPORTCAP_ParamsRaw" type. with the above code i am getting a NULL handle to the VP2 device always. if i change the vCapParamsChanRaw to VPORT_PortParams type i am getting a valid handle.
am i missing something?
Thanks in advance
Logadeepan