Currently only used to generate reset and device ID DFW records from firmware update files. More...
Public Member Functions | |
PvDfwPayload (const PvString &aFilename) | |
Constructor. More... | |
PvDfwPayload (uint8_t *aBuffer, uint32_t aBufferLength) | |
Constructor. More... | |
virtual | ~PvDfwPayload () |
Destructor. | |
Static Public Member Functions | |
static PvResult | GetResetRecord (const PvString &aFirmwareFilename, uint8_t *aBuffer, uint32_t aBufferLength, uint32_t &aBytesWritten) |
Generates a reset record from a firmware update file. More... | |
static PvResult | GetDeviceIdRecord (const PvString &aFirmwareFilename, const PvString &aNewDeviceId, uint8_t *aBuffer, uint32_t aBufferLength, uint32_t &aBytesWritten) |
Generates a reset record from a firmware update file. More... | |
Currently only used to generate reset and device ID DFW records from firmware update files.
This class may eventually be instantiated to perform DFW files manipulation. However, for the time being it only provides a fixed set of static functions used to generate ready-to-use DFW records.
PvDfwPayload::PvDfwPayload | ( | const PvString & | aFilename | ) |
Constructor.
Use this constructor to work with a payload file.
[in] | aFilename | Filename of the payload file to work on. |
PvDfwPayload::PvDfwPayload | ( | uint8_t * | aBuffer, |
uint32_t | aBufferLength | ||
) |
Constructor.
Use this constructor to work with a payload memory buffer.
[in] | aBuffer | Pointer to the buffer of the payload to work on. |
[in] | aBufferLength | Buffer length in bytes. |
|
static |
Generates a reset record from a firmware update file.
[in] | aFirmwareFilename | Name of the firmware file to read the version and attributes from. |
[in] | aNewDeviceId | |
[in] | aBuffer | Memory buffer where to write the reset record. |
[in] | aBufferLength | Length of the memory buffer, in bytes. |
[out] | aBytesWritten | How many effective bytes were written to the buffer. |
|
static |
Generates a reset record from a firmware update file.
[in] | aFirmwareFilename | Name of the firmware file to read the version and attributes from. |
[in] | aBuffer | Memory buffer where to write the reset record. |
[in] | aBufferLength | Length of the memory buffer, in bytes. |
[out] | aBytesWritten | How many effective bytes were written to the buffer. |
Copyright (c) 2002-2021 Pleora Technologies Inc.
www.pleora.com