123

Dependencies:   mbed

Fork of LG by igor Apu

Revision:
198:78dd6d14d108
Parent:
197:7a05523bf588
--- a/DeviceI2C.h	Wed Oct 19 10:55:05 2016 +0000
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,29 +0,0 @@
-#ifndef __DEVICE_I2C_H__
-#define __DEVICE_I2C_H__
-
-typedef struct _DeviceI2CSettings {
-  uint32_t trigger;
-} DeviceI2CSettings;
-
-#define I2C_BUFFER_LENGTH 6
-typedef struct _DeviceI2CState {
-  uint32_t CON0;                      //Control register
-  uint32_t buffer[I2C_BUFFER_LENGTH]; //Transmission buffer
-  uint32_t position;                  //Buffer position
-  uint32_t counter;                   //Time out counter
-  uint32_t trigger;                   //Time out trigger
-  uint32_t enabled;                   //Transmission enabled
-} DeviceI2CState;
-
-typedef struct _DeviceI2C {
-  DeviceI2CState state;
-  DeviceI2CSettings settings;
-} DeviceI2C;
-
-void InitI2CDefaultSettings(void);
-void InitI2CState(void);
-void DeviceStartI2C(void);
-
-void i2cEnableTransmission(void);
-void i2cProcess(void);
-#endif  /* __DEVICE_I2C_H__ */
\ No newline at end of file