USBB17RX78K4-XXX NEC Electronics, USBB17RX78K4-XXX Datasheet - Page 62

no-image

USBB17RX78K4-XXX

Manufacturer Part Number
USBB17RX78K4-XXX
Description
78K/4 series realtime OS
Manufacturer
NEC Electronics
Datasheet
4.2.11 rcv_msg (Receive Message from Mailbox)
[Function]
[Remarks]
[System call ID number]
[Parameter]
[Return parameter]
[Assembler format]
[C format]
Waits for reception from a mail box.
Receives a message from a mail box indicated by mbxid and sets the top address of the received message in
an address specified by the parameter. If the message has not arrived at the mail box, the task that has
issued this system call is placed in the WAIT state. The area for ppk-msg should be allocated by the user.
Received message becomes a top address of the message area actual data is stored.
rcv_msg = 20
mbxid (Mailbox Identifier)
ppk_msg (Pointer of Message Packet)
E_OK
[Large model]
MOV
MOVW
MOV
MOVG
PUSH
CALLT
C register = return parameter
ret = rcv_msg (ppk_msg,mbxid);
char
char
bnk0_b, #20
bnk0_up, #mbxid
bnk0_d, #mbxid
VVP, #ppk_msg
VVP
[40H]
:
**ppk_msg;
*mbxid;
CHAPTER 4
Mail box ID (Mailbox top address)
Address of area storing the top
address of received message
Normal termination
[Small model]
MOV
MOVW
MOVW
PUSH
CALLT
C register = return parameter
RX78K/IV SYSTEM CALL LIST
bnk0_b, #20
AX, #ppk_msg
AX
[40H]
:
bnk0_up, #mbxid
- 24 bits (large model)
- 24 bits (large model)
- 16 bits (small model)
- 16 bits (small model)
53

Related parts for USBB17RX78K4-XXX