7 #include <hardware/i2c.h>
8 #include <pico/stdlib.h>
10 #define FUJITSU_MANUF_ID 0x00A
12 #define MAXADDRESS 512
13 #define PROD_ID_MB85RC04V 0x010
14 #define DENSITY_MB85RC04V 0x0
15 #define MB85RC_ADDRESS_A00 0x50
16 #define MB85RC_ADDRESS_A01 0x52
17 #define MB85RC_ADDRESS_A10 0x54
18 #define MB85RC_ADDRESS_A11 0x56
19 #define MB85RC_DEFAULT_ADDRESS MB85RC_ADDRESS_A00
21 #define MASTER_CODE 0xF8
41 int mbot_read_fram(uint16_t addr,
size_t length, uint8_t* data);
50 int mbot_write_fram(uint16_t addr,
size_t length, uint8_t* data);
59 int mbot_read_word_fram(uint16_t addr, uint16_t* data);
68 int mbot_write_word_fram(uint16_t addr, uint16_t data);
77 int mbot_erase_fram(
void);