| (1) |
2.5.3. snd_msg(Send Message to Mailbox) [(Function description)] |
| Original: |
| ... |
Since no specific types of message packets (T_MSG) are stipulated in MR32R, any desired message type can be defined by the user. It can be an array, for example.
Example:
typedef char * T_MSG; |
| The above should be: |
| ... |
The type of message packet (T_MSG) is defined in "mr32r.h" as shown below.
typedef UW T_MSG;
If the type of message packet is different from the above one, cast it and make a system call.
|
| (2) |
2.13.3. vsnd_mbx(Send Message to Mailbox) [(Calling by the C language)] |
| Original: |
..ER vsnd_mbx (vmbxid,pk_msg);
..<<Argument>>
| .... | ID vmbxid; |
.. |
The ID No. of the mailbox to which a message is sent |
| T_MSG *pk_msg; | The start address of message packet |
|
| The above should be: |
..ER vsnd_mbx (vmbxid,pk_msg);
..<<Argument>>
| .... | ID vmbxid; |
.. | The ID No. of the mailbox |
| T_MSG pk_msg; | The starting address of a message packet *1
|
|
| (3) |
2.13.4. visnd_mbx(Send Message to Mailbox) [(Calling by the C language)] |
| Original: |
..ER visnd_mbx (vmbxid,pk_msg);
..<<Argument>>
| .... | ID vmbxid; |
.. |
The ID No. of the mailbox to which a message is sent |
| T_MSG *pk_msg; | The start address of message packet |
|
| The above should be: |
..ER visnd_mbx (vmbxid,pk_msg);
..<<Argument>>
| .... | ID vmbxid; |
.. | The ID No. of the mailbox |
| T_MSG pk_msg; | The starting address of a message packet *1
|
|
| (4) |
2.13.5. vrcv_mbx(Receive Message from Mailbox) [(Calling by the C language)] |
| Original: |
..ER vrcv_mbx (vmbxid ,ppk_msg );
..<<Argument>>
| .... | ID vmbxid; |
.. |
The ID No. of the mailbox from which a message is received |
| T_MSG **ppk_msg; |
The pointer variable to indicate the start address of message packet |
|
| The above should be: |
..ER vrcv_mbx (ppk_msg, vmbxid );
..<<Argument>>
| .... | ID vmbxid; |
.. | The ID No. of the mailbox |
| T_MSG *ppk_msg; |
The address of the area where the starting address of a message packet is stored *2
|
|
| (5) |
2.13.6. vtrcv_mbx(Receive Message with Timeout) [(Calling by the C language)] |
| Original: |
..ER vtrcv_mbx (mbxid ,ppk_msg,tmout);
| ..<<Argument>> |
| .... | ID vmbxid; |
.. |
The ID No. of the mailbox from which a message is received |
| T_MSG **ppk_msg; |
The pointer variable to indicate the start address of message packet |
| TMO tmout | Timeout value |
| ..<<Return value>> |
| .... |
The start address of the received message packet is set to variable ppk_msg.
An error code is returned as the return value of a function. |
|
| The above should be: |
..ER vtrcv_mbx (ppk_msg, vmbxid, tmout );
| ..<<Argument>> |
| .... | ID mbxid; |
.. | The ID No. of the mailbox |
| T_MSG *ppk_msg; |
The address of the area where the starting address of a message packet is stored *2 |
| TMO tmout; | The timeout value |
| ..<<Return value>> |
| .... |
An error code is returned as the return value of a function.
The starting address of the received message packet is set at the area pointed to by variable ppk_msg.
|
|
| (6) |
2.13.7. vprcv_mbx(Poll and Receive Message) [(Calling by the C language)] |
| Original: |
..ER vprcv_mbx (vmbxid ,ppk_msg );
| ..<<Argument>> |
| .... | ID vmbxid; |
.. |
The ID No. of the mailbox from which a message is received |
| T_MSG **ppk_msg; | The start address of message packet |
| ..<<Return value>> |
| .... |
The start address of the received message packet is set to variable ppk_msg.
An error code is returned as the return value of a function. |
|
| The above should be: |
..ER vprcv_mbx (ppk_msg, vmbxid );
| ..<<Argument>> |
| .... | ID mbxid; |
.. | The ID No. of the mailbox |
| T_MSG *ppk_msg; |
The address of the area where the starting address of a message packet is stored *2 |
| ..<<Return value>> |
| .... |
An error code is returned as the return value of a function.
The starting address of the received message packet is set at the area pointed to by variable ppk_msg.
|
|
| (7) |
3.4 C Language Interface Implementation-Dependent System Call (Mailbox) |
| Original: |
ER ercd = vcre_mbx (ID vmbxid, T_CVMBX *pk_rmbf);
ER ercd = vdel_mbx (ID vmbxid);
ER ercd = vsnd_mbx (ID vmbxid, T_MSG *pk_msg);
ER ercd = visnd_mbx (ID vmbxid, T_MSG *pk_msg);
ER ercd = vrcv_mbx (**ppk_msg, ID vmbxid);
ER ercd = vtrcv_mbx (**ppk_msg, ID vmbxid, TMO tmout);
ER ercd = vprcv_mbx (**ppk_msg, ID vmbxid);
ER ercd = vref_mbx (T_RVMBF *pk_rvmbf, ID vmbxid);
ER ercd = vrst_mbx (ID vmbxid); |
| The above should be: |
ER ercd = vcre_mbx (ID vmbxid,T_CVMBX *pk_rmbf);
ER ercd = vdel_mbx (ID vmbxid);
ER ercd = vsnd_mbx (ID vmbxid,T_MSG pk_msg);
ER ercd = visnd_mbx (ID vmbxid,T_MSG pk_msg);
ER ercd = vrcv_mbx (T_MSG *ppk_msg,ID vmbxid);
ER ercd = vtrcv_mbx (T_MSG *ppk_msg,ID vmbxid,TMO tmout);
ER ercd = vprcv_mbx (T_MSG *ppk_msg,ID vmbxid);
ER ercd = vref_mbx (T_RVMBF *pk_rvmbf,ID vmbxid);
ER ercd = vrst_mbx (ID vmbxid);
|
| Notes: |
| *1. |
Though the starting address of a message packet is specified, cast it to type T_MSG and then make a system call. |
| *2. |
Though the address of the area is specified where the starting address of a message packet is stored, cast it to type T_MSG * and then make a system call. |