C# Class S7.Net.Types.Boolean

Contains the methods to read, set and reset bits inside bytes
Mostra file Open project: killnine/s7netplus

Public Methods

Method 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 method

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
return byte

GetValue() public static method

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
return bool

SetBit() public static method

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
return byte