|
Internal Interface Wrap
API reference
|
RAII exclusive ownership of one StmSpiBus (RTOS mutex). More...
#include <StmSpi.h>
Public Member Functions | |
| StmSpiBusLock (StmSpiBus &bus, hf_u32_t timeout_ms) noexcept | |
| ~StmSpiBusLock () noexcept | |
| StmSpiBusLock (const StmSpiBusLock &)=delete | |
| StmSpiBusLock & | operator= (const StmSpiBusLock &)=delete |
| StmSpiBusLock (StmSpiBusLock &&other) noexcept | |
| StmSpiBusLock & | operator= (StmSpiBusLock &&other) noexcept |
| bool | OwnsLock () const noexcept |
Private Attributes | |
| StmSpiBus * | bus_ {nullptr} |
| bool | locked_ {false} |
RAII exclusive ownership of one StmSpiBus (RTOS mutex).
Higher-level threads may block here with a timeout — that is intentional. Do not disable interrupts across SPI frames; serialize with this lock. Direct HAL probes / wire-proof paths must take the same lock.
|
noexcept |
|
delete |
|
noexcept |
|
delete |
|
noexcept |
|
inlinenoexcept |