Data Structures | Defines | Typedefs | Functions | Variables

/scratch/npr78/temp/xspress3_api/det-software/none_vme/xspress3/lib/xspress3_udp.c File Reference

Data Structures

struct  xsp3_read_scope_struct

Defines

#define _GNU_SOURCE
#define USE_CREATE_TIMER   1
#define UDP_DATAGRAM_SIZE   9000

Typedefs

typedef struct
xsp3_read_scope_struct 
Xsp3ReadScopeArgs

Functions

int xsp3_udp_init (UDPconnection *udpsock, char *hostIPaddress, int hostPort, char *femIPaddress, int femPort)
 Initialise the UDP connection.
void * xsp3_read_scope_data_card (Xsp3ReadScopeArgs *args)
 Read scope data from 10G ethernet using UDP protocol.
void xsp3_udp_alarm_handler (int i)
int xsp3_set_udp_port (int path, int card, int hostPort)
 Set the UDP port number.
int xsp3_config_udp (int path, int card, char *femMACaddress, char *femIPaddress, int femPort, char *hostIPaddress, int hostPort)
 Configure all the parameters for a UDP connection to the xspress3 card.
int xsp3_create_data_module (int path, char *modname, int layout)
 Create the scope mode data module.
XSP3ScopeModulexsp3_scope_get_module (int path)
 Get a pointer to the scope data module.
int xsp3_set_udp_packet_size (int path, int card, int size_bytes)
 Set the UDP packet size in bytes.
int xsp3_udp_close (int path, int card)
 Shutdown the UDP connection between the xspress3 card and the host server.
int xsp3_read_scope_data (int path, int card)
 Read scope data from 10G ethernet using UDP protocol.
int xsp3_read_scope_data_int (int path, int card, int swap)
 Read scope data from 10G ethernet using UDP protocol.
int xsp3_read_data_10g (int path, int card, int stream, int offset_bytes, int size_bytes, unsigned char *buff)
 Read data from the 10G ethernet using UDP protocol.
int xsp3_read_data_10g_receive (int path, int card, XSP3_DMA_StatusBlock *statusBlock, unsigned char *buff_base, u_int32_t first_frame, u_int32_t num_frames, u_int32_t *frame_flags)
 Data receiver for 10G UDP ethernet including resent frames.
int xsp3_reset_10g_frame_counter (int path, int card)
 Reset the 10G frame counter to zero.

Variables

XSP3Path Xsp3Sys []
char error_message []

Define Documentation

#define _GNU_SOURCE
#define UDP_DATAGRAM_SIZE   9000
#define USE_CREATE_TIMER   1

Typedef Documentation


Function Documentation

void xsp3_udp_alarm_handler ( int  i  ) 

Variable Documentation

char error_message[]