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:165
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:58
Structure holding the EEPROM descriptor.
Definition: no_os_eeprom.h:76
int32_t eeprom_24xx32a_remove(struct no_os_eeprom_desc *desc)
Free the resources allocated by eeprom_24xx32a_init()
Definition: 24xx32a.c:210
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:119
const struct no_os_eeprom_platform_ops eeprom_24xx32a_ops
24XX32A EEPROM specific ops structure
Definition: 24xx32a.c:235
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:60
struct no_os_i2c_desc * i2c_desc
Definition: 24xx32a.h:69
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:116
void no_os_mdelay(uint32_t msecs)
Wait until msecs milliseconds passed.
Definition: aducm3029_delay.c:132
uint32_t device_id
Definition: no_os_eeprom.h:66
void * extra
Definition: no_os_eeprom.h:81
24XX32A EEPROM init params structure
Definition: 24xx32a.h:58
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:67
const struct no_os_eeprom_platform_ops eeprom_24xx32a_ops
24XX32A EEPROM specific platform ops structure
Definition: 24xx32a.c:235
24XX32A EEPROM device structure
Definition: 24xx32a.h:67
Structure holding I2C address descriptor.
Definition: no_os_i2c.h:107
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:196
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:75
Structure holding the parameters for I2C initialization.
Definition: no_os_i2c.h:70
uint32_t device_id
Definition: no_os_eeprom.h:78
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:156
void * extra
Definition: no_os_eeprom.h:69
Header file of utility functions.
Structure holding the parameters for EEPROM initialization.
Definition: no_os_eeprom.h:64
struct no_os_i2c_init_param * i2c_init
Definition: 24xx32a.h:60