ESOS32
ESOSOn32-bitProcessors
Functions | Variables
esos_mail.c File Reference

Mailboxes and messaging code for ESOS32 tasks. More...

#include "esos.h"
#include "esos_mail.h"
Include dependency graph for esos_mail.c:

Go to the source code of this file.

Functions

void __esos_InitMailbox (MAILBOX *pst_Mailbox, uint8_t *pau8_ptr)
 
void __esos_SendMailMessage (ESOS_TASK_HANDLE pst_RcvrTask, MAILMESSAGE *pst_Msg)
 
void __esos_ReadMailMessage (ESOS_TASK_HANDLE pst_Task, MAILMESSAGE *pst_Message)
 

Variables

uint8_t __u8_esos_mail_routines_dummy_uint8
 

Detailed Description

Mailboxes and messaging code for ESOS32 tasks.

Definition in file esos_mail.c.

Function Documentation

◆ __esos_ReadMailMessage()

void __esos_ReadMailMessage ( ESOS_TASK_HANDLE  pst_Task,
MAILMESSAGE pst_Message 
)

Reads the next (oldest) waiting message from a task's mailbox.

Parameters
pstTaskpointer to task structure (ESOS_TASK_HANDLE) whose mailbox will be written
pstMsgpointer to mailbox message structure that contains data to write to the task's mailbox
Note
This function ASSUMES that there is ample free space available in specified mailbox.
See also
ESOS_TASK_WAIT_ON_TASKS_MAILBOX_HAS_SPACE

Definition at line 98 of file esos_mail.c.

◆ __esos_SendMailMessage()

void __esos_SendMailMessage ( ESOS_TASK_HANDLE  pst_RcvrTask,
MAILMESSAGE pst_Msg 
)

Writes message data to a task's mailbox.

Parameters
pst_RcvrTaskpointer to task structure (ESOS_TASK_HANDLE) whose mailbox will be written
pst_Msgpointer to mailbox message structure that contains data to write to the task's mailbox
Note
This function ASSUMES that there is ample free space available in specified mailbox.
See also
ESOS_TASK_WAIT_ON_TASKS_MAILBOX_HAS_SPACE

Definition at line 60 of file esos_mail.c.