23 lines
461 B
C
23 lines
461 B
C
//
|
|
// Created by xemon on 13.10.22.
|
|
//
|
|
|
|
#ifndef UVEOS_ON_NATION_I2CPORTNATION_H
|
|
#define UVEOS_ON_NATION_I2CPORTNATION_H
|
|
|
|
#include "I2cIO.h"
|
|
#include "SpiPortNation.h"
|
|
#include "n32g45x_i2c.h"
|
|
|
|
typedef struct {
|
|
I2C_Module *I2Cx;
|
|
I2C_InitType initStruct;
|
|
} tI2cPortNation;
|
|
|
|
void vI2cPortNationInit7bit(tI2cPortNation *env, I2C_Module *I2Cx, uint32_t I2C_Speed);
|
|
|
|
tI2cIO I2cPortNation_GetIO(tI2cPortNation *env);
|
|
|
|
|
|
#endif //UVEOS_ON_NATION_I2CPORTNATION_H
|