2022-08-18 21:41:19 +08:00
|
|
|
/*
|
|
|
|
|
* Copyright (c) 2022, sakumisu
|
2022-04-04 15:46:22 +08:00
|
|
|
*
|
2022-08-18 21:41:19 +08:00
|
|
|
* SPDX-License-Identifier: Apache-2.0
|
2022-04-04 15:46:22 +08:00
|
|
|
*/
|
2022-08-18 21:41:19 +08:00
|
|
|
#ifndef USBH_RNDIS_H
|
|
|
|
|
#define USBH_RNDIS_H
|
2022-04-04 15:46:22 +08:00
|
|
|
|
|
|
|
|
#include "usb_cdc.h"
|
|
|
|
|
|
|
|
|
|
struct usbh_rndis {
|
|
|
|
|
struct usbh_hubport *hport;
|
|
|
|
|
|
|
|
|
|
uint8_t ctrl_intf; /* Control interface number */
|
|
|
|
|
uint8_t data_intf; /* Data interface number */
|
|
|
|
|
|
2022-09-04 20:17:32 +08:00
|
|
|
usbh_pipe_t bulkin; /* Bulk IN endpoint */
|
|
|
|
|
usbh_pipe_t bulkout; /* Bulk OUT endpoint */
|
|
|
|
|
usbh_pipe_t intin; /* Notify endpoint */
|
2022-04-04 15:46:22 +08:00
|
|
|
|
|
|
|
|
uint32_t request_id;
|
|
|
|
|
uint8_t mac[6];
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
|
extern "C" {
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
int usbh_rndis_keepalive(struct usbh_rndis *rndis_class);
|
|
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
|
}
|
|
|
|
|
#endif
|
|
|
|
|
|
2022-08-18 21:41:19 +08:00
|
|
|
#endif /* USBH_RNDIS_H */
|