void no_os_put_unaligned_be16(uint16_t val, uint8_t *buf)
int32_t no_os_i2c_write(struct no_os_i2c_desc *desc, uint8_t *data, uint8_t bytes_number, uint8_t stop_bit)
I2C Write data to slave device.
Definition: no_os_i2c.c:159
int32_t no_os_i2c_init(struct no_os_i2c_desc **desc, const struct no_os_i2c_init_param *param)
Initialize the I2C communication peripheral.
Definition: no_os_i2c.c:52
Structure holding the EEPROM descriptor.
Definition: no_os_eeprom.h:70
int32_t eeprom_24xx32a_remove(struct no_os_eeprom_desc *desc)
Free the resources allocated by eeprom_24xx32a_init()
Definition: 24xx32a.c:204
int32_t no_os_i2c_remove(struct no_os_i2c_desc *desc)
Free the resources allocated by no_os_i2c_init().
Definition: no_os_i2c.c:113
const struct no_os_eeprom_platform_ops eeprom_24xx32a_ops
24XX32A EEPROM specific ops structure
Definition: 24xx32a.c:229
Header file of Delay functions.
Header file for EEPROM APIs.
void * no_os_calloc(size_t nitems, size_t size)
Allocate memory and return a pointer to it, set memory to 0.
Definition: chibios_alloc.c:54
struct no_os_i2c_desc * i2c_desc
Definition: 24xx32a.h:63
int32_t eeprom_24xx32a_read(struct no_os_eeprom_desc *desc, uint32_t address, uint8_t *data, uint16_t bytes)
Read the 24XX32A EEPROM data.
Definition: 24xx32a.c:110
void no_os_mdelay(uint32_t msecs)
Wait until msecs milliseconds passed.
Definition: aducm3029_delay.c:126
uint32_t device_id
Definition: no_os_eeprom.h:60
void * extra
Definition: no_os_eeprom.h:75
24XX32A EEPROM init params structure
Definition: 24xx32a.h:52
Header file of 24AA32A/24LC32A Interface.
int32_t eeprom_24xx32a_init(struct no_os_eeprom_desc **desc, const struct no_os_eeprom_init_param *param)
Initialize the 24XX32A EEPROM.
Definition: 24xx32a.c:61
const struct no_os_eeprom_platform_ops eeprom_24xx32a_ops
24XX32A EEPROM specific platform ops structure
Definition: 24xx32a.c:229
24XX32A EEPROM device structure
Definition: 24xx32a.h:61
Structure holding I2C address descriptor.
Definition: no_os_i2c.h:101
int32_t no_os_i2c_read(struct no_os_i2c_desc *desc, uint8_t *data, uint8_t bytes_number, uint8_t stop_bit)
I2C Read data from slave device.
Definition: no_os_i2c.c:190
Header file of I2C Interface.
void no_os_free(void *ptr)
Deallocate memory previously allocated by a call to no_os_calloc or no_os_malloc.
Definition: chibios_alloc.c:69
Structure holding the parameters for I2C initialization.
Definition: no_os_i2c.h:64
uint32_t device_id
Definition: no_os_eeprom.h:72
int32_t eeprom_24xx32a_write(struct no_os_eeprom_desc *desc, uint32_t address, uint8_t *data, uint16_t bytes)
Write the 24XX32A EEPROM data.
Definition: 24xx32a.c:150
void * extra
Definition: no_os_eeprom.h:63
Header file of utility functions.
Structure holding the parameters for EEPROM initialization.
Definition: no_os_eeprom.h:58
struct no_os_i2c_init_param * i2c_init
Definition: 24xx32a.h:54