Low-Energy Muon (LEM) Experiment
0.5.1
|
#include <stddef.h>
#include <stdio.h>
#include <time.h>
#include <stdlib.h>
#include <string.h>
#include <epicsStdlib.h>
#include "cadef.h"
#include "dbDefs.h"
#include "epicsTime.h"
#include "midas.h"
#include "msystem.h"
#include "lem_epics.h"
Go to the source code of this file.
Data Structures | |
struct | CA_SETTINGS |
struct | CA_NODE |
struct | CA_INFO |
Macros | |
#define | CHN_NAME_LENGTH 32 /* length of channel names */ |
#define | CAGET_TIMEOUT 4.0 |
#define | MIN_TIMEOUT_COUNT 50 /* output frequency of timeout messages */ |
Functions | |
void | ca_exception_handler (struct exception_handler_args args) |
INT | psi_epics_init (HNDLE hKey, void **pinfo, INT channels) |
INT | psi_epics_exit (CA_INFO *info) |
INT | psi_epics_set (CA_INFO *info, INT channel, float value) |
INT | psi_epics_get (CA_INFO *info, INT channel, float *pvalue) |
INT | psi_epics_get_demand (CA_INFO *info, INT channel, float *pvalue) |
INT | lem_epics (INT cmd,...) |
Variables | |
static int | timeout_count = 0 |
struct ca_client_context * | ca_context |
#define CAGET_TIMEOUT 4.0 |
Definition at line 38 of file lem_epics.c.
Referenced by psi_epics_get(), and psi_epics_get_demand().
#define CHN_NAME_LENGTH 32 /* length of channel names */ |
Definition at line 36 of file lem_epics.c.
Referenced by lem_epics(), and psi_epics_init().
#define MIN_TIMEOUT_COUNT 50 /* output frequency of timeout messages */ |
Definition at line 40 of file lem_epics.c.
Referenced by psi_epics_get(), psi_epics_get_demand(), and psi_epics_init().
void ca_exception_handler | ( | struct exception_handler_args | args | ) |
Definition at line 78 of file lem_epics.c.
Referenced by psi_epics_init().
INT lem_epics | ( | INT | cmd, |
... | |||
) |
Definition at line 407 of file lem_epics.c.
References ca_context, CA_INFO::channel_name, CHN_NAME_LENGTH, CA_INFO::flags, hKey, info, psi_epics_exit(), psi_epics_get(), psi_epics_get_demand(), psi_epics_init(), and psi_epics_set().
INT psi_epics_exit | ( | CA_INFO * | info | ) |
Definition at line 243 of file lem_epics.c.
References CA_NODE::chan_id, CA_INFO::channel_name, CA_INFO::demand, CA_INFO::demand_string, CA_INFO::device_type, CA_INFO::extra, CA_INFO::measured, CA_INFO::measured_string, and CA_INFO::num_channels.
Referenced by lem_epics().
INT psi_epics_get | ( | CA_INFO * | info, |
INT | channel, | ||
float * | pvalue | ||
) |
Definition at line 315 of file lem_epics.c.
References CAGET_TIMEOUT, CA_NODE::chan_id, CA_INFO::device_type, DT_BEAMBLOCKER, DT_PSA, CA_INFO::measured, MIN_TIMEOUT_COUNT, CA_NODE::name, and timeout_count.
Referenced by lem_epics().
INT psi_epics_get_demand | ( | CA_INFO * | info, |
INT | channel, | ||
float * | pvalue | ||
) |
Definition at line 367 of file lem_epics.c.
References CAGET_TIMEOUT, CA_NODE::chan_id, CA_INFO::demand, CA_INFO::device_type, DT_BEAMBLOCKER, CA_INFO::measured, MIN_TIMEOUT_COUNT, CA_NODE::name, and timeout_count.
Referenced by lem_epics().
INT psi_epics_init | ( | HNDLE | hKey, |
void ** | pinfo, | ||
INT | channels | ||
) |
Definition at line 101 of file lem_epics.c.
References ca_context, ca_exception_handler(), CA_INFO::ca_settings, CA_NODE::chan_id, CA_INFO::channel_name, CHN_NAME_LENGTH, CA_INFO::demand, CA_INFO::demand_string, CA_INFO::device_type, DT_DEVICE, DT_SEPARATOR, CA_SETTINGS::epics_gateway, CA_INFO::extra, CA_SETTINGS::gateway_port, hDB, info, CA_INFO::measured, CA_INFO::measured_string, MIN_TIMEOUT_COUNT, CA_NODE::name, CA_INFO::num_channels, and timeout_count.
Referenced by lem_epics().
INT psi_epics_set | ( | CA_INFO * | info, |
INT | channel, | ||
float | value | ||
) |
Definition at line 287 of file lem_epics.c.
References CA_NODE::chan_id, CA_INFO::demand, CA_INFO::device_type, DT_BEAMBLOCKER, DT_SEPARATOR, CA_INFO::extra, and CA_NODE::name.
Referenced by lem_epics().
struct ca_client_context* ca_context |
Definition at line 69 of file lem_epics.c.
Referenced by lem_epics(), and psi_epics_init().
|
static |
Definition at line 42 of file lem_epics.c.
Referenced by psi_epics_get(), psi_epics_get_demand(), and psi_epics_init().