|
DUNE-DAQ
DUNE Trigger and Data Acquisition software
|
#include <I2CSlave.hpp>
Public Member Functions | |
| 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 Member Functions | |
| I2CSlave (const I2CMasterNode *i2c_master, uint8_t i2c_device_address) | |
Private Attributes | |
| const I2CMasterNode * | m_i2c_master |
| uint8_t | m_i2c_device_address |
Friends | |
| class | I2CMasterNode |
Definition at line 41 of file I2CSlave.hpp.
|
virtual |
Definition at line 40 of file I2CSlave.cpp.
|
protected |
Definition at line 33 of file I2CSlave.cpp.
|
inline |
Definition at line 47 of file I2CSlave.hpp.
| std::string I2CSlave::get_master_id | ( | ) | const |
Definition at line 179 of file I2CSlave.cpp.
Definition at line 171 of file I2CSlave.cpp.
| uint8_t I2CSlave::read_i2c | ( | uint32_t | i2c_device_address, |
| uint32_t | i2c_reg_address ) const |
comodity functions
Definition at line 46 of file I2CSlave.cpp.
| uint8_t I2CSlave::read_i2c | ( | uint32_t | i2c_reg_address | ) | const |
Definition at line 54 of file I2CSlave.cpp.
| uint8_t I2CSlave::read_i2c_atomic | ( | uint32_t | i2c_device_address, |
| uint32_t | i2c_reg_address ) const |
Definition at line 62 of file I2CSlave.cpp.
| uint8_t I2CSlave::read_i2c_atomic | ( | uint32_t | i2c_reg_address | ) | const |
Definition at line 70 of file I2CSlave.cpp.
| std::vector< uint8_t > I2CSlave::read_i2cArray | ( | uint32_t | i2c_device_address, |
| uint32_t | i2c_reg_address, | ||
| uint32_t | number_of_words ) const |
Definition at line 97 of file I2CSlave.cpp.
| std::vector< uint8_t > I2CSlave::read_i2cArray | ( | uint32_t | i2c_reg_address, |
| uint32_t | number_of_words ) const |
Definition at line 107 of file I2CSlave.cpp.
| std::vector< uint8_t > I2CSlave::read_i2cArray_atomic | ( | uint32_t | i2c_device_address, |
| uint32_t | i2c_reg_address, | ||
| uint32_t | number_of_words ) const |
Definition at line 115 of file I2CSlave.cpp.
| std::vector< uint8_t > I2CSlave::read_i2cArray_atomic | ( | uint32_t | i2c_reg_address, |
| uint32_t | number_of_words ) const |
Definition at line 125 of file I2CSlave.cpp.
| std::vector< uint8_t > I2CSlave::read_i2cPrimitive | ( | uint32_t | number_of_bytes | ) | const |
Definition at line 155 of file I2CSlave.cpp.
| void I2CSlave::write_i2c | ( | uint32_t | i2c_device_address, |
| uint32_t | i2c_reg_address, | ||
| uint8_t | data, | ||
| bool | send_stop = true ) const |
Definition at line 78 of file I2CSlave.cpp.
| void I2CSlave::write_i2c | ( | uint32_t | i2c_reg_address, |
| uint8_t | data, | ||
| bool | send_stop = true ) const |
Definition at line 89 of file I2CSlave.cpp.
| void I2CSlave::write_i2cArray | ( | uint32_t | i2c_device_address, |
| uint32_t | i2c_reg_address, | ||
| std::vector< uint8_t > | data, | ||
| bool | send_stop = true ) const |
Definition at line 133 of file I2CSlave.cpp.
| void I2CSlave::write_i2cArray | ( | uint32_t | i2c_reg_address, |
| std::vector< uint8_t > | data, | ||
| bool | send_stop = true ) const |
Definition at line 144 of file I2CSlave.cpp.
| void I2CSlave::write_i2cPrimitive | ( | const std::vector< uint8_t > & | data, |
| bool | send_stop = true ) const |
Definition at line 163 of file I2CSlave.cpp.
|
friend |
Definition at line 97 of file I2CSlave.hpp.
|
private |
Definition at line 95 of file I2CSlave.hpp.
|
private |
Definition at line 92 of file I2CSlave.hpp.