BFLinux
Functions
CON Register Access

Functions

tCIRC CiRegGetCount (tCIp cip, tCIU32 *nReg)
 Number of 32b registers. More...
 
tCIRC CiRegPeek (tCIp cip, tCIU32 ndx, tCIU32 *result)
 < Read a 32b register. More...
 
tCIRC CiRegPoke (tCIp cip, tCIU32 ndx, tCIU32 value, tCIU32 mask)
 Write a 32b register. More...
 
char * CiRegName (tCIp cip, tCIU32 ndx)
 Return register name. More...
 
tCIU32 CiRegGetFields (tCIp cip, tCIU32 ndx, tCIU32 *ndxAry, tCIU32 *cnt)
 Return register Field indices. More...
 

Detailed Description

Function Documentation

◆ CiRegGetCount()

tCIRC CiRegGetCount ( tCIp  cip,
tCIU32 nReg 
)

Number of 32b registers.

Parameters
cipthis frame grabber
nRegreturns number of CON registers

◆ CiRegGetFields()

tCIU32 CiRegGetFields ( tCIp  cip,
tCIU32  ndx,
tCIU32 ndxAry,
tCIU32 cnt 
)

Return register Field indices.

Query the CON register field indices. These may be used with the CiField* methods to access/modify register sub-fields.

Parameters
cipthis frame grabber
ndxCON register address in the range 0..nReg-1
ndxAry32 tCIU32 array of sub-field indices
cntthe number of sub-field indices

◆ CiRegName()

char* CiRegName ( tCIp  cip,
tCIU32  ndx 
)

Return register name.

Query the CON register name. Do not modify the returned string since it is static store.

Parameters
cipthis frame grabber
ndxCON register address in the range 0..nReg-1

◆ CiRegPeek()

tCIRC CiRegPeek ( tCIp  cip,
tCIU32  ndx,
tCIU32 result 
)

< Read a 32b register.

Parameters
cipthis frame grabber
ndxCON register address in the range 0..nReg-1
resultcontents of register

◆ CiRegPoke()

tCIRC CiRegPoke ( tCIp  cip,
tCIU32  ndx,
tCIU32  value,
tCIU32  mask 
)

Write a 32b register.

Parameters
cipthis frame grabber
ndxCON register address in the range 0..nReg-1
valuenew register value
maskonly modify bits w/'1' in mask