Skip to main content

Class TcaAddressTable

TcaAddressTable class to calculate I2C addresses

Assembly: Tca9548a.dll
View Source
public static class TcaAddressTable

Fields

MinAddress

Minimum/lowest address

View Source
public static byte MinAddress

MaxAddress

Maximum/highest address

View Source
public static byte MaxAddress

Methods

GetAddressFromPins(bool, bool, bool)

Get the device address from the high/low status of pins.

If a pin is pulled logic high, pin value is true. If a pin is pulled logic low, pin value is false.

View Source
public static byte GetAddressFromPins(bool pinA0, bool pinA1, bool pinA2)
Returns

System.Byte: The System.Byte value of the address

Parameters
TypeNameDescription
System.BooleanpinA0Status of Pin A0
System.BooleanpinA1Status of Pin A1
System.BooleanpinA2Status of Pin A2

IsValidAddress(byte)

Determine if the supplied address is valid for this device class

View Source
public static bool IsValidAddress(byte address)
Returns

System.Boolean: A System.Boolean indicating if the address is valid

Parameters
TypeNameDescription
System.ByteaddressThe address to validate