打印
[DSP编程]

&portObjs[chan->portNum] C语言基础知识问答

[复制链接]
686|0
手机看帖
扫描二维码
随时随地手机跟帖
跳转到指定楼层
楼主
六安飞雨|  楼主 | 2016-9-27 11:07 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
typedef struct PortObj{
    /* port status register, contains information on whether */
    /* port is opened, configured, etc.                      */
    Int     status;//端口状态寄存器 包含端口是否打开,端口配置等等信息
    /* vp base address for all register access */
    Int     base;//视频口所有寄存器入口地址

    /* two channel objects for channel A & B.  */
    /* This is only for capture operation      */
    _VPORT_ChanObj chanObj[2];//通道对象各种参数
} PortObj;

    _VPORT_ChanObj* chan = (_VPORT_ChanObj* )chanp;//通道数据结构体指针传递
    PortObj* port = &portObjs[chan->portNum];


请问各位 &portObjs[chan->portNum]取的是哪部分的地址???整个人都晕了!!!!!!!!!!!

相关帖子

发新帖 我要提问
您需要登录后才可以回帖 登录 | 注册

本版积分规则

7

主题

39

帖子

1

粉丝