|
GadgetSeed
0.9.6
|
EEPROMドライバ(I2C接続) [詳解]

マクロ定義 | |
| #define | USEBLOCKWRITE |
| #define | DEV_ADDR0 0x50 |
| #define | DEV_ADDR1 0x51 |
| #define | EEPROMSIZE ((long)1024*1024/8) |
| #define | ONEDEVSIZE (64*1024) |
| #define | BLOCKSIZE 256 |
関数 | |
| static int | eeprom_register (struct st_device *dev, char *param) |
| static int | eeprom_unregister (struct st_device *dev) |
| static int | eeprom_open (struct st_device *dev) |
| static int | eeprom_close (struct st_device *dev) |
| static int | eeprom_read (struct st_device *dev, void *data, unsigned int size) |
| static int | eeprom_write (struct st_device *dev, const void *data, unsigned int size) |
| static int | eeprom_seek (struct st_device *dev, int offset, int whence) |
変数 | |
| static struct st_device * | i2c_dev |
| static char | i2c_devname [MAX_DEVNAMELRN] |
| static unsigned long | eeprom_addr |
| const struct st_device | eeprom_device |
| const struct st_device eeprom_device |
eeprom_i2c.c の 145 行目に定義があります。