PinValue Struct

Definition

Represents a value for a pin.

public struct PinValue : IEquatable<System.Device.Gpio.PinValue>
type PinValue = struct
Public Structure PinValue
Implements IEquatable(Of PinValue)
Inheritance
PinValue
Implements

Properties

High

The value of the pin is high.

Low

The value of the pin is low.

Methods

Equals(Object)

Indicates whether this instance and a specified object are equal.

Equals(PinValue)

Returns true if the other instance represents the same PinValue than this.

GetHashCode() System.IEquatable`1.GetHashCode
ToString()

Returns "Low" for Low and "High" for High

Operators

Equality(PinValue, PinValue)

Equality operator

Explicit(PinValue to Boolean)

Conversion to byte. Returns true on High, false on Low

Explicit(PinValue to Byte)

Conversion to byte. Returns 1 on High, 0 on Low

Explicit(PinValue to Int32)

Conversion to int. Returns 1 on High, 0 on Low

Implicit(Boolean to PinValue)

Implicit conversion from bool. false means Low, true means High

Implicit(Int32 to PinValue)

Implicit conversion from int. 0 means Low, everything else means High.

Inequality(PinValue, PinValue)

Inequality operator

LogicalNot(PinValue)

Returns the inverse of the value

Applies to