Mini can app
Dependencies: mbed mbed-STM32F103C8T6
i2c_base.h
00001 #include "mbed.h" 00002 #include "wiced_types.h" 00003 #ifndef __I2C_BASE_H 00004 #define __I2C_BASE_H 00005 00006 #define NUM_I2C_MESSAGE_RETRIES 3 00007 00008 void cleanI2CLines(I2C* dev, PinName sda, PinName scl); 00009 wiced_result_t writeRegs(unsigned char addr, unsigned char * data, unsigned char len, I2C* i2c_dev, const int addr7bit, int* i2cfailcount, wiced_bool_t swap); 00010 wiced_result_t readRegs(unsigned char addr, unsigned char * data, unsigned char len, I2C* i2c_dev, const int addr7bit, int* failcount, wiced_bool_t writeThenRead, 00011 wiced_bool_t swap); 00012 00013 #endif 00014
Generated on Fri Jul 15 2022 20:08:26 by
1.7.2