C# 클래스 S7.Net.Types.Boolean

Contains the methods to read, set and reset bits inside bytes
파일 보기 프로젝트 열기: killnine/s7netplus

공개 메소드들

메소드 설명
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

메소드 상세

ClearBit() 공개 정적인 메소드

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
리턴 byte

GetValue() 공개 정적인 메소드

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
리턴 bool

SetBit() 공개 정적인 메소드

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
리턴 byte