|
DUNE-DAQ
DUNE Trigger and Data Acquisition software
|
#include <LTC2945Node.hpp>
Public Member Functions | |
| LTC2945Node (const I2CMasterNode *i2c_master, uint8_t i2c_device_address, double sense_resistance) | |
| virtual | ~LTC2945Node () |
| double | read_v_in () const |
| Read V in [V]. | |
| double | read_delta_sense_v () const |
| Read delta sense voltage [V]. | |
| double | read_power () const |
| Read power [W]. | |
| Public Member Functions inherited from dunedaq::timing::I2CSlave | |
| virtual | ~I2CSlave () |
| uint8_t | get_i2c_address () const |
| uint8_t | read_i2c (uint32_t i2c_device_address, uint32_t i2c_reg_address) const |
| comodity functions | |
| uint8_t | read_i2c (uint32_t i2c_reg_address) const |
| uint8_t | read_i2c_atomic (uint32_t i2c_device_address, uint32_t i2c_reg_address) const |
| uint8_t | read_i2c_atomic (uint32_t i2c_reg_address) const |
| void | write_i2c (uint32_t i2c_device_address, uint32_t i2c_reg_address, uint8_t data, bool send_stop=true) const |
| void | write_i2c (uint32_t i2c_reg_address, uint8_t data, bool send_stop=true) const |
| std::vector< uint8_t > | read_i2cArray (uint32_t i2c_device_address, uint32_t i2c_reg_address, uint32_t number_of_words) const |
| std::vector< uint8_t > | read_i2cArray (uint32_t i2c_reg_address, uint32_t number_of_words) const |
| std::vector< uint8_t > | read_i2cArray_atomic (uint32_t i2c_reg_address, uint32_t number_of_words) const |
| std::vector< uint8_t > | read_i2cArray_atomic (uint32_t i2c_device_address, uint32_t i2c_reg_address, uint32_t number_of_words) const |
| void | write_i2cArray (uint32_t i2c_device_address, uint32_t i2c_reg_address, std::vector< uint8_t > data, bool send_stop=true) const |
| void | write_i2cArray (uint32_t i2c_reg_address, std::vector< uint8_t > data, bool send_stop=true) const |
| std::vector< uint8_t > | read_i2cPrimitive (uint32_t number_of_bytes) const |
| void | write_i2cPrimitive (const std::vector< uint8_t > &data, bool send_stop=true) const |
| bool | ping (bool throw_excp=false) const |
| std::string | get_master_id () const |
Protected Attributes | |
| double | m_sense_resistance |
Static Private Member Functions | |
| static uint16_t | combine_adc_data (uint8_t msb_byte, uint8_t lsb_byte) |
| static uint32_t | combine_power_data (uint8_t msb_byte_2, uint8_t msb_byte_1, uint8_t lsb_byte) |
Static Private Attributes | |
| static constexpr float | v_in_resolution = 0.025 |
| static constexpr float | delta_sense_v_resolution = 0.000025 |
Additional Inherited Members | |
| Protected Member Functions inherited from dunedaq::timing::I2CSlave | |
| I2CSlave (const I2CMasterNode *i2c_master, uint8_t i2c_device_address) | |
Definition at line 26 of file LTC2945Node.hpp.
| dunedaq::timing::LTC2945Node::LTC2945Node | ( | const I2CMasterNode * | i2c_master, |
| uint8_t | i2c_device_address, | ||
| double | sense_resistance ) |
Definition at line 23 of file LTC2945Node.cpp.
|
virtual |
Definition at line 30 of file LTC2945Node.cpp.
|
staticprivate |
Definition at line 116 of file LTC2945Node.cpp.
|
staticprivate |
Definition at line 126 of file LTC2945Node.cpp.
| double dunedaq::timing::LTC2945Node::read_delta_sense_v | ( | ) | const |
Read delta sense voltage [V].
Definition at line 84 of file LTC2945Node.cpp.
| double dunedaq::timing::LTC2945Node::read_power | ( | ) | const |
Read power [W].
Definition at line 100 of file LTC2945Node.cpp.
| double dunedaq::timing::LTC2945Node::read_v_in | ( | ) | const |
Read V in [V].
Definition at line 68 of file LTC2945Node.cpp.
|
staticconstexprprivate |
Definition at line 57 of file LTC2945Node.hpp.
|
protected |
Definition at line 51 of file LTC2945Node.hpp.
|
staticconstexprprivate |
Definition at line 56 of file LTC2945Node.hpp.