AlcapDAQ
1
|
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <sys/io.h>
#include <sys/time.h>
#include "midas.h"
#include "crate.h"
#include "diag.h"
#include "odb_wrapper.h"
#include "rpc_mucap.h"
Go to the source code of this file.
Functions | |
INT | rpc_end_of_cycle (INT index, void *prpc_param[]) |
INT | rpc_slave_init () |
INT | rpc_slave_bor () |
INT | rpc_slave_eor () |
INT | rpc_slave_poll_live () |
INT | rpc_slave_poll_dead () |
INT | rpc_slave_stop_block () |
INT | rpc_slave_read (char *pevent) |
INT | send_ready_for_cycle () |
Variables | |
static HNDLE | rpc_conn_master_crate |
static BOOL | enable_rpc_slave |
static BOOL | event_ended = FALSE |
static INT | last_cycle = 0 |
static INT | last_event_number = 0 |
static INT | sent_stop_request = -1 |
struct readout_module | rpc_slave_module |
INT rpc_end_of_cycle | ( | INT | index, |
void * | prpc_param[] | ||
) |
Definition at line 49 of file rpc_slave.cpp.
References diag_print(), equipment, event_ended, event_number, last_cycle, last_event_number, and SUCCESS.
Referenced by rpc_slave_init().
INT rpc_slave_bor | ( | ) |
Definition at line 92 of file rpc_slave.cpp.
References crate_number, diag_print(), enable_rpc_slave, event_ended, FALSE, i, last_cycle, last_event_number, MAX_CRATES, odb_find_key(), odb_get_bool(), rpc_conn_master_crate, send_ready_for_cycle(), sent_stop_request, sprintf(), SUCCESS, and TRUE.
INT rpc_slave_eor | ( | ) |
Definition at line 139 of file rpc_slave.cpp.
References enable_rpc_slave, rpc_conn_master_crate, and SUCCESS.
INT rpc_slave_init | ( | ) |
Definition at line 82 of file rpc_slave.cpp.
References RPC_END_OF_CYCLE, rpc_end_of_cycle(), rpc_list_mucap, and SUCCESS.
INT rpc_slave_poll_dead | ( | ) |
Definition at line 168 of file rpc_slave.cpp.
References enable_rpc_slave, FE_NEED_START, and SUCCESS.
INT rpc_slave_poll_live | ( | ) |
Definition at line 148 of file rpc_slave.cpp.
References diag_print(), enable_rpc_slave, event_ended, FALSE, FE_END_BLOCK, and SUCCESS.
INT rpc_slave_read | ( | char * | pevent) |
Definition at line 197 of file rpc_slave.cpp.
References enable_rpc_slave, last_event_number, send_ready_for_cycle(), and SUCCESS.
INT rpc_slave_stop_block | ( | ) |
Definition at line 178 of file rpc_slave.cpp.
References crate_number, enable_rpc_slave, event_number, last_event_number, rpc_conn_master_crate, RPC_REQUEST_STOP, sent_stop_request, and SUCCESS.
INT send_ready_for_cycle | ( | ) |
Definition at line 214 of file rpc_slave.cpp.
References crate_number, diag_print(), rpc_conn_master_crate, RPC_READY_FOR_CYCLE, and SUCCESS.
Referenced by rpc_slave_bor(), and rpc_slave_read().
|
static |
Definition at line 28 of file rpc_slave_x.cpp.
|
static |
Definition at line 30 of file rpc_slave_x.cpp.
|
static |
Definition at line 31 of file rpc_slave_x.cpp.
|
static |
Definition at line 32 of file rpc_slave_x.cpp.
|
static |
Definition at line 27 of file rpc_slave_x.cpp.
struct readout_module rpc_slave_module |
Definition at line 35 of file rpc_slave_x.cpp.
|
static |
Definition at line 33 of file rpc_slave_x.cpp.