[riot-notifications] [RIOT-OS/RIOT] usbus: Add CDC-ECM (Ethernet Control Model) function (#11077)

Koen Zandberg notifications at github.com
Mon Jun 10 10:31:09 CEST 2019


bergzand commented on this pull request.



> +        .fixed_len = sizeof(usb_desc_ecm_t),
+    },
+    .len_type = USBUS_HDR_LEN_FIXED,
+};
+
+static size_t _gen_cdc_descriptor(usbus_t *usbus, void *arg);
+
+static const usbus_hdr_gen_funcs_t _cdc_descriptor = {
+    .get_header = _gen_cdc_descriptor,
+    .len = {
+        .fixed_len = sizeof(usb_desc_cdc_t),
+    },
+    .len_type = USBUS_HDR_LEN_FIXED,
+};
+
+static size_t _gen_union_descriptor(usbus_t *usbus, void *arg)

Yup, Either in this PR or as an follow up it can be a simple wrapper to
```C
size_t usbus_cdc_gen_union_descriptor(usbus_t *usbus, usbus_interface_t *master, usbus_interface_t *slave);
```

-- 
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/11077#discussion_r291922726
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20190610/d5ed2c30/attachment.html>


More information about the notifications mailing list