From 248aa19738ecc191e651e14cefa2577dabfd73ac Mon Sep 17 00:00:00 2001 From: Oliver Walter Date: Fri, 9 Feb 2024 02:21:32 +0100 Subject: [PATCH] doc --- Application/Tasks/UsbDataHandler.h | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Application/Tasks/UsbDataHandler.h b/Application/Tasks/UsbDataHandler.h index 95d3a5d..0e4f40f 100644 --- a/Application/Tasks/UsbDataHandler.h +++ b/Application/Tasks/UsbDataHandler.h @@ -61,6 +61,16 @@ uint8_t UsbDataPacket_head_sum(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); /**