Shield Code 6.0
Loading...
Searching...
No Matches
AT25M02.cpp File Reference

This control's microchip's AT25M02 EEPROM Device. This treats it as a circular queue, and will not overwrite existing data. More...

#include <Arduino.h>
#include <SPI.h>
#include <AT25M02.hpp>
Include dependency graph for AT25M02.cpp:

Go to the source code of this file.

Macros

#define CHIP_SELECT_PIN   4
 
#define SPI_DATA_RATE   5000000
 
#define PAGE_LEN   256
 
#define NUM_PAGES   (RAM_SIZE / PAGE_LEN)
 

Variables

const uint32_t RAM_SIZE = (1L << 18)
 

Detailed Description

This control's microchip's AT25M02 EEPROM Device. This treats it as a circular queue, and will not overwrite existing data.

I (Sean) had to move initialization code out of the constructor because the compiler does not like initializing SPI in the constructor It seems like most of this is written for the old version of the Arduino SPI library - probably a good idea too go through and fix that at some point.

Definition in file AT25M02.cpp.

Macro Definition Documentation

◆ CHIP_SELECT_PIN

#define CHIP_SELECT_PIN   4

Definition at line 17 of file AT25M02.cpp.

◆ NUM_PAGES

#define NUM_PAGES   (RAM_SIZE / PAGE_LEN)

Definition at line 25 of file AT25M02.cpp.

◆ PAGE_LEN

#define PAGE_LEN   256

Definition at line 23 of file AT25M02.cpp.

◆ SPI_DATA_RATE

#define SPI_DATA_RATE   5000000

Definition at line 20 of file AT25M02.cpp.

Variable Documentation

◆ RAM_SIZE

const uint32_t RAM_SIZE = (1L << 18)

Definition at line 24 of file AT25M02.cpp.