Beispiel #1
0
        public void Read(byte[] buffer)
        {
            int sizeTransfered = 0;
            var result         = LibMpsseI2C.I2C_DeviceRead(
                _handle, _deviceAddress,
                buffer.Length, buffer, out sizeTransfered, FtI2CTransferOptions.StartBit);

            CheckResult(result);
        }
Beispiel #2
0
        public byte[] Read(int sizeToTransfer)
        {
            byte[] buffer         = new byte[1];
            int    sizeTransfered = 0;
            var    result         = LibMpsseI2C.I2C_DeviceRead(
                _handle, _deviceAddress,
                sizeToTransfer, buffer, out sizeTransfered, FtI2CTransferOptions.StartBit);

            CheckResult(result);
            return(buffer);
        }
Beispiel #3
0
 public FtResult Read(byte[] buffer, int sizeToTransfer, out int sizeTransfered, FtI2CTransferOptions options)
 {
     //EnforceRightConfiguration();
     return(LibMpsseI2C.I2C_DeviceRead(_handle, _deviceAddress, sizeToTransfer, buffer, out sizeTransfered, options));
 }