RT-Thread RTOS 1.2.0
An open source embedded real-time operating system
载入中...
搜索中...
未找到
udcd_ops结构体 参考

#include <usb_device.h>

成员变量

rt_err_t(* set_address )(rt_uint8_t address)
 
rt_err_t(* set_config )(rt_uint8_t address)
 
rt_err_t(* ep_set_stall )(rt_uint8_t address)
 
rt_err_t(* ep_clear_stall )(rt_uint8_t address)
 
rt_err_t(* ep_enable )(struct uendpoint *ep)
 
rt_err_t(* ep_disable )(struct uendpoint *ep)
 
rt_ssize_t(* ep_read_prepare )(rt_uint8_t address, void *buffer, rt_size_t size)
 
rt_ssize_t(* ep_read )(rt_uint8_t address, void *buffer)
 
rt_ssize_t(* ep_write )(rt_uint8_t address, void *buffer, rt_size_t size)
 
rt_err_t(* ep0_send_status )(void)
 
rt_err_t(* suspend )(void)
 
rt_err_t(* wakeup )(void)
 

详细描述

在文件 usb_device.h82 行定义.

结构体成员变量说明

◆ set_address

rt_err_t(* udcd_ops::set_address) (rt_uint8_t address)

在文件 usb_device.h84 行定义.

◆ set_config

rt_err_t(* udcd_ops::set_config) (rt_uint8_t address)

在文件 usb_device.h85 行定义.

◆ ep_set_stall

rt_err_t(* udcd_ops::ep_set_stall) (rt_uint8_t address)

在文件 usb_device.h86 行定义.

◆ ep_clear_stall

rt_err_t(* udcd_ops::ep_clear_stall) (rt_uint8_t address)

在文件 usb_device.h87 行定义.

◆ ep_enable

rt_err_t(* udcd_ops::ep_enable) (struct uendpoint *ep)

在文件 usb_device.h88 行定义.

◆ ep_disable

rt_err_t(* udcd_ops::ep_disable) (struct uendpoint *ep)

在文件 usb_device.h89 行定义.

◆ ep_read_prepare

rt_ssize_t(* udcd_ops::ep_read_prepare) (rt_uint8_t address, void *buffer, rt_size_t size)

在文件 usb_device.h90 行定义.

◆ ep_read

rt_ssize_t(* udcd_ops::ep_read) (rt_uint8_t address, void *buffer)

在文件 usb_device.h91 行定义.

◆ ep_write

rt_ssize_t(* udcd_ops::ep_write) (rt_uint8_t address, void *buffer, rt_size_t size)

在文件 usb_device.h92 行定义.

◆ ep0_send_status

rt_err_t(* udcd_ops::ep0_send_status) (void)

在文件 usb_device.h93 行定义.

◆ suspend

rt_err_t(* udcd_ops::suspend) (void)

在文件 usb_device.h94 行定义.

◆ wakeup

rt_err_t(* udcd_ops::wakeup) (void)

在文件 usb_device.h95 行定义.