const struct no_os_i2c_platform_ops stm32_i2c_ops
stm32 specific I2C platform ops structure
Definition: stm32_i2c.c:222
Header file for the stm32 i2c driver.
uint8_t slave_address
Definition: no_os_i2c.h:70
I2C_HandleTypeDef hi2c
Definition: stm32_i2c.h:46
uint32_t device_id
Definition: no_os_i2c.h:105
int32_t stm32_i2c_read(struct no_os_i2c_desc *desc, uint8_t *data, uint8_t bytes_number, uint8_t stop_bit)
I2C read transaction as master.
Definition: stm32_i2c.c:191
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
void * extra
Definition: no_os_i2c.h:74
Structure holding the initialization parameters for stm32 platform specific I2C parameters.
Definition: stm32_i2c.h:54
uint8_t slave_address
Definition: no_os_i2c.h:109
uint32_t max_speed_hz
Definition: no_os_i2c.h:68
const struct no_os_i2c_platform_ops stm32_i2c_ops
stm32 platform specific I2C platform ops structure
Definition: stm32_i2c.c:222
uint32_t max_speed_hz
Definition: no_os_i2c.h:107
int32_t stm32_i2c_remove(struct no_os_i2c_desc *desc)
Free the resources allocated by no_os_i2c_init().
Definition: stm32_i2c.c:132
int32_t stm32_i2c_init(struct no_os_i2c_desc **desc, const struct no_os_i2c_init_param *param)
Initialize the I2C communication peripheral.
Definition: stm32_i2c.c:46
uint32_t i2c_timing
Definition: stm32_i2c.h:56
Structure holding I2C address descriptor.
Definition: no_os_i2c.h:101
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
stm32 platform specific I2C descriptor
Definition: stm32_i2c.h:44
Structure holding the parameters for I2C initialization.
Definition: no_os_i2c.h:64
#define NULL
Definition: wrapper.h:64
int32_t stm32_i2c_write(struct no_os_i2c_desc *desc, uint8_t *data, uint8_t bytes_number, uint8_t stop_bit)
I2C write transaction as master.
Definition: stm32_i2c.c:154
Header file of utility functions.
void * extra
Definition: no_os_i2c.h:113
uint32_t device_id
Definition: no_os_i2c.h:66
Error macro definition for ARM Compiler.