HF-BNO08x  0.1.0-dev
Loading...
Searching...
No Matches
MemoryFirmware Class Reference

HcBin_t implementation for firmware stored in memory. More...

#include <MemoryFirmware.hpp>

Public Member Functions

 MemoryFirmware (const uint8_t *data, uint32_t len, const char *format="BNO_V1", const char *part="unknown", uint32_t packet_len=0)
 
const HcBin_thcbin () const
 

Detailed Description

HcBin_t implementation for firmware stored in memory.

Construct with a pointer to the binary image and its length. Optional strings describe the format and part number. Pass the returned handle to dfu() to stream the image to the device.

This adapter is single-session per thread: open() binds the most recently selected MemoryFirmware instance for that thread and rejects nested opens.

Constructor & Destructor Documentation

◆ MemoryFirmware()

MemoryFirmware::MemoryFirmware ( const uint8_t * data,
uint32_t len,
const char * format = "BNO_V1",
const char * part = "unknown",
uint32_t packet_len = 0 )
inline

Member Function Documentation

◆ hcbin()

const HcBin_t & MemoryFirmware::hcbin ( ) const
inline

Obtain an HcBin handle for the DFU helpers.


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