Low-Energy Muon (LEM) Experiment  0.5.1
DANFYSIK_INFO Struct Reference
Collaboration diagram for DANFYSIK_INFO:

Data Fields

DANFYSIK_SETTINGS danfysik_settings
 stores the internal DD settings More...
 
INT num_channels
 number of channels for this device More...
 
INT(* bd )(INT cmd,...)
 bus driver entry function More...
 
void * bd_info
 private info of bus driver More...
 
int bd_connected
 flag showing if bus driver is connected More...
 
int first_bd_error
 flag showing if the bus driver error message is already given More...
 
HNDLE hDB
 main handle to the ODB More...
 
HNDLE hkey
 ODB key for device driver info. More...
 
INT danfysik_remote
 1=remote, 0=local More...
 
INT danfysik_status
 keeps the old danfysik status More...
 
INT errcount
 error counter in order not to flood the message queue More...
 
INT startup_error
 initializer error tag, if set, danfysik_get and danfysik_set won't do anything More...
 
INT empty_readback_error
 counts the number of empty readbacks More...
 
INT readback_failure
 counts the number of readback failures More...
 
DWORD lasterrtime
 last error time stamp More...
 
float last_valid_value [DANFYSIK_IN_CH]
 stores the last valid value More...
 
DWORD last_reconnect
 timer for bus driver reconnect error handling More...
 
int reconnection_failures
 how often reconnection failed More...
 
float soft_current_limit
 keeps the soft current limit, i.e. the current set value needs to be < than the soft current limit More...
 
DWORD time_to_read
 timer which allows to slow down the reading a bit (get routine) More...
 

Detailed Description

This structure contains private variables for the device driver.

Definition at line 107 of file danfysik.c.

Field Documentation

INT(* DANFYSIK_INFO::bd)(INT cmd,...)

bus driver entry function

Definition at line 110 of file danfysik.c.

Referenced by danfysik_exit(), danfysik_get(), and danfysik_in_init().

int DANFYSIK_INFO::bd_connected

flag showing if bus driver is connected

Definition at line 112 of file danfysik.c.

Referenced by danfysik_get(), danfysik_in_init(), and danfysik_set().

void* DANFYSIK_INFO::bd_info

private info of bus driver

Definition at line 111 of file danfysik.c.

Referenced by danfysik_exit(), danfysik_get(), and danfysik_in_init().

INT DANFYSIK_INFO::danfysik_remote

1=remote, 0=local

Definition at line 116 of file danfysik.c.

Referenced by danfysik_get(), danfysik_in_init(), and danfysik_set().

DANFYSIK_SETTINGS DANFYSIK_INFO::danfysik_settings

stores the internal DD settings

Definition at line 108 of file danfysik.c.

Referenced by danfysik_error_read(), danfysik_get(), danfysik_in_get_label(), danfysik_in_init(), danfysik_out_get_label(), and danfysik_set().

INT DANFYSIK_INFO::danfysik_status

keeps the old danfysik status

Definition at line 117 of file danfysik.c.

Referenced by danfysik_decode_status(), and danfysik_in_init().

INT DANFYSIK_INFO::empty_readback_error

counts the number of empty readbacks

Definition at line 120 of file danfysik.c.

Referenced by danfysik_decode_status(), danfysik_error_read(), danfysik_get(), and danfysik_in_init().

INT DANFYSIK_INFO::errcount

error counter in order not to flood the message queue

Definition at line 118 of file danfysik.c.

Referenced by danfysik_error_read(), danfysik_get(), and danfysik_in_init().

int DANFYSIK_INFO::first_bd_error

flag showing if the bus driver error message is already given

Definition at line 113 of file danfysik.c.

Referenced by danfysik_get(), danfysik_in_init(), and danfysik_set().

HNDLE DANFYSIK_INFO::hDB

main handle to the ODB

Definition at line 114 of file danfysik.c.

Referenced by danfysik_get(), and danfysik_in_init().

HNDLE DANFYSIK_INFO::hkey

ODB key for device driver info.

Definition at line 115 of file danfysik.c.

Referenced by danfysik_get(), and danfysik_in_init().

DWORD DANFYSIK_INFO::last_reconnect

timer for bus driver reconnect error handling

Definition at line 124 of file danfysik.c.

Referenced by danfysik_get(), and danfysik_in_init().

float DANFYSIK_INFO::last_valid_value[DANFYSIK_IN_CH]

stores the last valid value

Definition at line 123 of file danfysik.c.

Referenced by danfysik_get().

DWORD DANFYSIK_INFO::lasterrtime

last error time stamp

Definition at line 122 of file danfysik.c.

Referenced by danfysik_get(), and danfysik_in_init().

INT DANFYSIK_INFO::num_channels

number of channels for this device

Definition at line 109 of file danfysik.c.

Referenced by danfysik_in_init().

INT DANFYSIK_INFO::readback_failure

counts the number of readback failures

Definition at line 121 of file danfysik.c.

Referenced by danfysik_get(), and danfysik_in_init().

int DANFYSIK_INFO::reconnection_failures

how often reconnection failed

Definition at line 125 of file danfysik.c.

Referenced by danfysik_get(), and danfysik_in_init().

float DANFYSIK_INFO::soft_current_limit

keeps the soft current limit, i.e. the current set value needs to be < than the soft current limit

Definition at line 126 of file danfysik.c.

Referenced by danfysik_get(), danfysik_in_init(), and danfysik_set().

INT DANFYSIK_INFO::startup_error

initializer error tag, if set, danfysik_get and danfysik_set won't do anything

Definition at line 119 of file danfysik.c.

Referenced by danfysik_get(), danfysik_in_init(), and danfysik_set().

DWORD DANFYSIK_INFO::time_to_read

timer which allows to slow down the reading a bit (get routine)

Definition at line 127 of file danfysik.c.

Referenced by danfysik_get(), and danfysik_in_init().


The documentation for this struct was generated from the following file: