#include <rtl.h>
OS_RESULT isr_mbx_check (
OS_IDmailbox ); /* The mailbox to check for free space */
Description
The isr_mbx_check function determines the number of
messages that can still be added into the mailbox identified
by the function argument. You can avoid losing the message by calling
the isr_mbx_check function to check for available space in the
mailbox before calling the isr_mbx_send function to send a
message.
The isr_mbx_check function is in the RL-RTX library. The
prototype is defined in rtl.h.
Note
You can call the isr_mbx_check function only from the
IRQ interrupt service routine. You cannot call it from the FIQ
interrupt service routine.
When sending more than one message from ISR, the mailbox might
overflow, because the isr_mbx_send puts the messages in the
fifo queue, not directly to the mailbox.
Return Value
The isr_mbx_check function returns the number of message
entries in the mailbox that are free.
This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.
ARM websites use two types of cookie: (1) those that enable the site to function and perform as required; and (2) analytical cookies which anonymously track visitors only while using the site. If you are not happy with this use of these cookies please review our Privacy Policy to learn how they can be disabled. By disabling cookies some features of the site will not work.