RMM API 2.0.0
Loading...
Searching...
No Matches
I2CMutex Class Reference

A lock guard to make sure only one thread uses the I2C mutex at a time. More...

#include <I2CMutex.h>

Public Member Functions

 I2CMutex (RMMRegisterAccess *sock)
 Constructs the guard, locking the software mutex and claiming hardware I2C access.
 
 ~I2CMutex ()
 Destructor that releases both the hardware claim and the software mutex.
 

Detailed Description

A lock guard to make sure only one thread uses the I2C mutex at a time.

Constructor & Destructor Documentation

◆ I2CMutex()

I2CMutex::I2CMutex ( RMMRegisterAccess * sock)

Constructs the guard, locking the software mutex and claiming hardware I2C access.

Parameters
sockPointer to the register access instance used to claim hardware mutex.

The documentation for this class was generated from the following files: