DUNE-DAQ
DUNE Trigger and Data Acquisition software
Loading...
Searching...
No Matches
WIB_QSFP.cpp
Go to the documentation of this file.
1#include "wibmod/WIB1/WIB.hh"
3#include <fstream>
4#include <unistd.h> //usleep
5
6void
7WIB::WriteQSFP(uint16_t address, uint32_t value, uint8_t byte_count)
8{
9 WriteI2C("DAQ.QSFP.I2C", address, value, byte_count);
10}
11uint32_t
12WIB::ReadQSFP(uint16_t address, uint8_t byte_count)
13{
14 return ReadI2C("DAQ.QSFP.I2C", address, byte_count);
15}
void WriteI2C(std::string const &base_address, uint16_t I2C_address, uint32_t data, uint8_t byte_count=4, bool ignore_error=false)
Definition WIBBase.cpp:81
uint32_t ReadI2C(std::string const &base_address, uint16_t I2C_aaddress, uint8_t byte_count=4)
Definition WIBBase.cpp:44
void WriteQSFP(uint16_t address, uint32_t value, uint8_t byte_count)
Definition WIB_QSFP.cpp:7
uint32_t ReadQSFP(uint16_t address, uint8_t byte_count)
Definition WIB_QSFP.cpp:12