1 /*
2  * Copyright (c) 2022 Nordic Semiconductor ASA
3  *
4  * SPDX-License-Identifier: Apache-2.0
5  */
6 
7 #ifndef ZEPHYR_INCLUDE_USBD_INIT_H
8 #define ZEPHYR_INCLUDE_USBD_INIT_H
9 
10 #include <zephyr/usb/usbd.h>
11 
12 /**
13  * @brief Initialize all device configurations
14  *
15  * Iterate on a list of all configurations and initialize all
16  * configurations and interfaces. Called only once in sequence per
17  * usbd_init().
18  *
19  * @param[in] uds_ctx Pointer to a device context
20  *
21  * @return 0 on success, other values on fail.
22  */
23 int usbd_init_configurations(struct usbd_context *const uds_ctx);
24 
25 #endif /* ZEPHYR_INCLUDE_USBD_INIT_H */
26