#ifndef I2C_HAL_H #define I2C_HAL_H #include #include #include "src/config.h" /* * Since C does not allows to add functions in typedef struct, however a function pointer can be included in Structure in C. This interface provides a standard features of i2c_hal */ typedef struct{ bool (*write)(uint8_t const TARGET_ADDRESS); bool (*read) (uint8_t const TARGET_ADDRESS); } I2C_Interface; extern I2C_Interface i2c_hal; #endif