#include "jorwaycamaccrate.hh"

CRT::CrtJorwayCamacCrate


class description - source file - inheritance tree (.ps)

class CRT::CrtJorwayCamacCrate : public CRT::CrtCamacCrate

Inheritance Chart:
TObject
<-
TNamed
<-
CRT::CrtCrate
<-
CRT::CrtCamacCrate
<-
CRT::CrtJorwayCamacCrate

    public:
CRT::CrtJorwayCamacCrate CrtJorwayCamacCrate() CRT::CrtJorwayCamacCrate CrtJorwayCamacCrate(const Char_t* inName, Int_t inSCSIBus, Int_t inSCSIID, Int_t inCrateNumber) CRT::CrtJorwayCamacCrate CrtJorwayCamacCrate(const CRT::CrtJorwayCamacCrate&) void ~CrtJorwayCamacCrate() virtual Int_t BlockRead(Int_t inIdent, Int_t inFunction, Int_t inCount, Int_t* outValue) const virtual Int_t BlockSend(Int_t inIdent, Int_t inFunction, Int_t inCount, Int_t* inValue) const static TClass* Class() virtual void ClearInhibit() const virtual Int_t GetIdentity(Int_t inBoardNumber, Int_t inSubAdress) const virtual void Initialize() virtual TClass* IsA() const virtual Int_t Read(Int_t inIdent, Int_t inFunction, Int_t* outValue) const virtual Int_t Send(Int_t inIdent, Int_t inFunction, Int_t inValue) const virtual void SetInhibit() const virtual void ShowMembers(TMemberInspector& insp, char* parent) virtual void Streamer(TBuffer& b) void StreamerNVirtual(TBuffer& b) virtual Int_t Test(Int_t inIdent, Int_t inFunction) const

Data Members

    private:
Int_t fOk equals 1 if initialization succeeded Int_t fBranch 8* SCSI Bus + SCSI ID Int_t fCrateNumber crate number, should be one

Class Description

 Cosmic Ray Telescope Data Aquisition Software

 Generic driver for a CAMAC crate.
 Connection from a PC to the crate is done by the SCSI to CAMAC interface
 Jorway 73A.



CrtJorwayCamacCrate() : CrtCamacCrate()
 default constructor

CrtJorwayCamacCrate(const Char_t *inName, Int_t inSCSIBus, Int_t inSCSIID, Int_t inCrateNumber) : CrtCamacCrate(inName)
 constructor
 inSCSIBus: SCSI bus number (of controler)
 inSCSIID: SCSI ID (of Jorway 73A interface)
 these two numbers can be found by: cat /proc/scsi/scsi
 Example:
   Host: scsi1 Channel: 00 Id: 02 Lun: 00
     Vendor: JORWAY   Model: 73A              Rev: 207
     Type:   Processor                        ANSI SCSI revision: 02
 inSCSIBus is the number in the Host line after the scsi keyword (here: 1)
 inSCSIID  is the number in the Host line after the Id: keyword (here: 2)

 inCrateNumber: should always be 1 for the Jorway 73A adapter

~CrtJorwayCamacCrate()
 destructor

Int_t GetIdentity(Int_t inBoardNumber, Int_t inSubAdress) const
 calculates identity number for a crate/board/subadress number

void Initialize()
 opens the SCSI connection and initializes the camac crate

Int_t Send(Int_t inIdent, Int_t inFunction, Int_t inValue) const
 executes a function on a specific card in the crate. It passed the
 inValue to this function
 return code is the Q response

Int_t Read(Int_t inIdent, Int_t inFunction, Int_t *outValue) const
 executes a function on a specific card in the crate. It passed the
 function return value to outValue
 return code is the Q response

Int_t Test(Int_t inIdent, Int_t inFunction) const
 executes a function on a specific card in the crate.
 return code is the Q response

Int_t BlockSend(Int_t inIdent, Int_t inFunction, Int_t inCount, Int_t *inValue) const
 same as send, but repeats the same function with increasing sub-addresses
 as long as the Q response is 1 or increments the slot if the Q response is
 0. inCount defines the number of executions.
 The return value will be the number of executions.
 Please note: The inValue array has to have a length of at least the number
 of channels

Int_t BlockRead(Int_t inIdent, Int_t inFunction, Int_t inCount, Int_t *outValue) const
 same as read, but repeats the same function with increasing sub-addresses
 as long as the Q response is 1 or increments the slot if the Q response is
 0. inCount defines the number of executions.
 The return value will be the number of executions.
 Please note: The outValue array has to have a length of at least the number
 of channels

void SetInhibit() const
 sets crate inhibit

void ClearInhibit() const
 clears crate inhibit



Inline Functions


                         TClass* Class()
                         TClass* IsA() const
                            void ShowMembers(TMemberInspector& insp, char* parent)
                            void Streamer(TBuffer& b)
                            void StreamerNVirtual(TBuffer& b)
        CRT::CrtJorwayCamacCrate CrtJorwayCamacCrate(const CRT::CrtJorwayCamacCrate&)


Author: Thomas Hadig (Group EB SLAC Stanford CA USA)
Last update: $Date: 2003/08/22 22:43:02 $
Copyright Thomas Hadig, hadig@slac.stanford.edu


ROOT page - Class index - Class Hierarchy - Top of the page

This page has been automatically generated. If you have any comments or suggestions about the page layout send a mail to ROOT support, or contact the developers with any questions or problems regarding ROOT.