zephyr/subsys/usb/device_next/usbd_init.h
Johann Fischer cb8b9ad38a usb: add new experimental USB device stack
The device supprt brings support for multiple stack instances,
multiple configuration, asynchronous transfer model, ability to
change most of the properties of a device at runtime and
the composition of configuration and classes at runtime.

The stack requires new UDC driver API and is not compatible
with old driver API (usb_dc_). The classes (functions) of old
(current) USB device stack cannot be used with new ones and must
be ported.

Signed-off-by: Johann Fischer <johann.fischer@nordicsemi.no>
2022-12-02 12:55:18 +01:00

26 lines
610 B
C

/*
* Copyright (c) 2022 Nordic Semiconductor ASA
*
* SPDX-License-Identifier: Apache-2.0
*/
#ifndef ZEPHYR_INCLUDE_USBD_INIT_H
#define ZEPHYR_INCLUDE_USBD_INIT_H
#include <zephyr/usb/usbd.h>
/**
* @brief Initialize all device configurations
*
* Iterate on a list of all configurations and initialize all
* configurations and interfaces. Called only once in sequence per
* usbd_init().
*
* @param[in] uds_ctx Pointer to a device context
*
* @return 0 on success, other values on fail.
*/
int usbd_init_configurations(struct usbd_contex *const uds_ctx);
#endif /* ZEPHYR_INCLUDE_USBD_INIT_H */