最新免费av在线观看,亚洲综合一区成人在线,中文字幕精品无码一区二区三区,中文人妻av高清一区二区,中文字幕乱偷无码av先锋

RX4000V4 Datasheet

  • RX4000V4

  • RX4000(uITRON4.0) Basics User's Manual | User's Manual[02/...

  • 309頁(yè)

  • ETC

掃碼查看芯片數(shù)據(jù)手冊(cè)

上傳產(chǎn)品規(guī)格書

PDF預(yù)覽

CHAPTER 5 SYNCHRONOUS COMMUNICATION MANAGEMENT
5.5.5
Receiving messages
Messages are received by issuing one of the service calls rcv_mbx, trcv_mbx, or (i)prcv_mbx.
If there is a message reception request, the kernel checks the message queue of the mailbox. If there are
unreceived messages registered in the queue, the message at the top of the queue is released and passed to the task
with that address. If there are no messages registered in the queue, when the service calls rcv_mbx and trcv_mbx
are issued, the task is put into a mail reception waiting state: until mail is received in the case of the former, and until
either mail is received or a specified time has elapsed in the case of the latter. The issuance of (i)prcv_mbx results in
message reception failure, and the error code E_TMOUT is returned, indicating that polling failed.
Tasks waiting to receive messages are registered in the waiting task queue of the mailbox. Because multiple tasks
can be waiting in the waiting task queue of the same mailbox, a request for message reception sent to a mailbox in
whose waiting task queue tasks are already waiting will not result in an error; the task will simply be put in the
message reception waiting state.
Tasks can be registered in the waiting task queue of the mailbox in two ways. In the case of mailboxes with an
attribute of TA_TPRI, tasks are registered in the queue in order of their respective priorities, and in the case of
mailboxes with an attribute of TA_TFIFO, tasks are registered in the order in which message reception requests were
sent. Tasks are released from waiting in order activation from the top of the queue.
5.5.6
Obtaining mailbox information
Mailbox information such as the presence or absence of a waiting task can be obtained by using the service calls
ref_mbx and iref_mbx. For details of each service call, refer to
CHAPTER 13.
5.5.7
Examples of message communication using mailboxes
Some examples of communication using mailboxes are shown below.
(1) cre_mbx is issued creating a mailbox.
(2) Task A issues rcv_mbx to receive a message and a message reception request is sent to mailbox X. However,
because no messages have been sent to mailbox X, task A is put in the message reception waiting state.
Running state
Mailbox X
Reception request
Task A
rcv_mbx
Message reception impossible
Mailbox X
Registration
Waiting state
Task A
62
User鈥檚 Manual U14833EJ2V0UM

RX4000V4相關(guān)型號(hào)PDF文件下載

您可能感興趣的PDF文件資料

熱門IC型號(hào)推薦

掃碼下載APP,
一鍵連接廣大的電子世界。

在線人工客服

買家服務(wù):
賣家服務(wù):
技術(shù)客服:

0571-85317607

網(wǎng)站技術(shù)支持

13606545031

客服在線時(shí)間周一至周五
9:00-17:30

關(guān)注官方微信號(hào),
第一時(shí)間獲取資訊。

建議反饋
返回頂部

建議反饋

聯(lián)系人:

聯(lián)系方式:

按住滑塊,拖拽到最右邊
>>
感謝您向阿庫(kù)提出的寶貴意見,您的參與是維庫(kù)提升服務(wù)的動(dòng)力!意見一經(jīng)采納,將有感恩紅包奉上哦!