问答 店铺
热搜: ZYNQ FPGA discuz

QQ登录

只需一步,快速开始

微信登录

微信扫码,快速开始

微信扫一扫 分享朋友圈

已有 5072 人浏览分享

开启左侧

字符通过LWIP协议发出

[复制链接]
5072 0
悬赏1积分未解决
PS端存储单元里面的数据如何打包成tcp_write能直接发送的格式///////////////////////自己写的

  rxdb = uart1_inbyte();  //uart1接收
                ////////////
        Xil_Out32(XPAR_PS7_DDR_0_S_AXI_BASEADDR,rxdb);
        RxBufferPtr= (u32 *)XPAR_PS7_DDR_0_S_AXI_BASEADDR;

        tcp_write(tpcb, RxBufferPtr, 4, 1);
        tcp_output(tpcb);
//////////////////////                ////////////////米联客教程给出

        if (!connected_pcb)
                        return;

                /* if tcp send buffer has enough space to hold the data we want to transmit from PL, then start tcp transmission*/
                if (tcp_sndbuf(tpcb) > SEND_SIZE)
                {
                        /*transmit received data through TCP*/

                        err = tcp_write(tpcb, RxBufferPtr[packet_index & 1], SEND_SIZE, copy);
                        if (err != ERR_OK) {
                                xil_printf("txperf: Error on tcp_write: %d\r\n", err);
                                connected_pcb = NULL;
                                return;



您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

0

关注

2

粉丝

2

主题
精彩推荐
热门资讯
网友晒图
图文推荐

  • 微信公众平台

  • 扫描访问手机版