Introduce UDC_BUF_POOL_*_DEFINE macros based on NET_BUF_POOL_*_DEFINE macros but use our own version of alloc and unref callbacks to get buffers with specific alignment and granularity. Also, do not use ref callback because it breaks alignment. Also introduces helper macros for defining and checking UDC driver-compliant static buffers. Signed-off-by: Johann Fischer <johann.fischer@nordicsemi.no>
21 lines
593 B
ReStructuredText
21 lines
593 B
ReStructuredText
.. _udc_api:
|
|
|
|
USB device controller (UDC) driver API
|
|
######################################
|
|
|
|
The USB device controller driver API is described in
|
|
:zephyr_file:`include/zephyr/drivers/usb/udc.h` and referred to
|
|
as the ``UDC driver`` API.
|
|
|
|
UDC driver API is experimental and is subject to change without notice.
|
|
It is a replacement for :ref:`usb_dc_api`. If you wish to port an existing
|
|
driver to UDC driver API, or add a new driver, please use
|
|
:zephyr_file:`drivers/usb/udc/udc_skeleton.c` as a starting point.
|
|
|
|
API reference
|
|
*************
|
|
|
|
.. doxygengroup:: udc_api
|
|
|
|
.. doxygengroup:: udc_buf
|