六安飞雨 发表于 2016-9-27 11:07

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

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;//通道对象各种参数
} PortObj;

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


请问各位 &portObjs取的是哪部分的地址???整个人都晕了!!!!!!!!!!!{:funk:}

页: [1]
查看完整版本: &portObjs[chan->portNum] C语言基础知识问答