Cat
|
#include <inc/IOdata.h>
Public Types | |
enum | Mode { Rd, Wr, RdWr } |
enum | WordSize { Byte, Word, DWord } |
enum | Bus { USB, SPECS, I2C, PARALLEL, JTAG } |
typedef unsigned long | U32 |
typedef unsigned short | U16 |
typedef unsigned char | U8 |
![]() | |
enum | Attribut { UNDEFINED, PASSIVE, ACTIVE, INTERFACE, IO, IODATA, ELEMENT, HARDWARE, PROCESSUS, SOFTWARE } |
Public Member Functions | |
IOdata () | |
Standard constructor. More... | |
virtual | ~IOdata () |
Destructor. More... | |
StatusCode | setAddress (U32 address) |
U32 | address () |
StatusCode | setHeader (U32 header) |
U32 | header () |
StatusCode | setSubAddress (U32 subAddress) |
U32 | subAddress () |
StatusCode | setOutputSelect (U32 outputSelect) |
U32 | outputSelect () |
StatusCode | setMode (IOdata::Mode mode) |
IOdata::Mode | mode () |
StatusCode | setWordSize (IOdata::WordSize wordSize) |
IOdata::WordSize | wordSize () |
StatusCode | setBus (IOdata::Bus bus) |
IOdata::Bus | bus () |
StatusCode | setLength (U32 length) |
U32 | block () |
StatusCode | setBlock (U32 block) |
U32 | length () |
void | defDataU8 (unsigned long size) |
void | defDataU16 (unsigned long size) |
void | defDataU32 (unsigned long size) |
void | clearDataU8 () |
void | clearDataU16 () |
void | clearDataU32 () |
U8 * | dataU8 () |
U16 * | dataU16 () |
U32 * | dataU32 () |
unsigned long int | dataU8 (unsigned long int i) |
unsigned long int | dataU16 (unsigned long int i) |
unsigned long int | dataU32 (unsigned long int i) |
void | setDataU8 (U8 *data, U32 length) |
void | setDataU16 (U16 *data, U32 length) |
void | setDataU32 (U32 *data, U32 length) |
StatusCode | setU8 (unsigned long int, U8) |
StatusCode | setU16 (unsigned long int, U16) |
StatusCode | setU32 (unsigned long int, U32) |
void | dump (unsigned int printout=0) |
![]() | |
Object () | |
Standard constructor. More... | |
virtual | ~Object () |
Destructor. More... | |
std::string | name () const |
std::string | type () |
unsigned char | id () |
std::string | title () |
void | msgSvc (int level, std::string msg, std::string name) |
void | msg (std::string mymsg) |
void | verbose (std::string mymsg) |
void | debug (std::string mymsg) |
void | info (std::string mymsg) |
void | warning (std::string mymsg) |
void | error (std::string mymsg) |
void | fatal (std::string mymsg) |
void | msg (std::string mymsg, std::string name) |
void | verbose (std::string mymsg, std::string name) |
void | debug (std::string mymsg, std::string name) |
void | info (std::string mymsg, std::string name) |
void | warning (std::string mymsg, std::string name) |
void | error (std::string mymsg, std::string name) |
void | fatal (std::string mymsg, std::string name) |
void | setName (std::string name) |
void | setType (std::string type) |
void | setId (unsigned char id) |
void | setTitle (std::string title) |
void | setDllName (std::string dllName) |
std::string | dllName () |
![]() | |
Attrib () | |
Standard constructor. More... | |
virtual | ~Attrib () |
Destructor. More... | |
bool | is (int attribut) |
void | add (int attribut) |
void | remove (int attribut) |
std::string | attributs () |
Private Attributes | |
unsigned long | m_address |
unsigned long | m_header |
unsigned long | m_subAddress |
unsigned long | m_outputSelect |
IOdata::Mode | m_mode |
IOdata::WordSize | m_wordSize |
IOdata::Bus | m_bus |
unsigned long | m_length |
unsigned long | m_block |
U8 * | m_dataU8 |
U16 * | m_dataU16 |
U32 * | m_dataU32 |
Additional Inherited Members | |
![]() | |
std::string | m_attribString [10] |
typedef unsigned short IOdata::U16 |
typedef unsigned long IOdata::U32 |
typedef unsigned char IOdata::U8 |
enum IOdata::Bus |
Enumerator | |
---|---|
USB | |
SPECS | |
I2C | |
PARALLEL | |
JTAG |
Definition at line 35 of file IOdata.h.
enum IOdata::Mode |
Enumerator | |
---|---|
Rd | |
Wr | |
RdWr |
enum IOdata::WordSize |
Enumerator | |
---|---|
Byte | |
Word | |
DWord |
IOdata::IOdata | ( | ) |
Standard constructor.
Definition at line 17 of file IOdata.cpp.
References Attrib::add(), Byte, Attrib::IODATA, m_address, m_block, m_dataU16, m_dataU32, m_dataU8, m_header, m_length, m_subAddress, m_wordSize, Object::setName(), and Object::setType().
|
virtual |
Destructor.
Definition at line 34 of file IOdata.cpp.
References clearDataU16(), clearDataU32(), and clearDataU8().
|
inline |
Get IOdata address
Definition at line 59 of file IOdata.h.
References m_address.
Referenced by IOobject::address(), BOOST_PYTHON_MODULE(), UsbI2cBus::read(), UsbSpiBus::read(), UsbFTInterface::read(), UsbFTMLInterface::read(), setAddress(), UsbI2cBus::write(), UsbSpiBus::write(), UsbFTInterface::write(), and UsbFTMLInterface::write().
|
inline |
Get IOdata length
Definition at line 162 of file IOdata.h.
References m_block.
Referenced by BOOST_PYTHON_MODULE(), and setBlock().
|
inline |
|
inline |
Definition at line 205 of file IOdata.h.
References m_dataU16.
Referenced by defDataU16(), and ~IOdata().
|
inline |
Definition at line 209 of file IOdata.h.
References m_dataU32.
Referenced by defDataU32(), and ~IOdata().
|
inline |
Definition at line 200 of file IOdata.h.
References m_dataU8.
Referenced by defDataU8(), and ~IOdata().
|
inline |
Definition at line 218 of file IOdata.h.
References m_dataU16.
Referenced by BOOST_PYTHON_MODULE(), A3PE::enableStorage(), A3PE::fifoDepth(), A3PE::fifoLatency(), Register::getBit(), A3PE::lengthAX(), A3PE::pipeline(), UsbFTInterface::read(), UsbFTMLInterface::read(), Register::setBit(), A3PE::setFifoDepth(), A3PE::setFifoLatency(), A3PE::setPipeline(), UsbFTInterface::write(), and UsbFTMLInterface::write().
|
inline |
|
inline |
Definition at line 222 of file IOdata.h.
References m_dataU32.
Referenced by BOOST_PYTHON_MODULE(), A3PE::clockDivision(), Register::getBit(), A3PE::latencyAX(), A3PE::nTrigger(), UsbFTInterface::read(), UsbFTMLInterface::read(), Register::setBit(), A3PE::setClockDivision(), A3PE::setNTrigger(), A3PE::setTriggerDelay(), A3PE::setTriggerRate(), A3PE::triggerDelay(), A3PE::triggerRate(), UsbFTInterface::write(), and UsbFTMLInterface::write().
|
inline |
|
inline |
Definition at line 214 of file IOdata.h.
References m_dataU8.
Referenced by BOOST_PYTHON_MODULE(), UsbSpiBus::clockDivider(), LSDelayChipV1::configRegBulkRead(), LSDelayChipV1::configRegBulkWrite(), UsbSpiBus::ctrlWd(), Acquisition::decodeFormat(), A3PE::dumpFromAX(), A3PE::dumpPattern(), A3PE::dumpStorage(), A3PE::dumpToAX(), A3PE::dumpTrigger(), StorageFifo::execute(), StorageFifoAcquisition::execute(), TestUSB::execute(), SeqPGA::extTrig(), Register::getBit(), FePGA::i2cAdd(), SeqPGA::i2cAdd(), FePGA::i2cData(), SeqPGA::i2cData(), FePGA::i2cGBTSCA(), SeqPGA::i2cGBTSCA(), FePGA::i2cRead(), SeqPGA::i2cRead(), FePGA::i2cWrite(), SeqPGA::i2cWrite(), A3PE_BitFlip::initialize(), SeqPGA::ledEnable(), A3PE::loadFromAX(), A3PE::loadPattern(), A3PE::loadStorage(), A3PE::loadToAX(), A3PE::loadTrigger(), RAM::raz(), UsbI2cBus::read(), Phaser::read(), ICPhaser::read(), UsbSpiBus::read(), UsbFTInterface::read(), UsbFTMLInterface::read(), ICPhaser::reset(), Register::setBit(), UsbSpiBus::setClockDivider(), SeqPGA::setExtTrig(), FePGA::setI2cGBTSCA(), SeqPGA::setI2cGBTSCA(), SeqPGA::setLedEnable(), SeqPGA::setSpiEnable(), SeqPGA::setSpiGBTSCA(), FePGA::setSpiGBTSCA(), SeqPGA::spiAdd(), SeqPGA::spiEnable(), SeqPGA::spiGBTSCA(), FePGA::spiGBTSCA(), FePGA::spiRead(), ICECALv3::spiRead(), SeqPGA::spiRead(), ICECALv3::spiWrite(), ICPhaser::status(), UsbI2cBus::write(), Phaser::write(), ICPhaser::write(), UsbSpiBus::write(), UsbFTMLInterface::write(), and UsbFTInterface::write().
|
inline |
|
inline |
Definition at line 186 of file IOdata.h.
References clearDataU16(), m_dataU16, m_length, m_wordSize, cat::size, and Word.
Referenced by A3PE::A3PE(), and BOOST_PYTHON_MODULE().
|
inline |
Definition at line 193 of file IOdata.h.
References clearDataU32(), DWord, m_dataU32, m_length, m_wordSize, and cat::size.
Referenced by A3PE::A3PE(), and BOOST_PYTHON_MODULE().
|
inline |
Definition at line 179 of file IOdata.h.
References Byte, clearDataU8(), m_dataU8, m_length, m_wordSize, and cat::size.
Referenced by BOOST_PYTHON_MODULE(), FePGA::i2cRead(), SeqPGA::i2cRead(), FePGA::i2cWrite(), SeqPGA::i2cWrite(), ICECALv3::ICECALv3(), ICPhaser::ICPhaser(), FePGA::MakeRegister(), Phaser::Phaser(), Proto40MHz_v1::Proto40MHz_v1(), SeqPGA::SeqPGA(), RAM::setSize(), UsbI2cBus::UsbI2cBus(), and UsbSpiBus::UsbSpiBus().
void IOdata::dump | ( | unsigned int | printout = 0 | ) |
Definition at line 94 of file IOdata.cpp.
References btos(), Byte, DWord, Object::info(), itob(), itos(), m_address, m_dataU16, m_dataU32, m_dataU8, m_length, m_subAddress, m_wordSize, Object::name(), Object::type(), and Word.
Referenced by BOOST_PYTHON_MODULE(), IOobject::dump(), UsbSpiBus::read(), setDataU32(), ICPhaser::status(), ICPhaser::write(), and UsbSpiBus::write().
|
inline |
Get IOdata header
Definition at line 74 of file IOdata.h.
References m_header.
Referenced by BOOST_PYTHON_MODULE(), and setHeader().
|
inline |
Get IOdata length
Definition at line 175 of file IOdata.h.
References m_length.
Referenced by BOOST_PYTHON_MODULE(), UsbI2cBus::read(), UsbSpiBus::read(), UsbFTMLInterface::read(), UsbFTInterface::read(), setDataU16(), setDataU32(), setDataU8(), setLength(), UsbI2cBus::write(), UsbSpiBus::write(), UsbFTInterface::write(), and UsbFTMLInterface::write().
|
inline |
|
inline |
Get IOdata output select
Definition at line 104 of file IOdata.h.
References m_outputSelect.
Referenced by BOOST_PYTHON_MODULE(), and setOutputSelect().
|
inline |
Define IOdata address
Definition at line 51 of file IOdata.h.
References address(), m_address, and StatusCode::SUCCESS.
Referenced by BOOST_PYTHON_MODULE(), FePGA::MakeRAM(), FePGA::MakeRegister(), ICPhaser::read(), SeqPGA::SeqPGA(), IOobject::setAddress(), ICPhaser::status(), UsbI2cBus::UsbI2cBus(), and UsbSpiBus::UsbSpiBus().
|
inline |
Define IOdata block
Definition at line 168 of file IOdata.h.
References block(), m_block, and StatusCode::SUCCESS.
Referenced by BOOST_PYTHON_MODULE().
|
inline |
Define IOdata bus
Definition at line 140 of file IOdata.h.
References bus(), m_bus, and StatusCode::SUCCESS.
Referenced by BOOST_PYTHON_MODULE().
Definition at line 246 of file IOdata.h.
References shell::data(), length(), m_dataU16, m_length, m_wordSize, and Word.
Definition at line 253 of file IOdata.h.
References shell::data(), dump(), DWord, length(), m_dataU32, m_length, m_wordSize, setU16(), setU32(), and setU8().
Definition at line 239 of file IOdata.h.
References Byte, shell::data(), length(), m_dataU8, m_length, and m_wordSize.
Referenced by UsbI2cBus::read(), and UsbI2cBus::write().
|
inline |
Define IOdata header
Definition at line 66 of file IOdata.h.
References header(), m_header, and StatusCode::SUCCESS.
Referenced by BOOST_PYTHON_MODULE().
|
inline |
Define IOdata length
Definition at line 154 of file IOdata.h.
References length(), m_length, and StatusCode::SUCCESS.
Referenced by BOOST_PYTHON_MODULE().
|
inline |
Define IOdata mode
Definition at line 111 of file IOdata.h.
References m_mode, mode(), and StatusCode::SUCCESS.
Referenced by BOOST_PYTHON_MODULE().
|
inline |
Define IOdata output select
Definition at line 96 of file IOdata.h.
References m_outputSelect, outputSelect(), and StatusCode::SUCCESS.
Referenced by BOOST_PYTHON_MODULE().
|
inline |
Define IOdata subaddress
Definition at line 81 of file IOdata.h.
References m_subAddress, subAddress(), and StatusCode::SUCCESS.
Referenced by BOOST_PYTHON_MODULE(), ICECALv3::ICECALv3(), and ICPhaser::ICPhaser().
StatusCode IOdata::setU16 | ( | unsigned long int | position, |
U16 | value | ||
) |
Definition at line 60 of file IOdata.cpp.
References StatusCode::FAILURE, itos(), m_dataU16, m_length, StatusCode::SUCCESS, and Object::warning().
Referenced by BOOST_PYTHON_MODULE(), A3PE::enableStorage(), A3PE::reset(), A3PE::setAddFromAXRam(), A3PE::setAddToAXRam(), Register::setBit(), setDataU32(), A3PE::setFifoDepth(), A3PE::setFifoLatency(), A3PE::setLengthAX(), and A3PE::setPipeline().
StatusCode IOdata::setU32 | ( | unsigned long int | position, |
U32 | value | ||
) |
Definition at line 77 of file IOdata.cpp.
References StatusCode::FAILURE, itos(), m_dataU32, m_length, StatusCode::SUCCESS, and Object::warning().
Referenced by BOOST_PYTHON_MODULE(), Register::setBit(), A3PE::setClockDivision(), setDataU32(), A3PE::setLatencyAX(), A3PE::setNTrigger(), A3PE::setTriggerDelay(), and A3PE::setTriggerRate().
StatusCode IOdata::setU8 | ( | unsigned long int | position, |
U8 | value | ||
) |
Definition at line 43 of file IOdata.cpp.
References StatusCode::FAILURE, itos(), m_dataU8, m_length, StatusCode::SUCCESS, and Object::warning().
Referenced by BOOST_PYTHON_MODULE(), TestUSB::execute(), FePGA::i2cRead(), SeqPGA::i2cRead(), FePGA::i2cWrite(), SeqPGA::i2cWrite(), FePGA::reset(), SeqPGA::reset(), SeqPGA::resetSpi(), FePGA::resetUsb(), Register::setBit(), setDataU32(), SeqPGA::setExtTrig(), FePGA::setI2cAdd(), SeqPGA::setI2cAdd(), FePGA::setI2cGBTSCA(), SeqPGA::setI2cGBTSCA(), SeqPGA::setLedEnable(), FePGA::setSpiAdd(), SeqPGA::setSpiAdd(), SeqPGA::setSpiEnable(), SeqPGA::setSpiGBTSCA(), FePGA::setSpiGBTSCA(), FePGA::spiRead(), SeqPGA::spiRead(), FePGA::spiWrite(), and SeqPGA::spiWrite().
|
inline |
Define IOdata word size
Definition at line 126 of file IOdata.h.
References m_wordSize, StatusCode::SUCCESS, and wordSize().
Referenced by BOOST_PYTHON_MODULE(), ICECALv3::ICECALv3(), ICPhaser::ICPhaser(), FePGA::MakeRegister(), SeqPGA::SeqPGA(), UsbI2cBus::UsbI2cBus(), and UsbSpiBus::UsbSpiBus().
|
inline |
Get IOdata subaddress
Definition at line 89 of file IOdata.h.
References m_subAddress.
Referenced by BOOST_PYTHON_MODULE(), ICPhaser::read(), setSubAddress(), ICPhaser::status(), and ICPhaser::write().
|
inline |
Get IOdata word size
Definition at line 133 of file IOdata.h.
References m_wordSize.
Referenced by BOOST_PYTHON_MODULE(), UsbFTInterface::read(), UsbFTMLInterface::read(), setWordSize(), UsbFTInterface::write(), and UsbFTMLInterface::write().
|
private |
|
private |
Definition at line 279 of file IOdata.h.
Referenced by block(), IOdata(), and setBlock().
|
private |
|
private |
Definition at line 281 of file IOdata.h.
Referenced by clearDataU16(), dataU16(), defDataU16(), dump(), IOdata(), setDataU16(), and setU16().
|
private |
Definition at line 282 of file IOdata.h.
Referenced by clearDataU32(), dataU32(), defDataU32(), dump(), IOdata(), setDataU32(), and setU32().
|
private |
Definition at line 280 of file IOdata.h.
Referenced by clearDataU8(), dataU8(), defDataU8(), dump(), IOdata(), setDataU8(), and setU8().
|
private |
Definition at line 272 of file IOdata.h.
Referenced by header(), IOdata(), and setHeader().
|
private |
Definition at line 278 of file IOdata.h.
Referenced by defDataU16(), defDataU32(), defDataU8(), dump(), IOdata(), length(), setDataU16(), setDataU32(), setDataU8(), setLength(), setU16(), setU32(), and setU8().
|
private |
|
private |
Definition at line 274 of file IOdata.h.
Referenced by outputSelect(), and setOutputSelect().
|
private |
Definition at line 273 of file IOdata.h.
Referenced by dump(), IOdata(), setSubAddress(), and subAddress().
|
private |
Definition at line 276 of file IOdata.h.
Referenced by defDataU16(), defDataU32(), defDataU8(), dump(), IOdata(), setDataU16(), setDataU32(), setDataU8(), setWordSize(), and wordSize().