files added

This commit is contained in:
Christian Lind Madsen
2024-01-29 16:46:25 +01:00
parent 505bbf0aa0
commit ed36495f58
2 changed files with 65 additions and 0 deletions

21
cm_pcf8574_driver.c Normal file
View File

@@ -0,0 +1,21 @@
/*
* cm_pcf8574_driver.c
*
* Created on: 29. jan. 2024
* Author: Chris
*/
#include "cm_pcf8574_driver.h"
int cm_pcf8574_RegTransEvt(cm_pcf8574_t inst, void i2c_inst, setGet_I2C_Event_fpt i2c_transfer_evt){
if(inst == NULL) return CM_PCF8574_NOK;
inst->i2c_inst = i2c_inst;
inst->i2c_transfer_evt = i2c_transfer_evt;
return CM_PCF8574_OK;
}