C# 클래스 HexapiBackground.Hardware.I2CDevice

파일 보기 프로젝트 열기: Slimordium/Hexapi_Hexapod 1 사용 예제들

Private Properties

프로퍼티 타입 설명
Read bool
Read bool
ReadRegister byte[]
ReadRegisterSingle byte
Write bool
Write bool
WriteBit bool
WriteBits bool
WriteRead byte[]

공개 메소드들

메소드 설명
I2CDevice ( byte baseAddress, I2cBusSpeed busSpeed ) : System
Open ( ) : Task
ReadUshort ( byte address ) : ushort

비공개 메소드들

메소드 설명
Read ( int byteCount, byte &data ) : bool
Read ( int byteCount, byte address, byte &data ) : bool
ReadRegister ( byte register ) : byte[]
ReadRegisterSingle ( byte register ) : byte
Write ( byte dataByte ) : bool
Write ( byte register, byte dataBytes ) : bool
WriteBit ( I2CDevice device, byte regAddr, byte bitNum, byte data ) : bool
WriteBits ( I2CDevice device, byte regAddr, byte bitStart, byte length, byte data ) : bool
WriteRead ( byte dataBytes ) : byte[]

메소드 상세

I2CDevice() 공개 메소드

public I2CDevice ( byte baseAddress, I2cBusSpeed busSpeed ) : System
baseAddress byte
busSpeed I2cBusSpeed
리턴 System

Open() 공개 메소드

public Open ( ) : Task
리턴 Task

ReadUshort() 공개 메소드

public ReadUshort ( byte address ) : ushort
address byte
리턴 ushort