
B–61863E–1/06
2. PMC SYSTEM CALLPMC LIBRARY
163
SC/SC3/SC4 NB/NB2 16i/18i/21i 15i–A
f f f f
[Name]
os_make_mbx
[Description]
Creates the mailbox.
Up to 255 entries can be created as the number of mail buffers for each
mail ID.
[Format]
ret = os_make_mbx(mailbox_id,buffer_size) ;
unsigned short ret ;
unsigned char mailbox_id ;
unsigned char buffer_size ;
[Input]
mailbox_id Mailbox ID (10 to 39)
buffer_size Buffer size (0 to 255)
[Output]
______
[Returns]
ret Completion code
0 ; The mailbox has been created normally.
0108H ; The mailbox ID is out of range (other than 10 to 39).
0113H ; The specified mailbox ID has already been created.
011EH ; The number of mail buffers exceeds the maximum (500).
[Remarks]
The mailbox is the ring buffer. One entry is eight bytes long.
Up to 500 mail buffers can be created by the user program.
2.21
CREATING THE
MAILBOX