25 #define EEPROM_DVK_LEN 0x100
28 #define EEPROM_DVK_PAGESIZE 16
134 uint8_t offsetLoc[1];
149 offsetLoc[0] = (uint8_t) offset;
202 uint8_t offsetLoc[1];
231 offsetLoc[0] = (uint8_t) offset;
I2C_TransferReturn_TypeDef I2CSPM_Transfer(I2C_TypeDef *i2c, I2C_TransferSeq_TypeDef *seq)
Perform I2C transfer.
int EEPROM_Write(I2C_TypeDef *i2c, uint8_t addr, unsigned int offset, uint8_t *data, unsigned int len)
Write data to EEPROM.
#define I2C_FLAG_WRITE
Indicate plain write sequence: S+ADDR(W)+DATA0+P.
I2C_TransferReturn_TypeDef
EEPROM driver for 24AA024 (2Kbit) EEPROM device on the DK.
I2C simple poll-based master mode driver for the DK/STK.
struct I2C_TransferSeq_TypeDef::@0 buf[2]
Master mode transfer message structure used to define a complete I2C transfer sequence (from start to...
int EEPROM_Read(I2C_TypeDef *i2c, uint8_t addr, unsigned int offset, uint8_t *data, unsigned int len)
Read data from EEPROM.
#define I2C_FLAG_WRITE_WRITE
Indicate write sequence using two buffers: S+ADDR(W)+DATA0+DATA1+P.
#define I2C_FLAG_WRITE_READ
Indicate combined write/read sequence: S+ADDR(W)+DATA0+Sr+ADDR(R)+DATA1+P.
uint16_t addr
Address to use after (repeated) start.
static int EEPROM_AckPoll(I2C_TypeDef *i2c, uint8_t addr)
Do acknowledge polling on EEPROM device.
#define EEPROM_DVK_PAGESIZE