C# Class ArdupilotMega.ArduinoSTK

Inheritance: SerialPort
Afficher le fichier Open project: jdrones/jD_IOBoard_Configurator Class Usage Examples

Méthodes publiques

Méthode 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 méthode

public Close ( ) : bool
Résultat bool

Open() public méthode

public Open ( ) : void
Résultat void

connectAP() public méthode

Used to start initial connecting after serialport.open
public connectAP ( ) : bool
Résultat bool

download() public méthode

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

downloadflash() public méthode

public downloadflash ( short length ) : byte[]
length short
Résultat byte[]

keepalive() public méthode

Used to keep alive the connection
public keepalive ( ) : bool
Résultat bool

setaddress() public méthode

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

sync() public méthode

Syncs after a private command has been sent
public sync ( ) : bool
Résultat bool

upload() public méthode

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
Résultat bool

uploadflash() public méthode

public uploadflash ( byte data, int startfrom, int length, int startaddress ) : bool
data byte
startfrom int
length int
startaddress int
Résultat bool