no-OS
24xx32a.h
Go to the documentation of this file.
1 /***************************************************************************/
40 #ifndef _24XX32A_H_
41 #define _24XX32A_H_
42 
43 /******************************************************************************/
44 /***************************** Include Files **********************************/
45 /******************************************************************************/
46 
47 #include <stdint.h>
48 #include "no_os_i2c.h"
49 
50 /******************************************************************************/
51 /*************************** Types Declarations *******************************/
52 /******************************************************************************/
53 
61 };
62 
70 };
71 
76 
77 #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:165
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:58
no_os_eeprom_desc
Structure holding the EEPROM descriptor.
Definition: no_os_eeprom.h:76
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:210
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:119
eeprom_24xx32a_ops
const struct no_os_eeprom_platform_ops eeprom_24xx32a_ops
24XX32A EEPROM specific ops structure
Definition: 24xx32a.c:235
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:60
eeprom_24xx32a_dev::i2c_desc
struct no_os_i2c_desc * i2c_desc
Definition: 24xx32a.h:69
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:116
no_os_mdelay
void no_os_mdelay(uint32_t msecs)
Wait until msecs milliseconds passed.
Definition: aducm3029_delay.c:132
no_os_eeprom_init_param::device_id
uint32_t device_id
Definition: no_os_eeprom.h:66
no_os_error.h
Error codes definition.
no_os_eeprom_desc::extra
void * extra
Definition: no_os_eeprom.h:81
eeprom_24xx32a_init_param
24XX32A EEPROM init params structure
Definition: 24xx32a.h:58
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:67
eeprom_24xx32a_ops
const struct no_os_eeprom_platform_ops eeprom_24xx32a_ops
24XX32A EEPROM specific platform ops structure
Definition: 24xx32a.c:235
eeprom_24xx32a_dev
24XX32A EEPROM device structure
Definition: 24xx32a.h:67
no_os_i2c_desc
Structure holding I2C address descriptor.
Definition: no_os_i2c.h:107
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:196
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:75
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:91
no_os_i2c_init_param
Structure holding the parameters for I2C initialization.
Definition: no_os_i2c.h:70
no_os_eeprom_platform_ops
Structure holding the EEPROM function pointers that point to the platform specific function.
Definition: no_os_eeprom.h:89
no_os_eeprom_desc::device_id
uint32_t device_id
Definition: no_os_eeprom.h:78
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:156
no_os_eeprom_init_param::extra
void * extra
Definition: no_os_eeprom.h:69
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:64
eeprom_24xx32a_init_param::i2c_init
struct no_os_i2c_init_param * i2c_init
Definition: 24xx32a.h:60