diff --git a/module_usb_aud_shared/i2c/i2c.h b/module_usb_aud_shared/i2c/i2c.h index 9c10f969..6248e914 100644 --- a/module_usb_aud_shared/i2c/i2c.h +++ b/module_usb_aud_shared/i2c/i2c.h @@ -1,10 +1,4 @@ -// Channel interface -void I2cRegWriteC(int deviceAdrs, int Adrs, int WrData, chanend c); - -int I2cRegReadC(int deviceAdrs, int Adrs, chanend c); - -// Function interface void I2cRegWrite(int deviceAdrs, int Adrs, int WrData, port AUD_SCLK, port AUD_SDIN); int I2cRegRead(int deviceAdrs, int Adrs, port AUD_SCLK, port AUD_SDIN); diff --git a/module_usb_aud_shared/i2c/i2c.xc b/module_usb_aud_shared/i2c/i2c.xc index 48632445..fd252260 100755 --- a/module_usb_aud_shared/i2c/i2c.xc +++ b/module_usb_aud_shared/i2c/i2c.xc @@ -1,28 +1,6 @@ #include #include -int I2cRegReadC(int device, int addr, chanend c) { - int read; - int retVal; - c <: 0; // isWrite - c <: device; - c <: addr; - c <: 1; // only ever one byte - c :> read; - c :> retVal; - return read; -} - -void I2cRegWriteC(int device, int addr, int data, chanend c) { - int retVal; - c <: 1; // isWrite - c <: device; - c <: addr; - c <: 1; // only ever one byte - c <: data; - c :> retVal; -} - int I2cRegRead(int device, int addr, port scl, port sda) { //int Result;