| BMeasure-lib 1.3.0     | 
Dfu Class Reference
#include <Dfu.h>
| Public Member Functions | |
| Dfu () | |
| ~Dfu () | |
| BError | init (Bool verbose) | 
| Initialise. | |
| BError | detectDevice () | 
| Check if DFU devuce exists. | |
| BError | validateFile (BString filename, BUInt type, BString &version) | 
| Check if file is valid firmware. | |
| BError | connect () | 
| Connect to USB DFU device. | |
| BError | disconnect () | 
| Disconnect from USB DFU device. | |
| BError | reset () | 
| Reset. | |
| BError | clearStatus () | 
| BError | getStatus (DfuStatus &status) | 
| BError | upload (BString filename, BUInt type) | 
| Upload a file. | |
| 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

