Data Structures | Typedefs | Functions

/scratch/npr78/temp/xspress3_api/det-software/none_vme/xspress3/include/xspress3_fem_api.h File Reference

Data Structures

struct  _FemHandle

Typedefs

typedef struct _FemHandle FemHandle

Functions

void * xspress3FemInitialise (const char *hostIPAdress, int port)
 Initialises client connection to a FEM.
void xspress3FemClose (void *femHandle)
 Closes the xspress3 client connection to a FEM/.
int xspress3FemSetInt (void *femHandle, int chan, int region, int offset, u_int32_t value)
 Perform a single integer write transaction to the FEM.
int xspress3FemGetInt (void *femHandle, int chan, int region, int offset, u_int32_t *value)
int xspress3FemSetIntArray (void *femHandle, int chan, int region, int offset, size_t size, u_int32_t *value)
 Write an array of integers to the FEM.
int xspress3FemGetIntArray (void *femHandle, int chan, int region, int offset, size_t size, u_int32_t *value)
int xspress3FemDRAMWrite (void *femHandle, u_int32_t address, size_t size, u_int32_t *value)
int xspress3FemPersonalityWrite (void *femHandle, u_int32_t sub_command, u_int32_t function_mask, size_t size, u_int32_t *value)
 Perform a write transaction to the FEM.
int xspress3FemConfigUDP (void *femHandle, char *fpgaMACaddress, char *fpgaIPaddress, int fpgaPort, char *hostIPaddress, int hostPort)
int xspress3FemSetHostPort (void *femHandle, int hostPort)
int xspress3FemSetPacketSize (void *femHandle, int sizeInBytes)
int xspress3FemResetFrameCounter (void *femHandle)
int xspress3FemGetDMAStatusBlock (void *femHandle, u_int32_t *value)
int xspress3FemRDMARead (void *femHandle, u_int32_t address, size_t size, u_int32_t *value)
int xspress3FemRDMAWrite (void *femHandle, u_int32_t address, size_t size, u_int32_t *value)
int xspress3FemSPIRead (void *femHandle, u_int32_t address, size_t size, u_int32_t *value)
int xspress3FemSPIWrite (void *femHandle, u_int32_t address, size_t size, u_int32_t *value)
int xspress3FemReadRawReg (void *femHandle, u_int32_t address, size_t size, u_int32_t *value)
int xspress3FemI2CWrite (void *femHandle, u_int32_t fem_i2c_bus, u_int32_t address, size_t size, u_int8_t *value)
int xspress3FemI2CRead (void *femHandle, u_int32_t fem_i2c_bus, u_int32_t address, size_t size, u_int8_t *value)
int xspress3FemWriteFanControl (void *femHandle, int offset, size_t size, u_int32_t *value)
int xspress3FemReadFanControl (void *femHandle, u_int32_t offset, size_t size, u_int32_t *value)
int xspress3FemConfigWrite (void *femHandle, u_int32_t address, size_t size, u_int8_t *value)
int xspress3FemConfigRead (void *femHandle, u_int32_t address, size_t size, u_int8_t *value)
int32_t xspress3FemSetFarmLUT (void *femHandle, int index, char *hostIPaddress, int hostPort)

Typedef Documentation

typedef struct _FemHandle FemHandle

Function Documentation

int xspress3FemConfigRead ( void *  femHandle,
u_int32_t  address,
size_t  size,
u_int8_t *  value 
)
int xspress3FemConfigUDP ( void *  femHandle,
char *  fpgaMACaddress,
char *  fpgaIPaddress,
int  fpgaPort,
char *  hostIPaddress,
int  hostPort 
)
int xspress3FemConfigWrite ( void *  femHandle,
u_int32_t  address,
size_t  size,
u_int8_t *  value 
)
int xspress3FemDRAMWrite ( void *  femHandle,
u_int32_t  address,
size_t  size,
u_int32_t *  value 
)
int xspress3FemGetDMAStatusBlock ( void *  femHandle,
u_int32_t *  value 
)
int xspress3FemGetInt ( void *  femHandle,
int  chan,
int  region,
int  offset,
u_int32_t *  value 
)
int xspress3FemGetIntArray ( void *  femHandle,
int  chan,
int  region,
int  offset,
size_t  size,
u_int32_t *  value 
)
int xspress3FemI2CRead ( void *  femHandle,
u_int32_t  fem_i2c_bus,
u_int32_t  address,
size_t  size,
u_int8_t *  value 
)
int xspress3FemI2CWrite ( void *  femHandle,
u_int32_t  fem_i2c_bus,
u_int32_t  address,
size_t  size,
u_int8_t *  value 
)
int xspress3FemRDMARead ( void *  femHandle,
u_int32_t  address,
size_t  size,
u_int32_t *  value 
)
int xspress3FemRDMAWrite ( void *  femHandle,
u_int32_t  address,
size_t  size,
u_int32_t *  value 
)
int xspress3FemReadFanControl ( void *  femHandle,
u_int32_t  offset,
size_t  size,
u_int32_t *  value 
)
int xspress3FemReadRawReg ( void *  femHandle,
u_int32_t  address,
size_t  size,
u_int32_t *  value 
)
int xspress3FemResetFrameCounter ( void *  femHandle  ) 
int32_t xspress3FemSetFarmLUT ( void *  femHandle,
int  index,
char *  hostIPaddress,
int  hostPort 
)
int xspress3FemSetHostPort ( void *  femHandle,
int  hostPort 
)
int xspress3FemSetPacketSize ( void *  femHandle,
int  sizeInBytes 
)
int xspress3FemSPIRead ( void *  femHandle,
u_int32_t  address,
size_t  size,
u_int32_t *  value 
)
int xspress3FemSPIWrite ( void *  femHandle,
u_int32_t  address,
size_t  size,
u_int32_t *  value 
)
int xspress3FemWriteFanControl ( void *  femHandle,
int  offset,
size_t  size,
u_int32_t *  value 
)