[riot-notifications] [RIOT-OS/RIOT] net: add Skald, a BLE advertising stack (#8884)

Hauke Petersen notifications at github.com
Thu Apr 5 16:34:17 CEST 2018


haukepetersen commented on this pull request.



> + */
+#define NETDEV_BLE_CRC_MASK         (0x00ffffff)
+
+/**
+ * @brief   Flag for marking a correct CRC on packet reception
+ */
+#define NETDEV_BLE_CRC_OK           (0x80000000)
+
+/**
+ * @brief   BLE packet structure (as defined by the BLE standard)
+ */
+typedef struct __attribute__((packed)) {
+    uint8_t flags;                          /**< header flags */
+    uint8_t len;                            /**< actual length of PDU */
+    uint8_t pdu[NETDEV_BLE_PDU_MAXLEN];     /**< protocol data unit (PDU) */
+} netdev_ble_pkt_t;

this packet structure is indeed defined by the BT standard, but used in this form also as essential type in the netdev interface. So I still think it belongs here!

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/RIOT-OS/RIOT/pull/8884#discussion_r179483608
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20180405/979dac1c/attachment.html>


More information about the notifications mailing list