MicrochipSRAM
v1.0.6
Arduino Library for an SNVRAM SPI chips from Microchip
|
#include "Arduino.h"
#include <SPI.h>
Go to the source code of this file.
Classes | |
class | MicrochipSRAM |
Access the Microchip SRAM with automated memory size detection. More... | |
Macros | |
#define | MicrochipSRAM_h |
Guard code to prevent multiple definitions. | |
Variables | |
const uint8_t | SRAM_WRITE_MODE_REG {0x01} |
Write the mode register. | |
const uint8_t | SRAM_READ_MODE_REG {0x05} |
Read the mode register. | |
const uint8_t | SRAM_BYTE_MODE {B00000000} |
2MSB 00 is Byte mode | |
const uint8_t | SRAM_PAGE_MODE {B10000000} |
2MSB 10 is page mode | |
const uint8_t | SRAM_SEQ_MODE {B11000000} |
2MSB 11 is sequential mode | |
const uint32_t | SRAM_1024 {131072} |
Equates to 1mbit of storage. | |
const uint32_t | SRAM_512 {65536} |
Equates to 512kbit of storage. | |
const uint32_t | SRAM_256 {32768} |
Equates to 256kbit of storage. | |
const uint32_t | SRAM_128 {16384} |
Equates to 128kbit of storage. | |
const uint32_t | SRAM_64 {8192} |
Equates to 64kbit of storage. | |
const uint8_t | SRAM_WRITE_CODE {2} |
Write. | |
const uint8_t | SRAM_READ_CODE {3} |
Read. | |