Arduino-Storage
External Memory Storage library for Arduino
Cache.ino File Reference
#include "Storage.h"
#include "TWI.h"
#include "Driver/AT24CXX.h"
#include "Driver/EEPROM.h"
#include "GPIO.h"
#include "Software/TWI.h"
Include dependency graph for Cache.ino:

Go to the source code of this file.

Macros

#define USE_SOFTWARE_TWI
 
#define FREQ   800000UL
 
#define CACHE(v)   cache_ ## v
 

Functions

Storage::Cache CACHE() v (eeprom, v, sizeof(v))
 
Storage::Cache CACHE() w (eeprom, w, sizeof(w))
 
void calc ()
 
void setup ()
 
void loop ()
 

Variables

Software::TWI< BOARD::D18, BOARD::D19 > twi
 
AT24C32 eeprom (twi)
 
int16_t v [32]
 
char w [32]
 

Macro Definition Documentation

#define CACHE (   v)    cache_ ## v

Definition at line 32 of file Cache.ino.

#define FREQ   800000UL

Definition at line 14 of file Cache.ino.

#define USE_SOFTWARE_TWI

Definition at line 10 of file Cache.ino.

Function Documentation

void calc ( )

Definition at line 42 of file Cache.ino.

void loop ( )

Definition at line 106 of file Cache.ino.

void setup ( )

Definition at line 81 of file Cache.ino.

Storage::Cache CACHE() v ( eeprom  ,
,
sizeof(v)   
)
Storage::Cache CACHE() w ( eeprom  ,
,
sizeof(w)   
)

Variable Documentation

AT24C32 eeprom(twi)
Software::TWI<BOARD::D18, BOARD::D19> twi

Definition at line 21 of file Cache.ino.

int16_t v[32]

Definition at line 35 of file Cache.ino.

char w[32]

Definition at line 38 of file Cache.ino.