RMM API 2.0.0
Loading...
Searching...
No Matches
I2CMutex.h
1#pragma once
2
3#include <mutex>
4
5#include "RMMRegisterAccess.h"
6
11class I2CMutex {
12 public:
21 ~I2CMutex();
22
23 private:
24 static std::mutex i2c;
25 std::unique_lock<std::mutex> i2c_mut;
27};
I2CMutex(RMMRegisterAccess *sock)
Constructs the guard, locking the software mutex and claiming hardware I2C access.
Definition I2CMutex.cpp:5
~I2CMutex()
Destructor that releases both the hardware claim and the software mutex.
Definition I2CMutex.cpp:6
Class to handle register access over the ESS Readout Master Module.
Definition RMMRegisterAccess.h:57