DUNE-DAQ
DUNE Trigger and Data Acquisition software
Loading...
Searching...
No Matches
SIChipSlave.hpp
Go to the documentation of this file.
1
12#ifndef TIMING_INCLUDE_TIMING_SICHIPSLAVE_HPP_
13#define TIMING_INCLUDE_TIMING_SICHIPSLAVE_HPP_
14
15#include "timing/I2CSlave.hpp"
16
17#include "ers/Issue.hpp"
18
19#include <map>
20
21namespace dunedaq {
22namespace timing {
23
31class SIChipSlave : public I2CSlave
32{
33public:
34 SIChipSlave(const I2CMasterNode* i2c_master, uint8_t i2c_device_address); // NOLINT(build/unsigned)
35 virtual ~SIChipSlave();
36
42 uint8_t read_page() const; // NOLINT(build/unsigned)
43
49 void switch_page(uint8_t page) const; // NOLINT(build/unsigned)
50
56 uint32_t read_device_version() const; // NOLINT(build/unsigned)
57
65 uint8_t read_clock_register(uint16_t address) const; // NOLINT(build/unsigned)
66
73 void write_clock_register(uint16_t address, uint8_t data) const; // NOLINT(build/unsigned)
74};
75
76} // namespace timing
77} // namespace dunedaq
78
79#endif // TIMING_INCLUDE_TIMING_SICHIPSLAVE_HPP_
Utility class to interface to SI chips.
SIChipSlave(const I2CMasterNode *i2c_master, uint8_t i2c_device_address)
void switch_page(uint8_t page) const
{ function_description }
void write_clock_register(uint16_t address, uint8_t data) const
Writes a clock register.
uint8_t read_page() const
Reads the current page.
uint8_t read_clock_register(uint16_t address) const
Reads a clock register.
uint32_t read_device_version() const
Reads a device version.
Including Qt Headers.