libusb传输endpoint描述符

 

至于endpoint描述符,它是属于设置的,每个设置都会有endpoint描述符,也就是每个接口的设置都表示一种功能,既然是实现了功能,那就必须通过endpoint来传输数据,那到底是用到了几个endpoint呢?每个endpoint的属性是?所以每个接口的设置里就会有endpoint的描述符。
 
endpoint有个特性,要么只能input,要么只能output,但是也有一个特殊的endpoint,就是endpoint 0,每个USB设备都有这么一个endpoint0,除此endpoint,其他都只能单工的。而且每个endpoint每次传输的大小也不一样,所以就有了这么个endpoint描述符来对其进行描述

posted on 2019-10-24 10:45  lydstory  阅读(1095)  评论(0)    收藏  举报

导航