files added
This commit is contained in:
21
cm_pcf8574_driver.c
Normal file
21
cm_pcf8574_driver.c
Normal 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;
|
||||
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user