TI中文支持网
TI专业的中文技术问题搜集分享网站

cc1310无线发送函数问题

cc1310采用ti15.4协议栈,调用sendmessage函数的效果是什么?(以下二选一)

1.将发送信息指令加入rf队列并执行下一条代码。

2.将发送信息指令加入rf队列并等待发送完成再执行下一条代码。

Felix ZF:

send message函数应该是非阻塞式的。

/*** Sends a message to a registered server.* @param srcEntity id of the sender of the message* @param destService id* @param format Message format:*@ref ICALL_MSG_FORMAT_KEEP,*@ref ICALL_MSG_FORMAT_1ST_CHAR_TASK_ID or*@ref ICALL_MSG_FORMAT_3RD_CHAR_TASK_ID.*Message format indicates whether and which*field of the message must be transformed*into a implementation specific sender*identity for an external image.<br>*When a service message interface is defined,*it may contain a field that is not understood*by the client but only understood by*the system on the server's side.*The format provides an information to the*messaging system on such a server*so that it can generically tag necessary*information to the message.* @param msgpointer to the message body to send.<br>*Note that if message is successfully sent,*the caller should not reference the message any*longer.<br>*However, if the function fails, the caller*still owns the reference to the message.*That is, caller may attempt another send,*or may free the memory block, etc.* @return @ref ICALL_ERRNO_SUCCESS when successful.<br>*@ref ICALL_ERRNO_INVALID_SERVICE when the 'dest'*is unregistered service.<br>*@ref ICALL_ERRNO_INVALID_PARAMETER when the 'src'*is an out of range entity id or when 'dest' is*is a service that does not receive a message*(such as ICall primitive service).<br>*Note that as far as 'src' is within the range,*this function won't notice the 'src' entity id*as invalid.*/
static ICall_Errno
ICall_sendServiceMsg(ICall_EntityID src,ICall_ServiceEnum dest,ICall_MSGFormat format, void *msg)

赞(0)
未经允许不得转载:TI中文支持网 » cc1310无线发送函数问题
分享到: 更多 (0)