distortos
v0.7.0
object-oriented C++ RTOS for microcontrollers
|
SpiEeprom class implementation. More...
#include "distortos/devices/memory/SpiEeprom.hpp"
#include "distortos/devices/communication/SpiDeviceSelectGuard.hpp"
#include "distortos/devices/communication/SpiMasterHandle.hpp"
#include "distortos/devices/communication/SpiMasterTransfer.hpp"
#include "distortos/assert.h"
#include "distortos/ThisThread.hpp"
#include <mutex>
Namespaces | |
distortos | |
Top-level namespace of distortos project. | |
distortos::devices | |
Device drivers. | |
Typedefs | |
using | distortos::devices::anonymous_namespace{SpiEeprom.cpp}::CommandWithAddressBuffer = std::array< uint8_t, 4 > |
buffer for command and address More... | |
Functions | |
SpiMasterTransfer | distortos::devices::anonymous_namespace{SpiEeprom.cpp}::getCommandWithAddress (const size_t capacity, const uint8_t command, const uint32_t address, CommandWithAddressBuffer &buffer) |
Combines command with address into a SpiMasterTransfer. More... | |
Variables | |
constexpr uint8_t | distortos::devices::anonymous_namespace{SpiEeprom.cpp}::rdsrCommand {0x5} |
RDSR (read status register) command. More... | |
constexpr uint8_t | distortos::devices::anonymous_namespace{SpiEeprom.cpp}::readCommand {0x3} |
READ command. More... | |
constexpr uint8_t | distortos::devices::anonymous_namespace{SpiEeprom.cpp}::wrenCommand {0x6} |
WREN (write enable) command. More... | |
constexpr uint8_t | distortos::devices::anonymous_namespace{SpiEeprom.cpp}::writeCommand {0x2} |
WRITE command. More... | |
constexpr uint8_t | distortos::devices::anonymous_namespace{SpiEeprom.cpp}::statusRegisterWip {1 << 0} |
mask of WIP (write in progress) bit in status register More... | |
SpiEeprom class implementation.