|
Arduino-Storage
External Memory Storage library for Arduino
|
#include <MC23LCXXX.h>


Public Member Functions | |
| MC23LC512 (SPI &spi) | |
| virtual int | read (void *dst, uint32_t src, size_t count) |
| virtual int | write (uint32_t dst, const void *src, size_t count) |
| uint32_t | room () |
| uint32_t | alloc (size_t count) |
| void | free (uint32_t addr) |
Public Attributes | |
| const uint32_t | SIZE |
Static Public Attributes | |
| static const uint32_t | MAX_FREQ |
Protected Types | |
| enum | |
Protected Attributes | |
| uint32_t | m_addr |
Storage device driver for Microchip 23LC512, 512 Kbit SPI Serial SRAM.
| [in] | SS_PIN | slave select board pin. |
| [in] | FREQ | max bus frequency for device (default 16 MHz). |
Definition at line 156 of file MC23LCXXX.h.
|
protectedinherited |
Command codes.
Definition at line 125 of file MC23LCXXX.h.
|
inline |
Construct and initiate device driver with given slave select board pin, max bus frequency, and bus manager.
| [in] | spi | bus manager. |
Definition at line 163 of file MC23LCXXX.h.
|
inlineinherited |
|
inlineinherited |
|
inlinevirtualinherited |
Read given count number of bytes from SRAM source address to destination buffer. Returns number of bytes read, or negative error code.
| [in] | dst | destination buffer pointer. |
| [in] | src | source memory address on device. |
| [in] | count | number of bytes to read from device. |
Implements Storage.
Definition at line 59 of file MC23LCXXX.h.
|
inlineinherited |
|
inlinevirtualinherited |
Write given count number of bytes to SRAM destination address from source buffer. Returns number of bytes written, or negative error code.
| [in] | dst | destination memory address on device. |
| [in] | src | source buffer pointer. |
| [in] | count | number of bytes to write to device. |
Implements Storage.
Definition at line 93 of file MC23LCXXX.h.
|
protectedinherited |
Maximum device clock frequency.
Definition at line 37 of file MC23LCXXX.h.
|
inherited |