Change the comment style for the modules and the list, and use the newParser to parse...
[bertos.git] / bertos / net / pocketbus.h
index f67af83675036d19777a340ee01c2e59bbf5eee3..0f26dd907ecac87a5250eee073864684a120edcd 100644 (file)
  *
  * \author Francesco Sacchi <batt@develer.com>
  *
- * \brief pocketBus protocol interface.
+ * \brief Basical functions to use pocketBus protocol.
+ *
+ * $WIZ$ module_name = "pocketbus"
+ * $WIZ$ module_depends = "rotating_hash", "kfile"
+ * $WIZ$ module_configuration = "bertos/cfg/cfg_pocketbus.h"
  */
 
 #ifndef NET_POCKETBUS_H
 #define NET_POCKETBUS_H
 
-#include "appconfig.h" //for CONFIG_POCKETBUS_BUFLEN
+#include "cfg/cfg_pocketbus.h"        /* for CONFIG_POCKETBUS_BUFLEN */
 #include <cfg/compiler.h>
 
 #include <algo/rotating_hash.h>
@@ -76,7 +80,7 @@ typedef uint16_t pocketbus_addr_t;
  */
 typedef struct PocketBusHdr
 {
-       #define POCKETBUS_VER 1 
+       #define POCKETBUS_VER 1
        uint8_t ver;   ///< packet version
        pocketbus_addr_t addr; ///< slave address
 } PocketBusHdr;
@@ -102,7 +106,7 @@ typedef struct PocketMsg
 {
        struct PocketBusCtx *ctx; ///< pocketBus message context
        pocketbus_addr_t addr;    ///< address for received packet
-       pocketbus_len_t len;      ///< payload length 
+       pocketbus_len_t len;      ///< payload length
        const uint8_t *payload;   ///< payload data
 } PocketMsg;