Difference: AMC13EnvCppClass ( vs. 1)

Revision 130 May 2013 - CharlieHill

Line: 1 to 1
Added:
>
>
META TOPICPARENT name="CppClass"
This page contains a table of method declarations and descriptions for the AMC13_env C++ Class.

Enumerations

Enum Typedef Enum Description
<-- -->
Sorted ascending
AddressTableScheme direct_AD = 0, map_AD = 1, home_AD = 2, xdaq_AD = 3, sa_AD = 4 AMC13_env class enum for differentiating between AMC13 Address Table setting schemes
IPaddressScheme direct_IP = 0, sn_IP = 1, slot_IP = 2, ipmiRead_IP = 3 AMC13_env class enum for differentiating between AMC13 IP address setting schemes
IPbusVersion IPbus_v1 = 0, IPbus_v2 = 1 AMC13_env class enum for differentiating between IPbus firmware versions

Constructors and Destructors

Method Description
AMC13_env::AMC13_env(AMC13_utils* p_au, const int& sn, const int& slot, const int& contHub) AMC13_env class constructor which takes a pointer to an AMC13_utils object as well as a serial number sn, slot number slot, and Control Hub boolean contHub and uses these arguments to set the AMC13 IP addresses and address table paths for each tongue
AMC13_env::AMC13_env(AMC13_utils* p_au) AMC13_env class constructor which takes a pointer to an AMC13_utils object and figures out the IP addresses and address table paths for each tongue from the environment

Public Functions

Method Description
bool AMC13_env::usingxDAQ() AMC13_env class method which returns whether the AMC13 software is ready to use xDAQ
void AMC13_env::setIPAddresses(const IPaddressScheme& ip_sch) AMC13_env class method which sets the IP address for each tongue using the IPaddressScheme enum ip_shc
void AMC13_env::setIPAddresses(const std::string& t2_ip, const std::string& t1_ip) AMC13_env class method which sets the T1 IP address to t1_ip and the T2 IP address to t2_ip
void AMC13_env::setAddressTables(const AddressTableScheme& ad_sch) AMC13_env class method which sets the address table paths for each tongue using the AddressTableScheme enum ad_sch
void AMC13_env::setAddressTables(const std::string& t2_ad, const std::string& t1_ad) AMC13_env class method which sets the address table path for T1 to t1_ad and the address table path for T2 to t2_ad
int getAMC13SerialNumber() const AMC13_env class method which returns the AMC13 serial number
int getAMC13SlotNumber() const AMC13_env class method which returns the AMC13 slot number
bool usingControlHub() const AMC13_env class method which returns whether Control Hub is being used
int getIPMBAddress() const AMC13_env class method which returns the AMC13 IPMB address
std::string getXDAQRoot() const AMC13_env class method which returns the xDAQ ROOT path
std::string getSpartanAddressTable() const AMC13_env class method which returns the Spartan address table path
std::string getVirtexAddressTable() const AMC13_env class method which returns the Virtex address table path
std::string getKintexAddressTable() const AMC13_env class method which returns the Kintex address table path
std::string getT2IpAddress() const AMC13_env class method which returns the IP address for T2
std::string getT1IpAddress() const AMC13_env class method which returns the IP address for T1
void AMC13_env::setAMC13SerialNumber(const int& num) AMC13_env class method which sets the AMC13 serial number to num
void AMC13_env::setAMC13SlotNumber(const int& num) AMC13_env class method which sets the AMC13 slot number to num

-- CharlieHill - 30 May 2013

 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2019 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback