11.07.2015 Views

IAR PowerPac RTOS User Guide

IAR PowerPac RTOS User Guide

IAR PowerPac RTOS User Guide

SHOW MORE
SHOW LESS
  • No tags were found...

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

MailboxesMailboxes API function overviewRoutineOS_CREATEMB()OS_PutMail()OS_PutMail1()OS_PutMailCond()OS_PutMailCond1()OS_PutMailFront()OS_PutMailFront1()OS_PutMailFrontCond()OS_PutMailFrontCond1()OS_GetMail()OS_GetMail1()OS_GetMailCond()OS_GetMailCond1()OS_GetMailTimed()OS_WaitMail()OS_ClearMB()OS_GetMessageCnt()OS_DeleteMB()Table 59: Mailboxes API overviewOS_CREATEMB()DescriptionMacro that creates a new mailbox.PrototypeExplanationMacro that creates a new mailbox.void OS_CREATEMB (OS_MAILBOX* pMB,unsigned char sizeofMsg,unsigned int maxnofMsg,void*pMsg);)ParameterDescriptionStores a new message of a predefined size in a mailbox.Stores a new single-byte message in a mailbox.Stores a new message of a predefined size in a mailbox, if the mailbox is able to acceptone more message.Stores a new single-byte message in a mailbox, if the mailbox is able to accept onemore message.Stores a new message of a predefined size into a mailbox in front of all othermessages. This new message will be retrieved first.Stores a new single-byte message into a mailbox in front of all other messages. Thisnew message will be retrieved first.Stores a new message of a predefined size into a mailbox in front of all othermessages, if the mailbox is able to accept one more message.Stores a new single-byte message into a mailbox in front of all other messages, if themailbox is able to accept one more message.Retrieves a new message of a predefined size from a mailbox.Retrieves a new single-byte message from a mailbox.Retrieves a new message of a predefined size from a mailbox, if a message is available.Retrieves a new single-byte message from a mailbox, if a message is available.Retrieves a new message of a predefined size from a mailbox, if a message is availablewithin a given time.Waits until a mail is available, but does not retrieve the message from the mailbox.Clears all messages in a specified mailbox.Returns number of messages currently in a specified mailbox.Deletes a specified mailbox.pMBPointer to a data structure of type OS_MAILBOX reserved for managing the mailbox.sizeofMsg Size of a message in bytes. ( 1

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!