DUNE-DAQ
DUNE Trigger and Data Acquisition software
|
#include <WIBBase.hh>
Public Member Functions | |
WIBBase (std::string const &address, std::string const &WIBAddressTable, std::string const &FEMBAddressTable) | |
~WIBBase () | |
std::string | GetAddress () |
uint32_t | Read (uint16_t address) |
uint32_t | ReadWithRetry (uint16_t address) |
uint32_t | Read (std::string const &address) |
uint32_t | ReadWithRetry (std::string const &address) |
void | Write (uint16_t address, uint32_t value) |
void | WriteWithRetry (uint16_t address, uint32_t value) |
void | Write (std::string const &address, uint32_t value) |
void | WriteWithRetry (std::string const &address, uint32_t value) |
void | Write (uint16_t address, std::vector< uint32_t > const &values) |
void | Write (std::string const &address, std::vector< uint32_t > const &values) |
void | Write (uint16_t address, uint32_t const *values, size_t word_count) |
void | Write (std::string const &address, uint32_t const *values, size_t word_count) |
uint32_t | ReadI2C (std::string const &base_address, uint16_t I2C_aaddress, uint8_t byte_count=4) |
void | WriteI2C (std::string const &base_address, uint16_t I2C_address, uint32_t data, uint8_t byte_count=4, bool ignore_error=false) |
std::vector< std::string > | GetNames (std::string const ®ex) |
std::vector< std::string > | GetFEMBNames (std::string const ®ex) |
std::vector< std::string > | GetAddresses (uint16_t lower, uint16_t upper) |
std::vector< std::string > | GetFEMBAddresses (uint16_t lower, uint16_t upper) |
std::vector< std::string > | GetTableNames (std::string const ®ex) |
std::vector< Item const * > | GetTagged (std::string const &tag) |
std::vector< Item const * > | GetFEMBTagged (std::string const &tag) |
uint32_t | ReadFEMB (int iFEMB, uint16_t address) |
uint32_t | ReadFEMB (int iFEMB, std::string const &address) |
void | WriteFEMB (int iFEMB, uint16_t address, uint32_t value) |
void | WriteFEMB (int iFEMB, std::string const &address, uint32_t value) |
void | WriteFEMBBits (int iFEMB, uint16_t address, uint32_t pos, uint32_t mask, uint32_t value) |
void | EnableADC (uint64_t iFEMB, uint64_t enable) |
Item const * | GetItem (std::string const &) |
Item const * | GetFEMBItem (int iFEMB, std::string const &) |
int | GetSVNVersion () |
Private Member Functions | |
WIBBase () | |
WIBBase (const WIBBase &other) | |
WIBBase & | operator= (const WIBBase &) |
Private Attributes | |
AddressTable * | wib |
AddressTable * | FEMB [FEMB_COUNT] |
const float | FEMBReadSleepTime |
const float | FEMBWriteSleepTime |
Static Private Attributes | |
static const int | Version |
Definition at line 11 of file WIBBase.hh.
WIBBase::WIBBase | ( | std::string const & | address, |
std::string const & | WIBAddressTable, | ||
std::string const & | FEMBAddressTable ) |
Definition at line 5 of file WIBBase.cpp.
WIBBase::~WIBBase | ( | ) |
Definition at line 20 of file WIBBase.cpp.
|
private |
|
private |
void WIBBase::EnableADC | ( | uint64_t | iFEMB, |
uint64_t | enable ) |
Definition at line 209 of file WIBBase.cpp.
std::string WIBBase::GetAddress | ( | ) |
Definition at line 34 of file WIBBase.cpp.
|
inline |
Definition at line 41 of file WIBBase.hh.
|
inline |
Definition at line 44 of file WIBBase.hh.
Item const * WIBBase::GetFEMBItem | ( | int | iFEMB, |
std::string const & | str ) |
Definition at line 107 of file WIBBase.cpp.
|
inline |
Definition at line 38 of file WIBBase.hh.
|
inline |
Definition at line 55 of file WIBBase.hh.
Item const * WIBBase::GetItem | ( | std::string const & | str | ) |
Definition at line 103 of file WIBBase.cpp.
|
inline |
Definition at line 35 of file WIBBase.hh.
|
inline |
Definition at line 70 of file WIBBase.hh.
|
inline |
Definition at line 47 of file WIBBase.hh.
|
inline |
Definition at line 51 of file WIBBase.hh.
uint32_t WIBBase::Read | ( | std::string const & | address | ) |
Definition at line 125 of file WIBBase.cpp.
uint32_t WIBBase::Read | ( | uint16_t | address | ) |
Definition at line 119 of file WIBBase.cpp.
uint32_t WIBBase::ReadFEMB | ( | int | iFEMB, |
std::string const & | address ) |
Definition at line 164 of file WIBBase.cpp.
uint32_t WIBBase::ReadFEMB | ( | int | iFEMB, |
uint16_t | address ) |
Definition at line 155 of file WIBBase.cpp.
uint32_t WIBBase::ReadI2C | ( | std::string const & | base_address, |
uint16_t | I2C_aaddress, | ||
uint8_t | byte_count = 4 ) |
Definition at line 39 of file WIBBase.cpp.
uint32_t WIBBase::ReadWithRetry | ( | std::string const & | address | ) |
Definition at line 122 of file WIBBase.cpp.
uint32_t WIBBase::ReadWithRetry | ( | uint16_t | address | ) |
Definition at line 116 of file WIBBase.cpp.
void WIBBase::Write | ( | std::string const & | address, |
std::vector< uint32_t > const & | values ) |
Definition at line 144 of file WIBBase.cpp.
void WIBBase::Write | ( | std::string const & | address, |
uint32_t const * | values, | ||
size_t | word_count ) |
Definition at line 150 of file WIBBase.cpp.
void WIBBase::Write | ( | std::string const & | address, |
uint32_t | value ) |
Definition at line 138 of file WIBBase.cpp.
void WIBBase::Write | ( | uint16_t | address, |
std::vector< uint32_t > const & | values ) |
Definition at line 141 of file WIBBase.cpp.
void WIBBase::Write | ( | uint16_t | address, |
uint32_t const * | values, | ||
size_t | word_count ) |
Definition at line 147 of file WIBBase.cpp.
void WIBBase::Write | ( | uint16_t | address, |
uint32_t | value ) |
Definition at line 132 of file WIBBase.cpp.
void WIBBase::WriteFEMB | ( | int | iFEMB, |
std::string const & | address, | ||
uint32_t | value ) |
Definition at line 183 of file WIBBase.cpp.
void WIBBase::WriteFEMB | ( | int | iFEMB, |
uint16_t | address, | ||
uint32_t | value ) |
Definition at line 174 of file WIBBase.cpp.
void WIBBase::WriteFEMBBits | ( | int | iFEMB, |
uint16_t | address, | ||
uint32_t | pos, | ||
uint32_t | mask, | ||
uint32_t | value ) |
Definition at line 193 of file WIBBase.cpp.
void WIBBase::WriteI2C | ( | std::string const & | base_address, |
uint16_t | I2C_address, | ||
uint32_t | data, | ||
uint8_t | byte_count = 4, | ||
bool | ignore_error = false ) |
Definition at line 69 of file WIBBase.cpp.
void WIBBase::WriteWithRetry | ( | std::string const & | address, |
uint32_t | value ) |
Definition at line 135 of file WIBBase.cpp.
void WIBBase::WriteWithRetry | ( | uint16_t | address, |
uint32_t | value ) |
Definition at line 129 of file WIBBase.cpp.
|
private |
Definition at line 78 of file WIBBase.hh.
|
private |
Definition at line 80 of file WIBBase.hh.
|
private |
Definition at line 81 of file WIBBase.hh.
|
staticprivate |
Definition at line 79 of file WIBBase.hh.
|
private |
Definition at line 77 of file WIBBase.hh.