DEVICE_DRIVER Struct Reference
[Equipment related]


Detailed Description

Definition at line 986 of file midas.h.

Data Fields

char name [NAME_LENGTH]
INT(* dd )(INT cmd,...)
INT channels
INT(* bd )(INT cmd,...)
DWORD flags
void * dd_info
DD_MT_BUFFERmt_buffer
INT stop_thread
MUTEX_T * mutex
INT semaphore
EQUIPMENT_INFOpequipment


Field Documentation

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

Bus driver entry point

Referenced by device_driver().

INT DEVICE_DRIVER::channels

Number of channels

Definition at line 989 of file midas.h.

Referenced by device_driver(), and sc_thread().

INT(* DEVICE_DRIVER::dd)(INT cmd,...)

Device driver entry point

Referenced by device_driver(), and sc_thread().

void* DEVICE_DRIVER::dd_info

Private info for device driver

Definition at line 992 of file midas.h.

Referenced by device_driver(), and sc_thread().

DWORD DEVICE_DRIVER::flags

Combination of DF_xx

Definition at line 991 of file midas.h.

Referenced by device_driver().

DD_MT_BUFFER* DEVICE_DRIVER::mt_buffer

pointer to multithread buffer

Definition at line 993 of file midas.h.

Referenced by device_driver(), and sc_thread().

MUTEX_T* DEVICE_DRIVER::mutex

mutex for buffer

Definition at line 995 of file midas.h.

char DEVICE_DRIVER::name[NAME_LENGTH]

Driver name

Definition at line 987 of file midas.h.

Referenced by device_driver().

EQUIPMENT_INFO* DEVICE_DRIVER::pequipment

pointer to equipment

Definition at line 997 of file midas.h.

Referenced by sc_thread().

INT DEVICE_DRIVER::semaphore

semaphore for device access

Definition at line 996 of file midas.h.

Referenced by device_driver(), and sc_thread().

INT DEVICE_DRIVER::stop_thread

flag used to stop the thread

Definition at line 994 of file midas.h.

Referenced by device_driver(), and sc_thread().


Midas DOC Version 3.0.0 ---- PSI Stefan Ritt ----
Contributions: Pierre-Andre Amaudruz - Sergio Ballestrero - Suzannah Daviel - Doxygen - Peter Green - Qing Gu - Greg Hackman - Gertjan Hofman - Paul Knowles - Exaos Lee - Rudi Meier - Glenn Moloney - Dave Morris - John M O'Donnell - Konstantin Olchanski - Renee Poutissou - Tamsen Schurman - Andreas Suter - Jan M.Wouters - Piotr Adam Zolnierczuk