【发布时间】:2012-02-20 18:51:36
【问题描述】:
我正在研究嵌入式 C 。我被指针结构困住了....
结构如下..
/*structure 1*/
ZPS_tsAplApsmeBindingTableType *psAplApsmeAibBindingTable;
/*structure 2*/
typedef struct
{
ZPS_tsAplApsmeBindingTableCache* psAplApsmeBindingTableCache;
ZPS_tsAplApsmeBindingTable* psAplApsmeBindingTable;
}ZPS_tsAplApsmeBindingTableType;
/*structure3*/
typedef struct
{
uint64 u64SourceAddress;
ZPS_tsAplApsmeBindingTableEntry* pvAplApsmeBindingTableEntryForSpSrcAddr;
uint32 u32SizeOfBindingTable;
}ZPS_tsAplApsmeBindingTable;
/*structure 4*/
typedef struct
{
ZPS_tuAddress uDstAddress;
uint16 u16ClusterId;
uint8 u8DstAddrMode;
uint8 u8SourceEndpoint;
uint8 u8DestinationEndPoint;
} ZPS_tsAplApsmeBindingTableEntry;
我已经声明了ZPS_tsAplApsmeBindingTableType *p;,但我想访问ZPS_tsAplApsmeBindingTableEntry 结构值...我该怎么做?
谁能告诉我两者的区别
ZPS_tsAplApsmeBindingTable* psAplApsmeBindingTable
和
ZPS_tsAplApsmeBindingTable *psAplApsmeBindingTable;
谢谢....
【问题讨论】:
-
我坚持你的命名约定!哇。
标签: c pointers embedded structure zigbee