C# Класс ArdupilotMega.ArduinoSTK

Наследование: SerialPort
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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

Описание методов

Close() публичный Метод

public Close ( ) : bool
Результат bool

Open() публичный Метод

public Open ( ) : void
Результат void

connectAP() публичный Метод

Used to start initial connecting after serialport.open
public connectAP ( ) : bool
Результат bool

download() публичный Метод

Downloads the eeprom with the given length - set Address first
public download ( short length ) : byte[]
length short eeprom length
Результат byte[]

downloadflash() публичный Метод

public downloadflash ( short length ) : byte[]
length short
Результат byte[]

keepalive() публичный Метод

Used to keep alive the connection
public keepalive ( ) : bool
Результат bool

setaddress() публичный Метод

Sets the eeprom start read or write address
public setaddress ( int address ) : bool
address int address, must be eaven number
Результат bool

sync() публичный Метод

Syncs after a private command has been sent
public sync ( ) : bool
Результат bool

upload() публичный Метод

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
Результат bool

uploadflash() публичный Метод

public uploadflash ( byte data, int startfrom, int length, int startaddress ) : bool
data byte
startfrom int
length int
startaddress int
Результат bool