《USB3.0设计资源_cypress芯片程序解读》.docVIP

  • 64
  • 0
  • 约2.92万字
  • 约 22页
  • 2015-10-09 发布于河南
  • 举报

《USB3.0设计资源_cypress芯片程序解读》.doc

《USB3.0设计资源_cypress芯片程序解读》.doc

CYPEESS USB3.0程序解读 解读同步FIFO的一个例子。 生产者,消费者 首先看DMA的回调函数: typedef void (*CyU3PDmaCallback_t) ( CyU3PDmaChannel *handle, /* Handle to the DMA channel. */ CyU3PDmaCbType_t type, /* The type of callback notification being generated. */ CyU3PDmaCBInput_t *input /* Union that contains data related to the notification. The input parameter will be a pointer to a CyU3PDmaBuffer_t variable in the cases where the callback type is CY_U3P_DMA_CB_RECV_CPLT or CY_U3P_DMA_CB_PROD_EVENT. */ ); 根据其说明,解读如下: 对每一个DMA通道,回调函数必须被注册。如果没有注册或者相应的通知事件没有被注册,则回调函数不会被执行。 回调函数不能被阻塞。即不能用SL

文档评论(0)

1亿VIP精品文档

相关文档