Edit online

数据结构设计

31 Jan 2024
Read time: 1 minute(s)

aic_usb_ep_ops

AIC UDC 驱动核心的数据结构为 usb_ep_ops, 实现了 op 操作的相关函数:c
static const struct usb_ep_ops aic_usb_ep_ops = {
    .enable                 = aic_ep_enable,
    .disable                = aic_ep_disable,
    .alloc_request          = aic_ep_alloc_request,
    .free_request           = aic_ep_free_request,
    .queue                  = aic_ep_queue_request,
    .dequeue                = aic_ep_dequeue_request,
    .set_halt               = aic_ep_sethalt,
};