UoS³ Flight Computer Firmware
 All Data Structures Files Functions Groups Pages
fram.h
1 
11 #ifndef __FRAM_H__
12 #define __FRAM_H__
13 
14 #include <stddef.h>
15 #include <stdint.h>
16 #include <stdbool.h>
17 
18 /* 1Mbit (128KB) FM25V10 */
19 #define FRAM_SIZE 0x20000
20 /* 4Mbit (512KB) CY15B104Q */
21 //#define FRAM_SIZE 0x80000
22 
23 #define FRAM_MAX_ADDRESS (FRAM_SIZE - 1)
24 
33 bool FRAM_selfTest(void);
34 
45 void FRAM_write(uint32_t address, uint8_t *data, uint32_t length);
46 
57 void FRAM_read(uint32_t address, uint8_t *data, uint32_t length);
58 
59 #endif /* __FRAM_H__ */
bool FRAM_selfTest(void)
Definition: fram.c:17
void FRAM_read(uint32_t address, uint8_t *data, uint32_t length)
Definition: fram.c:36
void FRAM_write(uint32_t address, uint8_t *data, uint32_t length)
Definition: fram.c:25