ET System  16.4
 All Data Structures Files Functions Variables Typedefs Macros Groups Pages
et_event.c File Reference
#include <stdio.h>
#include <sys/types.h>
#include <sys/mman.h>
#include <time.h>
#include <sys/time.h>
#include "et_private.h"

Functions

int et_event_new (et_sys_id id, et_att_id att, et_event **pe, int mode, struct timespec *deltatime, size_t size)
 This routine is called when a user wants a blank or fresh event from the ET system into which data can be placed. More...
 
int et_events_new (et_sys_id id, et_att_id att, et_event *pe[], int mode, struct timespec *deltatime, size_t size, int num, int *nread)
 This routine is called when a user wants an array of blank or fresh events from the ET system into which data can be placed. More...
 
int et_event_new_group (et_sys_id id, et_att_id att, et_event **pe, int mode, struct timespec *deltatime, size_t size, int group)
 This routine is called when a user wants a blank or fresh event from the ET system into which it can place data and that event must belong to the given group. More...
 
int et_events_new_group (et_sys_id id, et_att_id att, et_event *pe[], int mode, struct timespec *deltatime, size_t size, int num, int group, int *nread)
 This routine is called when a user wants an array of blank or fresh event from the ET system into which it can place data and those events must belong to the given group. More...
 
int et_event_get (et_sys_id id, et_att_id att, et_event **pe, int mode, struct timespec *deltatime)
 This routine is called when a user wants to read a single event from the ET system. More...
 
int et_events_get (et_sys_id id, et_att_id att, et_event *pe[], int mode, struct timespec *deltatime, int num, int *nread)
 This routine is called when a user wants to read an array of events from the ET system. More...
 
int et_event_put (et_sys_id id, et_att_id att, et_event *pe)
 This routine is called when a user wants to return a single, previously read or new event into the ET system so processes downstream can use it or so it can be returned to ET_GRANDCENTRAL station. More...
 
int et_events_put (et_sys_id id, et_att_id att, et_event *pe[], int num)
 This routine is called when a user wants to return an array of previously read or new events into the ET system so processes downstream can use it or so it can be returned to ET_GRANDCENTRAL station. More...
 
int et_event_dump (et_sys_id id, et_att_id att, et_event *pe)
 This routine is called when a user wants to get rid of a single, previously read or new event so that no user processes downstream will ever see it. More...
 
int et_events_dump (et_sys_id id, et_att_id att, et_event *pe[], int num)
 This routine is called when a user wants to get rid of an array of previously read or new events so that no user processes downstream will ever see them. More...
 
int et_event_getgroup (et_event *pe, int *grp)
 This routine gets the group number that the event is associated with. More...
 
int et_event_setpriority (et_event *pe, int pri)
 This routine sets the priority of an event to either ET_LOW which is the default or ET_HIGH. More...
 
int et_event_getpriority (et_event *pe, int *pri)
 This routine gets the priority of an event, either ET_LOW or ET_HIGH. More...
 
int et_event_setlength (et_event *pe, size_t len)
 This routine sets the length of an event's data in bytes. More...
 
int et_event_getlength (et_event *pe, size_t *len)
 This routine gets the length of an event's data in bytes. More...
 
int et_event_getdata (et_event *pe, void **data)
 This routine gets the pointer to an event's data. More...
 
int et_event_setcontrol (et_event *pe, int con[], int num)
 This routine sets the control array of an event. More...
 
int et_event_getcontrol (et_event *pe, int con[])
 This routine gets the control array of an event. More...
 
int et_event_setdatastatus (et_event *pe, int datastatus)
 This routine sets an event's data status. More...
 
int et_event_getdatastatus (et_event *pe, int *datastatus)
 This routine gets an event's data status. More...
 
int et_event_setendian (et_event *pe, int endian)
 This routine sets an event's data endian value. More...
 
int et_event_getendian (et_event *pe, int *endian)
 This routine gets an event's data endian value. More...
 
int et_event_needtoswap (et_event *pe, int *swap)
 This routine indicates whether an event's data needs to be swapped or not. More...