开发平台(Platform): (Ex: Win10, Linux, ...)
8051
编译器(Ex: GCC, clang, VC++...)+目标环境(跟开发平台不同的话需列出)
C51
问题(Question):
请问如何透过call by reference将struct中的pointer member传给function
例如:
typedef struct _AA
{
unsigned char Addr;
unsigned char bIndex;
unsigned char bLenAddrW;
unsigned char *pDatAddrW;
unsigned char bFlag; //bit0: Notify Busy
//bit1: CmdByte Get
//bit2: Address Write
}_AAA;
unsigned char Dat[10];
void func1(unsigned char*pLenAddrW, unsigned char**ppDatAddrW)
{
*pLenAddrW = aaa;
*ppDatAddrW = Dat;
}
void main(void)
{
_AAA AAA;
_AAA*pAAA = &AAA;
func1(???, ???); //请问要怎么透过pAAA将struct member的Address传给func1??
}