BFLinux
Functions
CON Register Field Access

Functions

int CiFieldNdxFromStr (tCIp cip, char *str)
 Return enumerate from string. More...
 
int CiFieldWidth (tCIp cip, int fieldNdx)
 Return field width. More...
 
char * CiFieldNameFromNdx (tCIp cip, int ndx)
 Return label for enumerate. More...
 
tCIRC CiFieldPeek (tCIp cip, tCIU32 ndx, tCIU32 *result)
 Read a CON register field. More...
 
tCIRC CiFieldPoke (tCIp cip, tCIU32 ndx, tCIU32 value)
 Write a CON register field. More...
 

Detailed Description

Function Documentation

◆ CiFieldNameFromNdx()

char* CiFieldNameFromNdx ( tCIp  cip,
int  ndx 
)

Return label for enumerate.

A way to map an enumerate to a label. Do not modify the returned string since it is static store.

Parameters
cipthis frame grabber
ndxindex of the field

◆ CiFieldNdxFromStr()

int CiFieldNdxFromStr ( tCIp  cip,
char *  str 
)

Return enumerate from string.

A way to map a label to a register field enumerate. Pass, e.g., "HCOUNT" to get the field enumerate associated with the HCOUNT field in CON6.

Parameters
cipthis frame grabber
strname of the field enumerate

◆ CiFieldPeek()

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

Read a CON register field.

Parameters
cipthis frame grabber
ndxindex of the field to peek
resultcontents of register field

◆ CiFieldPoke()

tCIRC CiFieldPoke ( tCIp  cip,
tCIU32  ndx,
tCIU32  value 
)

Write a CON register field.

Parameters
cipthis frame grabber
ndxindex of the field to poke
valuenew field value

◆ CiFieldWidth()

int CiFieldWidth ( tCIp  cip,
int  fieldNdx 
)

Return field width.

Return the width of this field enumerate.

Parameters
cipthis frame grabber
fieldNdxindex of the field