Electronics and Software
Engineering Innovation
BMeasure-lib  0.7.9

The Dfu access class. More...

#include <Dfu.h>

Public Member Functions

 Dfu ()
 
 ~Dfu ()
 
BError init (Bool verbose)
 Initialise. More...
 
BError detectDevice ()
 Check if DFU devuce exists. More...
 
BError validateFile (BString filename, BUInt type, BString &version)
 Check if file is valid firmware. More...
 
BError connect ()
 Connect to USB DFU device. More...
 
BError disconnect ()
 Disconnect from USB DFU device. More...
 
BError reset ()
 Reset. More...
 
BError clearStatus ()
 
BError getStatus (DfuStatus &status)
 
BError upload (BString filename, BUInt type)
 Upload a file. More...
 
BError upload_cmd (BUInt8 cmd, BUInt32 address)
 

Private Attributes

Bool overbose
 
Bool oconnected
 
libusb_context * ocontext
 
libusb_device_handle * odev
 

Detailed Description

The Dfu access class.

Constructor & Destructor Documentation

◆ Dfu()

Dfu::Dfu ( )

◆ ~Dfu()

Dfu::~Dfu ( )

Member Function Documentation

◆ clearStatus()

BError Dfu::clearStatus ( )

◆ connect()

BError Dfu::connect ( )

Connect to USB DFU device.

◆ detectDevice()

BError Dfu::detectDevice ( )

Check if DFU devuce exists.

◆ disconnect()

BError Dfu::disconnect ( )

Disconnect from USB DFU device.

◆ getStatus()

BError Dfu::getStatus ( DfuStatus status)

◆ init()

BError Dfu::init ( Bool  verbose)

Initialise.

◆ reset()

BError Dfu::reset ( )

Reset.

◆ upload()

BError Dfu::upload ( BString  filename,
BUInt  type 
)

Upload a file.

◆ upload_cmd()

BError Dfu::upload_cmd ( BUInt8  cmd,
BUInt32  address 
)

◆ validateFile()

BError Dfu::validateFile ( BString  filename,
BUInt  type,
BString version 
)

Check if file is valid firmware.

Member Data Documentation

◆ oconnected

Bool Dfu::oconnected
private

◆ ocontext

libusb_context* Dfu::ocontext
private

◆ odev

libusb_device_handle* Dfu::odev
private

◆ overbose

Bool Dfu::overbose
private

The documentation for this class was generated from the following files: