no-OS
24xx32a.h
Go to the documentation of this file.
1 /***************************************************************************/
34 #ifndef _24XX32A_H_
35 #define _24XX32A_H_
36 
37 /******************************************************************************/
38 /***************************** Include Files **********************************/
39 /******************************************************************************/
40 
41 #include <stdint.h>
42 #include "no_os_i2c.h"
43 
44 /******************************************************************************/
45 /*************************** Types Declarations *******************************/
46 /******************************************************************************/
47 
55 };
56 
64 };
65 
70 
71 #endif /* end of _24XX32A_H_ */
no_os_put_unaligned_be16
void no_os_put_unaligned_be16(uint16_t val, uint8_t *buf)
no_os_alloc.h
no_os_i2c_write
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
no_os_i2c_init
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
no_os_eeprom_desc
Structure holding the EEPROM descriptor.
Definition: no_os_eeprom.h:70
eeprom_24xx32a_remove
int32_t eeprom_24xx32a_remove(struct no_os_eeprom_desc *desc)
Free the resources allocated by eeprom_24xx32a_init()
Definition: 24xx32a.c:204
no_os_i2c_remove
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
eeprom_24xx32a_ops
const struct no_os_eeprom_platform_ops eeprom_24xx32a_ops
24XX32A EEPROM specific ops structure
Definition: 24xx32a.c:229
no_os_delay.h
Header file of Delay functions.
no_os_eeprom.h
Header file for EEPROM APIs.
no_os_calloc
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
eeprom_24xx32a_dev::i2c_desc
struct no_os_i2c_desc * i2c_desc
Definition: 24xx32a.h:63
eeprom_24xx32a_read
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
no_os_mdelay
void no_os_mdelay(uint32_t msecs)
Wait until msecs milliseconds passed.
Definition: aducm3029_delay.c:126
no_os_eeprom_init_param::device_id
uint32_t device_id
Definition: no_os_eeprom.h:60
no_os_error.h
Error codes definition.
no_os_eeprom_desc::extra
void * extra
Definition: no_os_eeprom.h:75
eeprom_24xx32a_init_param
24XX32A EEPROM init params structure
Definition: 24xx32a.h:52
24xx32a.h
Header file of 24AA32A/24LC32A Interface.
eeprom_24xx32a_init
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
eeprom_24xx32a_ops
const struct no_os_eeprom_platform_ops eeprom_24xx32a_ops
24XX32A EEPROM specific platform ops structure
Definition: 24xx32a.c:229
eeprom_24xx32a_dev
24XX32A EEPROM device structure
Definition: 24xx32a.h:61
no_os_i2c_desc
Structure holding I2C address descriptor.
Definition: no_os_i2c.h:101
no_os_i2c_read
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
no_os_i2c.h
Header file of I2C Interface.
no_os_free
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
no_os_eeprom_platform_ops::init
int32_t(* init)(struct no_os_eeprom_desc **, const struct no_os_eeprom_init_param *)
Definition: no_os_eeprom.h:85
no_os_i2c_init_param
Structure holding the parameters for I2C initialization.
Definition: no_os_i2c.h:64
no_os_eeprom_platform_ops
Structure holding the EEPROM function pointers that point to the platform specific function.
Definition: no_os_eeprom.h:83
no_os_eeprom_desc::device_id
uint32_t device_id
Definition: no_os_eeprom.h:72
eeprom_24xx32a_write
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
no_os_eeprom_init_param::extra
void * extra
Definition: no_os_eeprom.h:63
no_os_util.h
Header file of utility functions.
no_os_eeprom_init_param
Structure holding the parameters for EEPROM initialization.
Definition: no_os_eeprom.h:58
eeprom_24xx32a_init_param::i2c_init
struct no_os_i2c_init_param * i2c_init
Definition: 24xx32a.h:54