BMeasure-lib 0.7.9 |
Dfu Class Reference
#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()
◆ init()
◆ reset()
BError Dfu::reset | ( | ) |
Reset.
◆ upload()
◆ upload_cmd()
◆ validateFile()
Check if file is valid firmware.
Member Data Documentation
◆ oconnected
| private |
◆ ocontext
| private |
◆ odev
| private |
◆ overbose
| private |
The documentation for this class was generated from the following files:
Generated by 1.8.15