index ca8f48dce497ffe4ab422fee87204c88c8db368f..a98902d7489e9be3b85ba48a9366e547caab2b2b 100644 (file)
#define ASP_MSG_MASTER_DEF_NUMMSGS ( 4 )
+/* Error messages for function AspMsgSend */
+#define ASP_MSG_NO_ERR ( 0 )
+#define ASP_MSG_ERR_QUEUE_ALLOC ( -1 )
+#define ASP_MSG_ERR_QUEUE_PUT ( -2 )
+#define ASP_MSG_ERR_QUEUE_GET ( -3 )
+#define ASP_MSG_ERR_QUEUE_FREE ( -4 )
+#define ASP_MSG_ERR_ACKNOWLEDGE ( -5 )
+
/* module structure */
typedef struct AspMsgMaster_Module
{
extern AspMsgMaster_Handle hAspMsgMaster;
-
+/* ASP message sending function
+ * Description: This function can be used to send message from the master processor
+ * to slave processor. It uses the global handle hAspMsgMaster for
+ * message passing.
+ */
+Int // returned error message
+AspMsgSend(
+ UInt32 sndCmd, // command that is sent from master to slave
+ UInt32 ackCmd, // acknowledgement that comes back from slave to master
+ char *sndMsgBuf, // message buffer for message sent to slave
+ char *ackMsgBuf); // message buffer for acknowledgement from slave
#endif /* _ASP_MSG_MASTER_H_ */