1
完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
扫一扫,分享给好友
GPIFII是主模式,我尝试创建“CyuU3PyDMAX Type MalaLoin”的DMA通道(CH1)和“CyuU3PyDMAX Type MaMalAlxOUT”通道(CH0)。但是,我只能创建CH0或CH1。当我创建“CyuU3PyDMAYType MualAlxOUT”和“in in”通道时,我编写如下代码。为了启动“GPIF状态机”,我使用“CyuU3PiPIbSoCKETY0”创建了“PRODSCKID”,然后称为“CYU3PDMACHANNETSUBPRECVBUSER()”。这个过程很好。我得到了预期的功能。然而,当我使用“CyuU3PiPixSoCKET1”而不是“CyuU3PiBixSoCKo.0”时,它并没有运行。我想在DMA通道(CH1)和输出DMA通道(CH0)中创建。因此,对于CH0,我用Cyu3PiPiBixSokKe1作为C1和“CyuU3PiPixSoxKy0”。但是,在使用“CyuU3PiPIbSoCKETY1”时,它不运行。为什么?DMACGF.CUTE=512;DMACFG.PRODFADSCOUNT=0;DMACFG.DMAMODE=CyuU3PyDMAYMDEDEMY字节;DMACFG.PRODHOPETHER=0;DMACGF.CONSEADADER=0;DMACFGG通知=0;DMACFG.CB=NULL;//CH1(GPIF2到CPU)//DMACFF.PRODSCKID=CyuU3PYPIB SOCKET0O;//OK DMACFF.PRODSCK;PiPIbSoCKETY1;/NGDMAFG.CasyU3PyCulk SokKy-CONS;状态= CYU3PDMACHANILIGEN(和GLCHHANDRIGPIFIGIN,CYUU3PYDMAYTYPE,MUMALALIN,和DMACFG);//CH0(CPU到GPIF2)DMACFG.PRODSCKID = CyuU3PyPcPoCKEL PROD;DMACFG.CascSKID=CyuU3PYPIB SOCKET0;状态=CYU3PDMACHA ID=CyuU3NNELCREATE(&GLCHHANDRACEPIFRIGUT,CYU-U3PYDMAYTYPE MUROALLYOUT,和DMACFG);
以上来自于百度翻译 以下为原文 GPIFII is master mode, I try to create "CY_U3P_DMA_TYPE_MANUAL_IN" DMA channel(CH1) and "CY_U3P_DMA_TYPE_MANUAL_OUT" channel(CH0). However, I can only create CH0 or CH1. When I create "CY_U3P_DMA_TYPE_MANUAL_OUT" & " _IN" channel, I write the code as below. To start the "GPIF state machine", I created "prodSckId" by using "CY_U3P_PIB_SOCKET_0" then called "CyU3PDmaChannelSetupRecvBuffer()". This procedure is fine. I got my expected function. However, it didn't run when I used "CY_U3P_PIB_SOCKET_1" instead of "CY_U3P_PIB_SOCKET_0". I want to cretae IN DMA channel(CH1) and OUT DMA channel(CH0). So, I use "CY_U3P_PIB_SOCKET_1" for CH1 and "CY_U3P_PIB_SOCKET_0" for CH0. However, it doesn't run in case of using "CY_U3P_PIB_SOCKET_1". Why? dmaCfg.size = 512; dmaCfg.count = 0; dmaCfg.prodAvailCount = 0; dmaCfg.dmaMode = CY_U3P_DMA_MODE_BYTE; dmaCfg.prodHeader = 0; dmaCfg.prodFooter = 0; dmaCfg.consHeader = 0; dmaCfg.notification = 0; dmaCfg.cb = NULL; // CH1(GPIF2 to CPU) // dmaCfg.prodSckId = CY_U3P_PIB_SOCKET_0; // OK dmaCfg.prodSckId = CY_U3P_PIB_SOCKET_1; // NG dmaCfg.consSckId = CY_U3P_CPU_SOCKET_CONS; status = CyU3PDmaChannelCreate( &glChHandleGPIFRegIn, CY_U3P_DMA_TYPE_MANUAL_IN, &dmaCfg ); // CH0(CPU to GPIF2) dmaCfg.prodSckId = CY_U3P_CPU_SOCKET_PROD; dmaCfg.consSckId = CY_U3P_PIB_SOCKET_0; status = CyU3PDmaChannelCreate( &glChHandleGPIFRegOut, CY_U3P_DMA_TYPE_MANUAL_OUT, &dmaCfg ); |
|
相关推荐
3个回答
|
|
|
|
|
|
重新发布,再次…GPIFII是主模式,我尝试创建“CyuU3PyDMAX Type MalaLoin”的DMA通道(CH1)和“CyuU3PyDMAX Type MaMalAlxOUT”通道(CH0)。但是,我只能创建CH0或CH1。当我创建“CyuU3PyDMAYType MualAlxOUT”和“in in”通道时,我编写如下代码。为了启动“GPIF状态机”,我使用“CyuU3PiPIbSoCKETY0”创建了“PRODSCKID”,然后称为“CYU3PDMACHANNETSUBPRECVBUSER()”。这个过程很好。我得到了预期的功能。然而,当我使用“CyuU3PiPixSoCKET1”而不是“CyuU3PiBixSoCKo.0”时,它并没有运行。我想在DMA通道(CH1)和输出DMA通道(CH0)中创建。因此,对于CH0,我用Cyu3PiPiBixSokKe1作为C1和“CyuU3PiPixSoxKy0”。但是,在使用“CyuU3PiPIbSoCKETY1”时,它不运行。为什么?DMACGF.CUTE=512;DMACFG.PRODFADSCOUNT=0;DMACFG.DMAMODE=CyuU3PyDMAYMDEDEMY字节;DMACFG.PRODHOPETHER=0;DMACGF.CONSEADADER=0;DMACFGG通知=0;DMACFG.CB=NULL;//CH1(GPIF2到CPU)//DMACFF.PRODSCKID=CyuU3PYPIB SOCKET0O;//OK DMACFF.PRODSCK;PiPIbSoCKETY1;/NGDMAFG.CasyU3PyCulk SokKy-CONS;状态= CYU3PDMACHANILIGEN(和GLCHHANDRIGPIFIGIN,CYUU3PYDMAYTYPE,MUMALALIN,和DMACFG);//CH0(CPU到GPIF2)DMACFG.PRODSCKID = CyuU3PyPcPoCKEL PROD;DMACFG.CascSKID=CyuU3PYPIB SOCKET0;状态=CYU3PDMACHA ID=CyuU3NNELCREATE(&GLCHHANDRACEPIFRIGUT,CYU-U3PYDMAYTYPE MUROALLYOUT,和DMACFG);
以上来自于百度翻译 以下为原文 Re-POST, again..... GPIFII is master mode, I try to create "CY_U3P_DMA_TYPE_MANUAL_IN" DMA channel(CH1) and "CY_U3P_DMA_TYPE_MANUAL_OUT" channel(CH0). However, I can only create CH0 or CH1. When I create "CY_U3P_DMA_TYPE_MANUAL_OUT" & " _IN" channel, I write the code as below. To start the "GPIF state machine", I created "prodSckId" by using "CY_U3P_PIB_SOCKET_0" then called "CyU3PDmaChannelSetupRecvBuffer()". This procedure is fine. I got my expected function. However, it didn't run when I used "CY_U3P_PIB_SOCKET_1" instead of "CY_U3P_PIB_SOCKET_0". I want to cretae IN DMA channel(CH1) and OUT DMA channel(CH0). So, I use "CY_U3P_PIB_SOCKET_1" for CH1 and "CY_U3P_PIB_SOCKET_0" for CH0. However, it doesn't run in case of using "CY_U3P_PIB_SOCKET_1". Why? dmaCfg.size = 512; dmaCfg.count = 0; dmaCfg.prodAvailCount = 0; dmaCfg.dmaMode = CY_U3P_DMA_MODE_BYTE; dmaCfg.prodHeader = 0; dmaCfg.prodFooter = 0; dmaCfg.consHeader = 0; dmaCfg.notification = 0; dmaCfg.cb = NULL; // CH1(GPIF2 to CPU) // dmaCfg.prodSckId = CY_U3P_PIB_SOCKET_0; // OK dmaCfg.prodSckId = CY_U3P_PIB_SOCKET_1; // NG dmaCfg.consSckId = CY_U3P_CPU_SOCKET_CONS; status = CyU3PDmaChannelCreate( &glChHandleGPIFRegIn, CY_U3P_DMA_TYPE_MANUAL_IN, &dmaCfg ); // CH0(CPU to GPIF2) dmaCfg.prodSckId = CY_U3P_CPU_SOCKET_PROD; dmaCfg.consSckId = CY_U3P_PIB_SOCKET_0; status = CyU3PDmaChannelCreate( &glChHandleGPIFRegOut, CY_U3P_DMA_TYPE_MANUAL_OUT, &dmaCfg ); |
|
|
|
苏美苏
如果可能的话,请您附上您的项目源代码。 如果不是,请粘贴您正在创建这两个通道的代码部分。 谢谢, 西克里希纳。 以上来自于百度翻译 以下为原文 Sumitsu, Could you please attach your project source code, if possible. If not, please paste the part of code where you are creating both of these channels. Thanks, sai krishna. |
|
|
|
只有小组成员才能发言,加入小组>>
754个成员聚集在这个小组
加入小组2105 浏览 1 评论
1851 浏览 1 评论
3669 浏览 1 评论
请问可以直接使用来自FX2LP固件的端点向主机FIFO写入数据吗?
1786 浏览 6 评论
1536 浏览 1 评论
CY8C4025LQI在程序中调用函数,通过示波器观察SCL引脚波形,无法将pin0.4(SCL)下拉是什么原因导致?
569浏览 2评论
CYUSB3065焊接到USB3.0 TYPE-B口的焊接触点就无法使用是什么原因导致的?
423浏览 2评论
CX3连接Camera修改分辨率之后,播放器无法播出camera的画面怎么解决?
437浏览 2评论
383浏览 2评论
使用stm32+cyw43438 wifi驱动whd,WHD驱动固件加载失败的原因?
915浏览 2评论
小黑屋| 手机版| Archiver| 德赢Vwin官网 ( 湘ICP备2023018690号 )
GMT+8, 2024-12-23 16:17 , Processed in 0.885453 second(s), Total 82, Slave 66 queries .
Powered by 德赢Vwin官网 网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
德赢Vwin官网 观察
版权所有 © 湖南华秋数字科技有限公司
德赢Vwin官网 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号