Initial commit

This commit is contained in:
2022-03-24 23:30:08 +01:00
commit 6f11ba3527
208 changed files with 132161 additions and 0 deletions

29
Core/Inc/SoftI2C.h Normal file
View File

@ -0,0 +1,29 @@
/*
* SoftI2C.h
*
* Created on: 30.01.2022
* Author: max
*/
#ifndef INC_SOFTI2C_H_
#define INC_SOFTI2C_H_
#include "stm32f4xx_hal.h"
void Soft_I2C_Init();
void Soft_I2C_Transmit(uint8_t address, uint8_t* databuffer,uint8_t bufferlength);
void Soft_I2C_Receive(uint8_t address, uint8_t* databuffer, uint8_t bufferlength);
void SDA_WriteMode();
void SDA_ReadMode();
void setSDA(uint8_t state);
uint8_t readSDA();
void setSDCLK();
void resetSDCLK();
void bitwait();
#endif /* INC_SOFTI2C_H_ */