<feed xmlns='http://www.w3.org/2005/Atom'>
<title>cherryusb.git/class/cdc/usbd_cdc_ncm.h, branch dev</title>
<subtitle>Unnamed repository; edit this file 'description' to name the repository.</subtitle>
<id>http://cgit.235523.xyz/cherryusb.git/atom/class/cdc/usbd_cdc_ncm.h?h=dev</id>
<link rel='self' href='http://cgit.235523.xyz/cherryusb.git/atom/class/cdc/usbd_cdc_ncm.h?h=dev'/>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/cherryusb.git/'/>
<updated>2026-08-17T06:48:32Z</updated>
<entry>
<title>feat(class/cdc/usbd_ncm): 添加usb device ncm功能 (#433)</title>
<updated>2026-08-17T06:48:32Z</updated>
<author>
<name>54fire</name>
<email>54fireljw@gmail.com</email>
</author>
<published>2026-08-17T06:48:32Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/cherryusb.git/commit/?id=60911ffd9ed6aaacf768dfd557508d0b40170664'/>
<id>urn:sha1:60911ffd9ed6aaacf768dfd557508d0b40170664</id>
<content type='text'>
* 添加usb device ncm功能

* fix(class/cdc/usbd_ncm): address review findings

- fix compile failure when CONFIG_USBDEV_CDC_NCM_USING_LWIP is disabled
- fix GET/SET_NTB_INPUT_SIZE operating on the OUT direction size, and
  honor the negotiated IN limit in the transmit path
- set tx busy flag before submitting the transfer to avoid a race that
  could block transmit permanently
- follow the ndp chain via wNextNdpIndex so chained datagrams are not
  dropped, and access ntb fields with LE helpers instead of assuming a
  little-endian target
- reject oversized frames instead of transmitting truncated ones
- register endpoints only once when initializing both interfaces
- wait for tx completion with a timeout in the demo instead of an
  unbounded busy wait
- make usbd_cdc_ncm.h self-contained

Co-Authored-By: Claude &lt;noreply@anthropic.com&gt;

---------

Co-authored-by: Claude &lt;noreply@anthropic.com&gt;</content>
</entry>
</feed>
