X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=bertos%2Fnet%2Fpocketbus.h;h=0f26dd907ecac87a5250eee073864684a120edcd;hb=37efb5bdc0504ab6df2e8db0635c9c6f7477e23e;hp=ed970cd94ec8ef9f64e78edbaab27f886dbf9b9c;hpb=c22fe24a0da896a52dbc3882390ec18a440ef56a;p=bertos.git diff --git a/bertos/net/pocketbus.h b/bertos/net/pocketbus.h index ed970cd9..0f26dd90 100644 --- a/bertos/net/pocketbus.h +++ b/bertos/net/pocketbus.h @@ -33,7 +33,11 @@ * * \author Francesco Sacchi * - * \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 @@ -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;