no-OS
All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
chibios_i2c.h
Go to the documentation of this file.
1/***************************************************************************/
33#ifndef CHIBIOS_I2C_H_
34#define CHIBIOS_I2C_H_
35
36#include <stdint.h>
37#include "no_os_i2c.h"
38#include "hal.h"
39
40#if (HAL_USE_I2C==TRUE)
41
48 I2CDriver *hi2c;
50 I2CConfig *i2ccfg;
52 uint16_t i2caddr;
53};
54
62 I2CDriver *hi2c;
64 I2CConfig *i2ccfg;
65};
66
70extern const struct no_os_i2c_platform_ops chibios_i2c_ops;
71
76static uint8_t* chI2CBuffer;
77static uint16_t buffSize;
78
79#endif // HAL_USE_I2C==TRUE
80
81#endif // CHIBIOS_I2C_H_
const struct no_os_i2c_platform_ops chibios_i2c_ops
chibios platform specific I2C platform ops structure
Definition chibios_i2c.c:194
Header file of I2C Interface.
chibios platform specific I2C descriptor iwth config and slave address parameters
Definition chibios_i2c.h:46
I2CConfig * i2ccfg
Definition chibios_i2c.h:50
uint16_t i2caddr
Definition chibios_i2c.h:52
I2CDriver * hi2c
Definition chibios_i2c.h:48
ChibiOS i2c param struct.
Definition chibios_i2c.h:60
I2CConfig * i2ccfg
Definition chibios_i2c.h:64
I2CDriver * hi2c
Definition chibios_i2c.h:62
Structure holding I2C function pointers that point to the platform specific function.
Definition no_os_i2c.h:109