• このライブラリについて
  • サンプルコード
  • リファレンス
  • ドライバAPI
目次の表示/非表示
  • Y2.UsbIO
    • AinFunctions
    • AoutFunctions
    • ConnectMode
    • DeviceException
    • DeviceResult
    • DeviceSwitch
    • DinFunctions
    • DoutFunctions
    • OnOffValue
    • OnOffValues
    • OutputValue
    • OutputValues
    • RlyFunctions
    • Voltage
  • Y2.UsbIO.Abstractions
    • IAinDevice
    • IAinDinDevice
    • IAinDioDevice
    • IAinDoutDevice
    • IAinRlyDevice
    • IAioDevice
    • IAioDinDevice
    • IAioDioDevice
    • IAioDoutDevice
    • IAioRlyDevice
    • IAoutDevice
    • IDevice
    • IDinDevice
    • IDioDevice
    • IDoutDevice
    • IPmcsDioDevice
    • IRlyDevice
    • IRlyDinDevice
    • IRlyDioDevice
    • IRlyDoutDevice
  • Y2.UsbIO.Pmcs
    • AccelerationMode
    • AccelerationTime
    • Axes
    • Axis
    • ContinuousSetting
    • ContinuousSettings
    • Direction
    • IdlingPulse
    • MotorControlLsi
    • NumberOfPulses
    • OperationMode
    • OperationStatus
    • OriginReturnSetting
    • OriginReturnSettings
    • OutputLogic
    • OutputSpeed
    • PcdCommand
    • PcdRegister
    • PcdRegisterValue
    • PcdStatus
    • PcdStatusValue
    • PmcsFunctions
    • Position
    • PositioningSetting
    • PositioningSettings
    • PulseMode
    • RemainingPulse
    • SdSensorConfig
    • SensorLogic
    • SensorStatus
    • Speed
    • SpeedPattern
    • SpeedRate
    • StaStpConfig
    • StopMode
  • Y2.UsbIO.Ub
    • Dio88bUbc
    • Dio88bUbt
    • Dio88cUbt
    • RlyP420bUbt
  • Y2.UsbIO.UsbPc104.Aio
    • Aio16000N64aU
    • Aio1601632aU
    • Aio160aU
    • Aio160N6400aU
    • Aio16400N64aU
    • Aio1641632aU
    • Aio164aU
    • Aio164N6400aU
    • Aio8000N128aU
    • Aio8000N64aU
    • Aio801632aU
    • Aio803264aU
    • Aio80aU
    • Aio80N12800aU
    • Aio80N6400aU
    • Aio80N64N64aU
    • Aio80R24aU
    • Aio8400N128aU
    • Aio8400N64aU
    • Aio841616aU
    • Aio841632aU
    • Aio843264aU
    • Aio84aU
    • Aio84N12800aU
    • Aio84N6400aU
    • Aio84N64N64aU
    • Aio84R24aU
  • Y2.UsbIO.UsbPc104.Dio
    • Dio00N128aU
    • Dio00N192aU
    • Dio00N64aU
    • Dio1616aU
    • Dio1632aU
    • Dio16N112aU
    • Dio16N176aU
    • Dio16N48aU
    • Dio3232aU
    • Dio3264aU
    • Dio32N160aU
    • Dio32N96aU
    • Dio4848aU
    • Dio4896aU
    • Dio48N144aU
    • DioN12800aU
    • DioN128N64aU
    • DioN19200aU
    • DioN6400aU
    • DioN64N128aU
    • DioN64N64aU
  • Y2.UsbIO.UsbPc104.Pmc
    • PmcS40000aU
    • PmcS400N128aU
    • PmcS400N64aU
    • PmcS41632aU
    • PmcS416N112aU
    • PmcS416N48aU
    • PmcS43264aU
    • PmcS432N96aU
    • PmcS80000aU
    • PmcS800N64aU
    • PmcS81632aU
    • PmcS816N48aU
  • Y2.UsbIO.UsbPc104.Rly
    • Rly2400N128aU
    • Rly241616aU
    • Rly241632aU
    • Rly243264aU
    • Rly24aU
    • Rly481616aU
    • Rly481632aU
    • Rly48aU
    • Rly72aU
    • Rly800N128aU
    • Rly81632aU
    • Rly83264aU
    • Rly8aU

OutputValue 構造体

出力値

名前空間: Y2.UsbIO
アセンブリ: Y2.UsbIO.Core.dll
構文
public readonly struct OutputValue : IEquatable<OutputValue>

プロパティ

Keep

保持

public static readonly OutputValue Keep { get; }
プロパティ値
型 説明
OutputValue

Off

オフ

public static readonly OutputValue Off { get; }
プロパティ値
型 説明
OutputValue

On

オン

public static readonly OutputValue On { get; }
プロパティ値
型 説明
OutputValue

Value

public readonly byte Value { get; }
プロパティ値
型 説明
System.Byte

メソッド

Equals(Object)

public override readonly bool Equals(object obj)
パラメーター
型 名前 説明
System.Object obj
戻り値
型 説明
System.Boolean
オーバーライド
System.ValueType.Equals(System.Object)

Equals(OutputValue)

public readonly bool Equals(OutputValue other)
パラメーター
型 名前 説明
OutputValue other
戻り値
型 説明
System.Boolean

FromApiValue(Byte)

ドライバAPIでの値からインスタンスを生成します。0 → Off, 1 → On, 2 → Keep

public static OutputValue FromApiValue(byte value)
パラメーター
型 名前 説明
System.Byte value

ドライバAPIでの値

戻り値
型 説明
OutputValue

出力値

FromOnOffValue(OnOffValue)

オン/オフ値から出力値に変換する。

public static OutputValue FromOnOffValue(OnOffValue value)
パラメーター
型 名前 説明
OnOffValue value

オン/オフ値

戻り値
型 説明
OutputValue

出力値

GetHashCode()

public override readonly int GetHashCode()
戻り値
型 説明
System.Int32
オーバーライド
System.ValueType.GetHashCode()

ToOnOff()

オン/オフ値に変換する。

public readonly OnOffValue ToOnOff()
戻り値
型 説明
OnOffValue
備考

Keepの場合は例外をスローします。

例外
型 条件
System.NotSupportedException

ToString()

public override readonly string ToString()
戻り値
型 説明
System.String
オーバーライド
System.ValueType.ToString()

オペレーター

Equality(OutputValue, OutputValue)

public static bool operator ==(OutputValue a, OutputValue b)
パラメーター
型 名前 説明
OutputValue a
OutputValue b
戻り値
型 説明
System.Boolean

Explicit(OutputValue to Byte)

public static explicit operator byte (OutputValue value)
パラメーター
型 名前 説明
OutputValue value
戻り値
型 説明
System.Byte

Explicit(OutputValue to Int32)

public static explicit operator int (OutputValue value)
パラメーター
型 名前 説明
OutputValue value
戻り値
型 説明
System.Int32

Implicit(Byte to OutputValue)

public static implicit operator OutputValue(byte value)
パラメーター
型 名前 説明
System.Byte value
戻り値
型 説明
OutputValue

Implicit(Int32 to OutputValue)

public static implicit operator OutputValue(int value)
パラメーター
型 名前 説明
System.Int32 value
戻り値
型 説明
OutputValue

Inequality(OutputValue, OutputValue)

public static bool operator !=(OutputValue a, OutputValue b)
パラメーター
型 名前 説明
OutputValue a
OutputValue b
戻り値
型 説明
System.Boolean
このページの内容
トップに戻る Copyright © Y2 Corporation