Introduction
The tcDspCameraLink class is used to provide a MityDSP interface to camera imaging hardware utilizing the LVDS Camera Link protocol.
Typically, a specific camera handler class (e.g., a hamamatsu camera) is derived fromthe tcDspCameraLink in order to provide any custom configuration protocol using the Camera Link asynchronous serial interface for setting up the camera framerate, size, etc.
- See also:
- MityDSP::tcDspCameraLink Class Reference
Example
This is a simple example of tcDspCameraLink interfacing to a QVGA monochrome camera:
{
tcDspCameraLink <em>mpCameraLink;
short</em> mpBuffer[240*320];
MBX_Handle mhLinkMbox = MBX_create(sizeof(tcDspCameraLink::tsFrameDataNotify),10,NULL);
tcDspCameraLink::tsFrameDataNotify lsFrameData;
mpCameraLink = new tcCameraLink((void *)0xB0000280);
mpCameraLink->SetImageSize(240,320);
mpCameraLink->SetPack(true);
printf("Capturing 1 frame of data\n");
mpCameraLink->CaptureFrames(mpBuffer,
240*320*sizeof(short),
mhLinkMbox,
1,
1);
int RV = MBX_pend(mhLinkMbox,&lsFrameData,SYS_FOREVER);
if (RV)
{
short* lpFrameData = lsFrameData.mpStart;
}
}