Subversion Repositories group.electronics

Rev

Rev 163 | Rev 171 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 163 Rev 164
Line 23... Line 23...
23
            byte[] data = new byte[] { 0x00, gpioa, gpiob };
23
            byte[] data = new byte[] { 0x00, gpioa, gpiob };
24
            int rslt = dev.WriteI2cData(this.addressToWrite(), data, 3);
24
            int rslt = dev.WriteI2cData(this.addressToWrite(), data, 3);
25
            return rslt;
25
            return rslt;
26
        }
26
        }
27
 
27
 
-
 
28
        public int SetIOPolarity(byte gpioa, byte gpiob) {
-
 
29
            byte[] data = new byte[] { 0x02, gpioa, gpiob };
-
 
30
            int rslt = dev.WriteI2cData(this.addressToWrite(), data, 3);
-
 
31
            return rslt;
-
 
32
        }
-
 
33
 
28
        public int SetIOPullups(byte gpioa, byte gpiob) {
34
        public int SetIOPullups(byte gpioa, byte gpiob) {
29
            byte[] data = new byte[] { 0x0c, gpioa, gpiob };
35
            byte[] data = new byte[] { 0x0c, gpioa, gpiob };
30
            int rslt = dev.WriteI2cData(this.addressToWrite(), data, 3);
36
            int rslt = dev.WriteI2cData(this.addressToWrite(), data, 3);
31
            return rslt;
37
            return rslt;
32
        }
38
        }