pit_def.cpp File Reference

#include <sys/time.h>
#include <iostream>
#include <fstream>
#include <sstream>
#include "pit_def.h"

Go to the source code of this file.

Functions

UInt32 extractFromUInt32 (int offset, int bits, UInt32 input)
 global function to extract a certain number of bits from a 32 bit number used by the driver classes to do the bitwise operations
UInt32 insertIntoUInt32 (int offset, int bits, UInt32 data, UInt32 input)
 global function to replace a certain number of bits of a 32 bit number
void sleepMilli (long ms)
 function to sleep milli seconds
void sleepNano (long ns)
 gunction to sleep nano seconds
vector< string > strsplit (const string &inputstr, char separator)


Function Documentation

UInt32 extractFromUInt32 ( int  offset,
int  bits,
UInt32  input 
)

global function to extract a certain number of bits from a 32 bit number used by the driver classes to do the bitwise operations

Parameters:
offset is the offset of the bits that we want to extract

Definition at line 15 of file pit_def.cpp.

Referenced by pit_driver_opticalLink::decodeLinkSetting(), pit_driver_opticalLink::decodeLinkStatus(), pit_comm::PITReadBlock(), pit_driver_procFpga::readTriggerMode(), and pit_driver_foChannel::refresh().

UInt32 insertIntoUInt32 ( int  offset,
int  bits,
UInt32  data,
UInt32  input 
)

global function to replace a certain number of bits of a 32 bit number

Parameters:
offset determines where to insert
bits the number of bits
data the value to inser
input the 32 bit register where to insert returns the input with the data inserted

Definition at line 32 of file pit_def.cpp.

Referenced by pit_driver_foChannel::forceHigh(), pit_driver_foChannel::setMask(), pit_driver_opticalLink::writeEnUdFastors(), pit_driver_opticalLink::writeFoMask(), pit_driver_opticalLink::writeLinkDelay(), pit_driver_opticalLink::writeSelfMaskingEnable(), pit_driver_procFpga::writeTriggerMode(), and pit_driver_opticalLink::writeUdfFoPattern().

void sleepMilli ( long  ms  ) 

function to sleep milli seconds

Definition at line 62 of file pit_def.cpp.

Referenced by main().

void sleepNano ( long  ns  ) 

gunction to sleep nano seconds

Definition at line 69 of file pit_def.cpp.

vector<string> strsplit ( const string &  inputstr,
char  separator 
)

Definition at line 75 of file pit_def.cpp.


Generated on Sat Mar 29 22:55:55 2008 for pixelTrigger by  doxygen 1.5.0