Aseba::BootloaderInterface Class Reference

Manage interactions with an aseba-compatible bootloader. More...

List of all members.

Public Member Functions

 BootloaderInterface (Stream *stream, int dest)
 Create an interface to bootloader with id dest using a socket.
int getPageSize ()
 Return the size of a page.
void readHex (const string &fileName)
 Read an hex file.
bool readPage (unsigned pageNumber, uint8 *data)
 Read a page.
void writeHex (const string &fileName, bool reset)
 Write an hex file.
bool writePage (int pageNumber, const uint8 *data)
 Write a page.

Protected Attributes

int dest
unsigned pagesCount
unsigned pageSize
unsigned pagesStart
Streamstream

Detailed Description

Manage interactions with an aseba-compatible bootloader.

Definition at line 128 of file cmd.cpp.


Constructor & Destructor Documentation

Aseba::BootloaderInterface::BootloaderInterface ( Stream stream,
int  dest 
) [inline]

Create an interface to bootloader with id dest using a socket.

Definition at line 132 of file cmd.cpp.


Member Function Documentation

int Aseba::BootloaderInterface::getPageSize (  )  [inline]

Return the size of a page.

Definition at line 141 of file cmd.cpp.

void Aseba::BootloaderInterface::readHex ( const string &  fileName  )  [inline]

Read an hex file.

Definition at line 370 of file cmd.cpp.

bool Aseba::BootloaderInterface::readPage ( unsigned  pageNumber,
uint8 data 
) [inline]

Read a page.

Definition at line 144 of file cmd.cpp.

void Aseba::BootloaderInterface::writeHex ( const string &  fileName,
bool  reset 
) [inline]

Write an hex file.

Definition at line 288 of file cmd.cpp.

bool Aseba::BootloaderInterface::writePage ( int  pageNumber,
const uint8 data 
) [inline]

Write a page.

Definition at line 200 of file cmd.cpp.


Member Data Documentation

Definition at line 396 of file cmd.cpp.

Definition at line 399 of file cmd.cpp.

Definition at line 397 of file cmd.cpp.

Definition at line 398 of file cmd.cpp.

Definition at line 395 of file cmd.cpp.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines


asebaros
Author(s): $author
autogenerated on Mon Sep 5 08:42:12 2011