#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) |
global function to extract a certain number of bits from a 32 bit number used by the driver classes to do the bitwise operations
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().
global function to replace a certain number of bits of a 32 bit number
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 | ) |
void sleepNano | ( | long | ns | ) |
vector<string> strsplit | ( | const string & | inputstr, | |
char | separator | |||
) |
Definition at line 75 of file pit_def.cpp.