Class mudaq::ASICConfigBase
ClassList > mudaq > ASICConfigBase
Inherited by the following classes: mutrig::Mutrig3Config
Public Types
| Type | Name |
|---|---|
| typedef std::tuple< std::string, size_t, std::vector< uint8_t > > | para_t mutrig parameter (name, number of bits, bit order) |
| typedef std::vector< para_t > | paras_t mutrig parameter in correct order (starting at bit offset 0) |
Public Attributes
| Type | Name |
|---|---|
| uint8_t * | bitpattern_r bitpattern to be written |
| uint8_t * | bitpattern_w readback bitpattern |
| size_t | length length of bitpattern in full bytes |
| size_t | length_32bits length of bitpattern in 32bit words |
| size_t | length_bits length of bitpattern in bits |
Public Functions
| Type | Name |
|---|---|
| ASICConfigBase () |
|
| std::string | GetVerificationError () |
| int | VerifyReadbackPattern () |
| uint32_t | getParameter (std::string name, bool reverse=false) |
| const paras_offset_t & | getParameters () const |
| std::string | getPattern () |
| int | reset (char o='b') |
| int | setParameter (std::string name, uint32_t value, bool reverse=false) |
| ~ASICConfigBase () |
Public Static Functions
| Type | Name |
|---|---|
| para_t | make_param (std::string name, size_t nbits, bool endianess) |
| para_t | make_param (std::string name, size_t nbits, std::vector< uint8_t > bitorder) |
| para_t | make_param (std::string name, std::string bitorderstring) |
Protected Types
| Type | Name |
|---|---|
| typedef std::tuple< unsigned int, size_t, std::vector< uint8_t > > | para_offset_t mutrig parameter offset/nbits/endianess pair (offset, endianess) |
| typedef std::map< std::string, para_offset_t > | paras_offset_t mutrig parameters offset/nbits/endianess map |
Protected Attributes
| Type | Name |
|---|---|
| std::string | m_verification_error |
| paras_offset_t | paras_offsets initialized from parameters on construction |
Protected Functions
| Type | Name |
|---|---|
| void | addPara (const para_t & para, const std::string postfix) |
Public Types Documentation
typedef para_t
mutrig parameter (name, number of bits, bit order)
typedef std::tuple<std::string, size_t, std::vector<uint8_t> > mudaq::ASICConfigBase::para_t;
ASIC parameters (name, number of bits, endianess)
typedef paras_t
mutrig parameter in correct order (starting at bit offset 0)
typedef std::vector<para_t> mudaq::ASICConfigBase::paras_t;
Public Attributes Documentation
variable bitpattern_r
bitpattern to be written
uint8_t* mudaq::ASICConfigBase::bitpattern_r;
variable bitpattern_w
readback bitpattern
uint8_t* mudaq::ASICConfigBase::bitpattern_w;
variable length
length of bitpattern in full bytes
size_t mudaq::ASICConfigBase::length;
variable length_32bits
length of bitpattern in 32bit words
size_t mudaq::ASICConfigBase::length_32bits;
variable length_bits
length of bitpattern in bits
size_t mudaq::ASICConfigBase::length_bits;
Public Functions Documentation
function ASICConfigBase
mudaq::ASICConfigBase::ASICConfigBase ()
function GetVerificationError
inline std::string mudaq::ASICConfigBase::GetVerificationError ()
function VerifyReadbackPattern
int mudaq::ASICConfigBase::VerifyReadbackPattern ()
function getParameter
uint32_t mudaq::ASICConfigBase::getParameter (
std::string name,
bool reverse=false
)
get parameter from read bitpattern
function getParameters
inline const paras_offset_t & mudaq::ASICConfigBase::getParameters () const
function getPattern
std::string mudaq::ASICConfigBase::getPattern ()
debug function to get the current pattern as string
function reset
int mudaq::ASICConfigBase::reset (
char o='b'
)
resets bitpattern input r:
function setParameter
int mudaq::ASICConfigBase::setParameter (
std::string name,
uint32_t value,
bool reverse=false
)
set parameter in write bitpattern by name return 0 if success
function ~ASICConfigBase
mudaq::ASICConfigBase::~ASICConfigBase ()
Public Static Functions Documentation
function make_param [1/3]
static para_t mudaq::ASICConfigBase::make_param (
std::string name,
size_t nbits,
bool endianess
)
function make_param [2/3]
static para_t mudaq::ASICConfigBase::make_param (
std::string name,
size_t nbits,
std::vector< uint8_t > bitorder
)
function make_param [3/3]
static para_t mudaq::ASICConfigBase::make_param (
std::string name,
std::string bitorderstring
)
Protected Types Documentation
typedef para_offset_t
mutrig parameter offset/nbits/endianess pair (offset, endianess)
typedef std::tuple<unsigned int, size_t, std::vector<uint8_t> > mudaq::ASICConfigBase::para_offset_t;
typedef paras_offset_t
mutrig parameters offset/nbits/endianess map
typedef std::map<std::string, para_offset_t> mudaq::ASICConfigBase::paras_offset_t;
Protected Attributes Documentation
variable m_verification_error
std::string mudaq::ASICConfigBase::m_verification_error;
variable paras_offsets
initialized from parameters on construction
paras_offset_t mudaq::ASICConfigBase::paras_offsets;
Protected Functions Documentation
function addPara
void mudaq::ASICConfigBase::addPara (
const para_t & para,
const std::string postfix
)
Friends Documentation
friend operator<<
std::ostream & mudaq::ASICConfigBase::operator<< (
std::ostream & os,
const ASICConfigBase & config
)
The documentation for this class was generated from the following file midas_fe/libmudaq/asic_config_base.h