#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.
Arm’s Privacy Policy has been updated. By continuing to use our site, you consent to Arm’s Privacy Policy. Please review our Privacy Policy to learn more about our collection, use and transfers of your data.