Low-Energy Muon (LEM) Experiment  0.5.2
mirror.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define MIRROR_MAX_TRY   10
 maximal no of attempts to read More...
 
#define MIRROR_DELTA_TIME_ERROR   3600
 reset error counter after DELTA_TIME_ERROR seconds More...
 
#define MIRROR_WAIT   500
 time (ms) to wait between commands More...
 
#define MIRROR_MAX_STR   128
 maximum string length for rs232 communication More...
 
#define MIRROR_DEBUG   FALSE
 debug tag, if set to TRUE, additional messages will be displayed at execution time More...
 

Functions

INT mirror (INT cmd,...)
 

Macro Definition Documentation

#define MIRROR_DEBUG   FALSE

debug tag, if set to TRUE, additional messages will be displayed at execution time

Definition at line 23 of file mirror.h.

Referenced by mirror_get(), mirror_get_current_position(), mirror_init(), mirror_position_reached(), and reset_mirror_position().

#define MIRROR_DELTA_TIME_ERROR   3600

reset error counter after DELTA_TIME_ERROR seconds

Definition at line 14 of file mirror.h.

Referenced by mirror_get().

#define MIRROR_MAX_STR   128

maximum string length for rs232 communication

Definition at line 20 of file mirror.h.

Referenced by mirror_get(), mirror_get_current_position(), mirror_move_to_position(), mirror_position_reached(), mirror_set(), and reset_mirror_position().

#define MIRROR_MAX_TRY   10

maximal no of attempts to read

Definition at line 11 of file mirror.h.

Referenced by mirror_get(), mirror_get_current_position(), mirror_init(), mirror_position_reached(), and reset_mirror_position().

#define MIRROR_WAIT   500

time (ms) to wait between commands

Definition at line 17 of file mirror.h.

Referenced by mirror_get_current_position(), and mirror_move_to_position().

Function Documentation

INT mirror ( INT  cmd,
  ... 
)

mirror device driver (DD). It is handling the communication between the mirror and midas. The mirror is used to deflect the low energy muons in the $\mathrm{LE-\mu SR}$ beamline. The device driver can remotly rotated the mirror.

Definition at line 635 of file mirror.c.

References hKey, info, mirror_exit(), mirror_get(), mirror_get_label(), mirror_init(), and mirror_set().