fixed and adaptions
This commit is contained in:
@@ -93,53 +93,17 @@ void UsbDataHandler_Runner();
|
||||
*/
|
||||
int UsbDataHandler_RxCallback(uint8_t* Buf, uint32_t Len);
|
||||
|
||||
/**
|
||||
* @brief Callback function that is invoked when firmware update message is received.
|
||||
*
|
||||
* Other parts of the software can implement this function to handle the start of a firmware update.
|
||||
*
|
||||
* @param msg A pointer to the message related to the firmware start.
|
||||
* @param length The length of the message, in bytes.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
void DataClbk_FirmwareStart(void* msg, uint32_t length);
|
||||
|
||||
/**
|
||||
* @brief Callback function that is invoked when a firmware package message is received.
|
||||
*
|
||||
* Other parts of the software can implement this function to handle each received firmware package.
|
||||
*
|
||||
* @param msg A pointer to the message related to the received firmware package.
|
||||
* @param length The length of the message, in bytes.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
void DataClbk_FirmwarePackage(void* msg, uint32_t length);
|
||||
|
||||
/**
|
||||
* @brief Callback function that is invoked when a firmware package acknowledgment message is received.
|
||||
*
|
||||
* Other parts of the software can implement this function to handle the acknowledgment of a received firmware package.
|
||||
*
|
||||
* @param msg A pointer to the message related to the firmware package acknowledgment.
|
||||
* @param length The length of the message, in bytes.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
void DataClbk_FirmwareStart(void* msg, uint32_t length);
|
||||
void DataClbk_FirmwarePackage(void* msg, uint32_t length);
|
||||
void DataClbk_FirmwarePackageAck(void* msg, uint32_t length);
|
||||
|
||||
/**
|
||||
* @brief Callback function that is invoked when firmware update done message.
|
||||
*
|
||||
* Other parts of the software can implement this function to handle the completion of a firmware update.
|
||||
*
|
||||
* @param msg A pointer to the message related to the completion of the firmware update.
|
||||
* @param length The length of the message, in bytes.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
void DataClbk_FirmwareDone(void* msg, uint32_t length);
|
||||
void DataClbk_ResponseDeviceList(void* msg, uint32_t length);
|
||||
void DataClbk_RequestDeviceList(void* msg, uint32_t length);
|
||||
|
||||
|
||||
#include "firmware.pb.h"
|
||||
void USBDataResonse(void * msg, const pb_msgdesc_t *fields, UsbPackageType typeid);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user