This commit is contained in:
2024-02-09 02:21:32 +01:00
parent eb19b044f9
commit 248aa19738

View File

@@ -61,6 +61,16 @@ uint8_t UsbDataPacket_head_sum(const UsbDataPacket* p);
bool UsbDataPacket_head_check(const UsbDataPacket* p); bool UsbDataPacket_head_check(const UsbDataPacket* p);
/**
* @brief Sends a message over USB using a data packet
*
* @param type The type of the message to be sent
* @param buffer Pointer to the USB data packet
* @param fields Pointer to the protocol buffer message descriptor
* @param msg Pointer to the message to be sent
*
* @return True if the message was successfully sent, false otherwise
*/
bool UsbDataPacketSendMessage(uint32_t type , UsbDataPacket * buffer ,const pb_msgdesc_t * fields ,const void* msg); bool UsbDataPacketSendMessage(uint32_t type , UsbDataPacket * buffer ,const pb_msgdesc_t * fields ,const void* msg);
/** /**