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

RX4000V4 Datasheet

  • RX4000V4

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

  • 1637.71KB

  • 309頁(yè)

  • ETC

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

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

PDF預(yù)覽

CHAPTER 5 SYNCHRONOUS COMMUNICATION MANAGEMENT
5.5.3
Messages
All items of data (memory) exchanged between tasks via mailboxes are called 鈥渕essages.鈥?Using a mailbox, an
arbitrary task, handler, or processing routine can access the data, or messages, stored in the memory. In the
RX4000, however, the address of a message is only passed to the receiving side; the contents of the message are not
copied to any other area.
(1) Allocating message areas
Any memory area, such as a variable-length memory block, a fixed-length memory block, or a statically
secured area, can be used for messages. However, to transmit messages, an area is required for the kernel to
perform message management (message header), for which the top 4 bytes of the area is used (or the top 6
bytes in the case of messages with a specified priority). Accordingly, an area larger than 4 (or 6) bytes must be
secured for the message area.
The top address of the message area is passed to the mailbox when a message is transmitted. This address
must be a value that is an integral multiple of 4 (an integral multiple of 8 is recommended); otherwise operation
cannot be guaranteed.
For further details of the structure of the message header, refer to the
RX4000 (
ITRON4.0) Technical User鈥檚
Manual (U14835E).
(2) Contents of messages
The length and composition of messages to be transmitted to mailboxes are not prescribed in the RX4000;
rather they are determined by the tasks, handlers, and processing routines that communicate with each other
(i.e., by protocols).
(3) Message priority order
In the RX4000, if there are no tasks waiting for message reception when a message is transmitted, the
transmitted message is registered in the message queue of the mailbox. The order in which messages are
registered can be specified by the attribute of the mailbox, so for mailboxes with the attribute TA_MPRI,
messages are registered in order of priority. Values from 1 to 255 can be used to assign priority: the smaller
the value the higher the priority.
The priority of a message is stored in the 2 bytes following the 4th byte from the top of the message area.
Therefore when messages are communicated via a mailbox with the attribute TA_MPRI, the essence of the
message activates after the 6th byte from the top of the message area.
5.5.4
Transmitting messages
Messages are transmitted by issuing the service call snd_mbx.
If there is a message transmission request, the kernel checks the message reception waiting task queue of the
mailbox, and if there is a task waiting in this queue, it releases that task from the waiting state, at which point the task
receives the message. If there are no tasks waiting, messages are registered in the message queue of the mailbox in
the order specified by the attribute assigned when that mailbox was created (FIFO or priority order), and are saved for
the next message reception request.
User鈥檚 Manual U14833EJ2V0UM
61

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

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

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

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

在線人工客服

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

0571-85317607

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

13606545031

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

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

建議反饋
返回頂部

建議反饋

聯(lián)系人:

聯(lián)系方式:

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