|
RMM API 2.0.0
|
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. | |
A lock guard to make sure only one thread uses the I2C mutex at a time.
| I2CMutex::I2CMutex | ( | RMMRegisterAccess * | sock | ) |
Constructs the guard, locking the software mutex and claiming hardware I2C access.
| sock | Pointer to the register access instance used to claim hardware mutex. |