38typedef size_t (*
fru_st_read_t)(uint8_t id, uint16_t address, uint8_t *buffer,
size_t len, uint32_t timeout);
39typedef size_t (*
fru_st_write_t)(uint8_t id, uint16_t address, uint8_t *buffer,
size_t len, uint32_t timeout);
56size_t fru_read( uint8_t
id, uint8_t *rx_buff, uint16_t offset,
size_t len );
57size_t fru_write( uint8_t
id, uint8_t *tx_buff, uint16_t offset,
size_t len );
@ FRU_AMC
Definition fru.h:30
@ FRU_COUNT
Definition fru.h:34
size_t(* fru_build_t)(uint8_t **buffer)
Definition fru.h:37
struct fru_data fru_data_t
size_t(* fru_st_write_t)(uint8_t id, uint16_t address, uint8_t *buffer, size_t len, uint32_t timeout)
Definition fru.h:39
size_t fru_write(uint8_t id, uint8_t *tx_buff, uint16_t offset, size_t len)
Definition fru.c:251
uint8_t fru_check_integrity(uint8_t id, size_t *fru_size)
Definition fru.c:62
size_t(* fru_st_read_t)(uint8_t id, uint16_t address, uint8_t *buffer, size_t len, uint32_t timeout)
Definition fru.h:38
void fru_init(uint8_t id)
Definition fru.c:39
size_t fru_read(uint8_t id, uint8_t *rx_buff, uint16_t offset, size_t len)
Definition fru.c:217
fru_build_t build_f
Definition fru.h:43
fru_st_read_t read_f
Definition fru.h:44
uint8_t eeprom_id
Definition fru.h:42
fru_st_write_t write_f
Definition fru.h:45
bool runtime
Definition fru.h:52
size_t fru_size
Definition fru.h:51
uint8_t * buffer
Definition fru.h:50
const fru_cfg_t cfg
Definition fru.h:49