1. 原型:void *OSMboxPend(OS_EVENT *pevent, INT16U timeout, INT8U *err)
2. 参数意义:
pevent :消息邮箱
timeout: 等待时间,0[无限期等待]
err: 错误消息
3. 返回值:邮箱中的消息指针
4.调用:
1】ss=OSMboxPend(Str_Box,10,&err);
2】INT8U ERROR;
edidSendStr = OSMboxPend(EDID_mBox,0,&ERROR);
3】INT8U err;
unsigned char * msg;
msg=(unsigned char *)OSMboxPend(Com1_MBOX,0,&err); //??
5.调用成功,对应的消息返给调用函数;没有消息可返回,返回指针设置为NULL