Lingua

PinValue Struct

Definizione

Rappresenta un valore per un pin.

public readonly struct PinValue : IEquatable<System.Device.Gpio.PinValue>
type PinValue = struct
Public Structure PinValue
Implements IEquatable(Of PinValue)
Ereditarietà
PinValue
Implementazioni

Proprietà

Nome Descrizione
High

Il valore del pin è elevato.

Low

Il valore del pin è basso.

Metodi

Nome Descrizione
Equals(Object)

Rappresenta un valore per un pin.

Equals(PinValue)

Restituisce true se l'altra istanza rappresenta la stessa PinValue di questa.

GetHashCode()

Rappresenta un valore per un pin.

ToString()

Restituisce "Low" per Low e "High" per High

Operatori

Nome Descrizione
Equality(PinValue, PinValue)

Operatore di uguaglianza

Explicit(PinValue to Boolean)

Conversione in byte. Restituisce true su High, false su Low

Explicit(PinValue to Byte)

Conversione in byte. Restituisce 1 su High, 0 su Low

Explicit(PinValue to Int32)

Conversione in int. Restituisce 1 su High, 0 su Low

Implicit(Boolean to PinValue)

Conversione implicita da bool. false significa Low, true significa High

Implicit(Int32 to PinValue)

La conversione implicita da int. 0 indica Low, tutto il resto significa High.

Inequality(PinValue, PinValue)

Operatore di disuguaglianza

LogicalNot(PinValue)

Restituisce l'inverso del valore

Si applica a