BFLinux
Enumerations | Functions
Camera Link Serial Functions

Enumerations

enum  tBFCLenums { kBFCLoutFIFOhasRoom = 1, kBFCLoutFIFOempty = 1<<1, kBFCLoutputFIFOidle = kBFCLoutFIFOhasRoom | kBFCLoutFIFOempty }
 

Functions

tCIRC CiCLinit (tCIp cip, tCIU32 dataBits, tCIU32 parity, tCIU32 stopBits, tCIU32 baud9600)
 Initialize the frame grabber CL port. More...
 
tCIRC CiCLgetBytesAvail (tCIp cip, tCIU32 *avail)
 Return number of bytes in buffer. More...
 
tCIRC CiCLreadBytes (tCIp cip, tCIU32 buffSize, tCIU32 *bytesRead, tCIU8 *buffer)
 Read bytes from buffer. More...
 
tCIRC CiCLwriteBytesToFIFO (tCIp cip, tCIU32 buffSize, tCIU8 *buffer)
 Write bytes to CL interface. More...
 
tCIRC CiCLwriteBytes (tCIp cip, tCIU32 buffSize, tCIU8 *buffer)
 Write bytes to CL interface. More...
 
tCIRC CiCLgetOutputFIFOstatus (tCIp cip, tCIU32 *status)
 Test status of CL output FIFO. More...
 
tCIRC CiCLinfo (tCIp cip, tCIU32 *dataBits, tCIU32 *parity, tCIU32 *stopBits, tCIU32 *baud)
 Get settings of CL serial port. More...
 
tCIRC CiCLloopback (tCIp cip, tCIU32 nzSet)
 Set/clear CameraLink loopback. More...
 
tCIRC CiCLterm (tCIp cip)
 Close CameraLink access. More...
 

Detailed Description

Enumeration Type Documentation

◆ tBFCLenums

enum tBFCLenums
Enumerator
kBFCLoutFIFOhasRoom 

room for at least one byte

kBFCLoutFIFOempty 

all data is gone

kBFCLoutputFIFOidle 

Function Documentation

◆ CiCLgetBytesAvail()

tCIRC CiCLgetBytesAvail ( tCIp  cip,
tCIU32 avail 
)

Return number of bytes in buffer.

Parameters
cipthis interface
availreturns bytes available

◆ CiCLgetOutputFIFOstatus()

tCIRC CiCLgetOutputFIFOstatus ( tCIp  cip,
tCIU32 status 
)

Test status of CL output FIFO.

These bits can be set in the returned CameraLink output FIFO status

Parameters
cipthis frame grabber
statusgets status

◆ CiCLinfo()

tCIRC CiCLinfo ( tCIp  cip,
tCIU32 dataBits,
tCIU32 parity,
tCIU32 stopBits,
tCIU32 baud 
)

Get settings of CL serial port.

Parameters
cipthis frame grabber
dataBits5, 6, 7, or 8
parity0==even, 1==odd, or 2==none
stopBits1==1, 2==2, or 3==1.5 (only 5b)
baudbaud rate (NOT scaled)

◆ CiCLinit()

tCIRC CiCLinit ( tCIp  cip,
tCIU32  dataBits,
tCIU32  parity,
tCIU32  stopBits,
tCIU32  baud9600 
)

Initialize the frame grabber CL port.

    This call sets the serial parameters and flushes any existing data.

    The supported baud rates are all multiples of 9600 bps.\n
**              baud            baud9600
**              9600            1
**              19200           2
**              38400           4
**              57600           6
**              115200          12
**              230400          24
**              460800          48
**              921600          96
    NOTE:   The serial interface for a framegrabber can only be open and
                    accessed by one process at a time, except that CiCLinfo() will
                    return the settings irrespective of how the board was opened.

    NOTE:   The 460800 and 921600 baud are only available on Axion.
Parameters
cipthis frame grabber
dataBits5, 6, 7, or 8
parity0==none, 1==odd, or 2==even
stopBits1==1, 2==2, or 3==1.5 (only 5b)
baud96001, 2, 4, 6, 12, 24, or 48

◆ CiCLloopback()

tCIRC CiCLloopback ( tCIp  cip,
tCIU32  nzSet 
)

Set/clear CameraLink loopback.

Diagnostic tool only: whatever is written is available to be read.

Parameters
cipthis interface
nzSet0=>clear (default); else set

◆ CiCLreadBytes()

tCIRC CiCLreadBytes ( tCIp  cip,
tCIU32  buffSize,
tCIU32 bytesRead,
tCIU8 buffer 
)

Read bytes from buffer.

Parameters
cipthis interface
buffSizemax number of bytes to read
bytesReadnumber of bytes actually read
bufferdata buffer

◆ CiCLterm()

tCIRC CiCLterm ( tCIp  cip)

Close CameraLink access.

Parameters
cipthis interface

◆ CiCLwriteBytes()

tCIRC CiCLwriteBytes ( tCIp  cip,
tCIU32  buffSize,
tCIU8 buffer 
)

Write bytes to CL interface.

Calls CiCLwriteBytesToFIFO() and then waits for all bytes to exit FIFO.

Parameters
cipthis interface
buffSizenumber of bytes to write
bufferdata buffer

◆ CiCLwriteBytesToFIFO()

tCIRC CiCLwriteBytesToFIFO ( tCIp  cip,
tCIU32  buffSize,
tCIU8 buffer 
)

Write bytes to CL interface.

The serial FIFO may still hold outgoing data when this call returns.

Parameters
cipthis interface
buffSizenumber of bytes to write
bufferdata buffer