API

DESCRIPTIONS

FUNCTION SIGNATURES

Create a mailbox object

REXIS_MAILBOX *REXIS_MailboxCreate(uint8_t size);

Destroy a mailbox object

int  REXIS_MailboxDestroy(REXIS_MAILBOX *mbox);

Post a message to a mailbox

int  REXIS_MailboxPost(REXIS_MAILBOX *mbox, void *msg);

Post a message to a mailbox if not full

int  REXIS_MailboxTryPost(REXIS_MAILBOX *mbox, void *msg);

Post a message to a mailbox from an ISR

void REXIS_MailboxTryPostFromISR(REXIS_MAILBOX *mbox, void *msg);

Fetch a message from a mailbox

int  REXIS_MailboxFetch(REXIS_MAILBOX *mbox, void **pmsg, int timeout_ms);

Fetch a message from a mailbox if not empty

int  REXIS_MailboxTryFetch(REXIS_MAILBOX *mbox, void **pmsg);