AE11 GUI for PICO

Dependencies:   max32625pico USBDevice

Revision:
0:a13d6826cf66
diff -r 000000000000 -r a13d6826cf66 i2c.h
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/i2c.h	Thu Jun 25 17:25:24 2020 +0000
@@ -0,0 +1,18 @@
+#define I2C_PORT1    0x00
+#define I2C_PORT2    0x01
+
+extern char I2C1_TXDATA[];
+extern char I2C1_RXDATA[];
+//extern char I2C2_TXDATA[];
+//extern char I2C2_RXDATA[];
+
+//-- PROTOTYPES ---------------------------------------------------------------------------------------- 
+void Init_I2C();
+char I2C_Quick_Write(char port, char address);
+char I2C_Read_Byte(char port, char address, char reg);
+char I2C_Write_Register(char port, char address, char reg, char data);
+unsigned short I2C_Read_Word(char port, char address, char reg);
+char I2C_Write_Word(char port, char address, char reg, char hbyte, char lbyte);
+//char I2C_Write_Fast(char port, char address, char daca_hb, char daca_lb, char dacb_hb, char dacb_lb, char dacc_hb, char dacc_lb, char dacd_hb, char dacd_lb);
+char I2C_Write_Block(char port, char address, char nbytes);
+unsigned short I2C_Read_Block(char address, char reg, int nbytes);