C# Class S7.Net.Types.Boolean

Contains the methods to read, set and reset bits inside bytes
Afficher le fichier Open project: killnine/s7netplus

Méthodes publiques

Méthode Description
ClearBit ( byte value, int bit ) : byte

Resets the value of a bit to 0 (false), given the address of the bit

GetValue ( byte value, int bit ) : bool

Returns the value of a bit in a bit, given the address of the bit

SetBit ( byte value, int bit ) : byte

Sets the value of a bit to 1 (true), given the address of the bit

Method Details

ClearBit() public static méthode

Resets the value of a bit to 0 (false), given the address of the bit
public static ClearBit ( byte value, int bit ) : byte
value byte
bit int
Résultat byte

GetValue() public static méthode

Returns the value of a bit in a bit, given the address of the bit
public static GetValue ( byte value, int bit ) : bool
value byte
bit int
Résultat bool

SetBit() public static méthode

Sets the value of a bit to 1 (true), given the address of the bit
public static SetBit ( byte value, int bit ) : byte
value byte
bit int
Résultat byte