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