C# Class ArdupilotMega.ArduinoSTK

Inheritance: SerialPort
Show file Open project: jdrones/jD_IOBoard_Configurator Class Usage Examples

Public Methods

Method Description
Close ( ) : bool
Open ( ) : void
connectAP ( ) : bool

Used to start initial connecting after serialport.open

download ( short length ) : byte[]

Downloads the eeprom with the given length - set Address first

downloadflash ( short length ) : byte[]
keepalive ( ) : bool

Used to keep alive the connection

setaddress ( int address ) : bool

Sets the eeprom start read or write address

sync ( ) : bool

Syncs after a private command has been sent

upload ( byte data, short startfrom, short length, short startaddress ) : bool

Upload data at preset address

uploadflash ( byte data, int startfrom, int length, int startaddress ) : bool

Method Details

Close() public method

public Close ( ) : bool
return bool

Open() public method

public Open ( ) : void
return void

connectAP() public method

Used to start initial connecting after serialport.open
public connectAP ( ) : bool
return bool

download() public method

Downloads the eeprom with the given length - set Address first
public download ( short length ) : byte[]
length short eeprom length
return byte[]

downloadflash() public method

public downloadflash ( short length ) : byte[]
length short
return byte[]

keepalive() public method

Used to keep alive the connection
public keepalive ( ) : bool
return bool

setaddress() public method

Sets the eeprom start read or write address
public setaddress ( int address ) : bool
address int address, must be eaven number
return bool

sync() public method

Syncs after a private command has been sent
public sync ( ) : bool
return bool

upload() public method

Upload data at preset address
public upload ( byte data, short startfrom, short length, short startaddress ) : bool
data byte array to read from
startfrom short start array index
length short length to send
startaddress short sets eeprom start programing address
return bool

uploadflash() public method

public uploadflash ( byte data, int startfrom, int length, int startaddress ) : bool
data byte
startfrom int
length int
startaddress int
return bool