TopCon API  1.1.0
.Net API to control TopCon devices
CH.Regatron.HPPS.Device.TopCon.DeviceControlMode Struct Reference

Gets Data about the actual state of device control mode. More...

Public Member Functions

 DeviceControlMode (UInt32 controlMode)
 Set device control mode More...
 

Public Attributes

bool IsVoltage => Voltage == (byte)(Voltage & _controlMode)
 
bool IsCurrent => Current == (byte)(Current & _controlMode)
 Device is in current control mode. More...
 
bool IsPower => Power == (byte)(Power & _controlMode)
 Device is in power control mode. More...
 
bool IsVoltageSense => VoltageSense == (byte)(VoltageSense & _controlMode)
 Device is in voltage sense control mode. More...
 
bool IsPowerSense => PowerSense == ((byte)PowerSense & _controlMode)
 Device is in power sense control mode. More...
 

Detailed Description

Gets Data about the actual state of device control mode.

Constructor & Destructor Documentation

◆ DeviceControlMode()

CH.Regatron.HPPS.Device.TopCon.DeviceControlMode.DeviceControlMode ( UInt32  controlMode)

Set device control mode

Parameters
controlMode

Member Data Documentation

◆ IsCurrent

bool CH.Regatron.HPPS.Device.TopCon.DeviceControlMode.IsCurrent => Current == (byte)(Current & _controlMode)

Device is in current control mode.

◆ IsPower

bool CH.Regatron.HPPS.Device.TopCon.DeviceControlMode.IsPower => Power == (byte)(Power & _controlMode)

Device is in power control mode.

◆ IsPowerSense

bool CH.Regatron.HPPS.Device.TopCon.DeviceControlMode.IsPowerSense => PowerSense == ((byte)PowerSense & _controlMode)

Device is in power sense control mode.

◆ IsVoltage

bool CH.Regatron.HPPS.Device.TopCon.DeviceControlMode.IsVoltage => Voltage == (byte)(Voltage & _controlMode)

◆ IsVoltageSense

bool CH.Regatron.HPPS.Device.TopCon.DeviceControlMode.IsVoltageSense => VoltageSense == (byte)(VoltageSense & _controlMode)

Device is in voltage sense control mode.