Method | Description | |
---|---|---|
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
|
Method | Description | |
---|---|---|
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 |
public C2Flash ( string portname, int baud ) : System | ||
portname | string | |
baud | int | |
return | System |
public FlashRead ( uint address, int length ) : byte[] | ||
address | uint | |
length | int | |
return | byte[] |
public FlashWrite ( uint Address, byte bytes ) : C2_ERROR | ||
Address | uint | |
bytes | byte | |
return | C2_ERROR |
public SendCommand ( string cmd, int timeout_ms ) : C2_ERROR | ||
cmd | string | command |
timeout_ms | int | #0 for timeout or =0 for infinite timeout |
return | C2_ERROR |