C# 클래스 SendToC2.C2Flash

상속: System.IO.Ports.SerialPort
파일 보기 프로젝트 열기: x893/C2.Flash 1 사용 예제들

공개 메소드들

메소드 설명
C2Flash ( string portname ) : System
C2Flash ( string portname, int baud ) : System
FlashRead ( uint address, int length ) : byte[]
FlashWrite ( uint Address, byte bytes ) : C2_ERROR
Initialize ( ) : C2_ERROR
SendCommand ( string cmd ) : C2_ERROR
SendCommand ( string cmd, int timeout_ms ) : C2_ERROR

Send command to C2 flasher and wait response

비공개 메소드들

메소드 설명
Bin2Hex ( byte bytes ) : string
Data_Received ( object sender, System.IO.Ports.SerialDataReceivedEventArgs e ) : void
FlashCompare ( byte bytes, uint Address ) : bool
Hex2Bin ( string hex ) : byte
Hex2Nibble ( char ch ) : byte

메소드 상세

C2Flash() 공개 메소드

public C2Flash ( string portname ) : System
portname string
리턴 System

C2Flash() 공개 메소드

public C2Flash ( string portname, int baud ) : System
portname string
baud int
리턴 System

FlashRead() 공개 메소드

public FlashRead ( uint address, int length ) : byte[]
address uint
length int
리턴 byte[]

FlashWrite() 공개 메소드

public FlashWrite ( uint Address, byte bytes ) : C2_ERROR
Address uint
bytes byte
리턴 C2_ERROR

Initialize() 공개 메소드

public Initialize ( ) : C2_ERROR
리턴 C2_ERROR

SendCommand() 공개 메소드

public SendCommand ( string cmd ) : C2_ERROR
cmd string
리턴 C2_ERROR

SendCommand() 공개 메소드

Send command to C2 flasher and wait response
public SendCommand ( string cmd, int timeout_ms ) : C2_ERROR
cmd string command
timeout_ms int #0 for timeout or =0 for infinite timeout
리턴 C2_ERROR