modm API documentation
|
#include <modm/architecture/interface/spi_lock.hpp>
Static Public Member Functions | |
static uint8_t | acquire (void *ctx, Spi::ConfigurationHandler handler) |
static uint8_t | release (void *ctx) |
Helper class to implement the synchronization mechanism of modm::SpiMaster in SPI device drivers.
Inherit from this class publicly and pass the derived class as the template argument, as in class SpiMaster1 : public modm::SpiLock<SpiMaster1>
.
Derived | SPI master derived class |