Raspberry.IO.InterIntegratedCircuit.I2cDriver.EnsureDeviceAddress C# (CSharp) Method

EnsureDeviceAddress() private method

private EnsureDeviceAddress ( int deviceAddress ) : void
deviceAddress int
return void
        private void EnsureDeviceAddress(int deviceAddress)
        {
            if (deviceAddress != currentDeviceAddress)
            {
                var addressAddress = bscAddress + (int)Interop.BCM2835_BSC_A;
                SafeWriteUInt32(addressAddress, (uint)deviceAddress);

                currentDeviceAddress = deviceAddress;
            }
        }