RT-Thread RTOS  1.2.0
An open source embedded real-time operating system

#include <rtdef.h>

Data Fields

struct rt_ipc_object parent
 
rt_ubase_t * msg_pool
 
rt_uint16_t size
 
rt_uint16_t entry
 
rt_uint16_t in_offset
 
rt_uint16_t out_offset
 
rt_list_t suspend_sender_thread
 

Detailed Description

mailbox structure

Field Documentation

◆ parent

struct rt_ipc_object rt_mailbox::parent

inherit from ipc_object

◆ msg_pool

rt_ubase_t* rt_mailbox::msg_pool

start address of message buffer

◆ size

rt_uint16_t rt_mailbox::size

size of message pool

◆ entry

rt_uint16_t rt_mailbox::entry

index of messages in msg_pool

◆ in_offset

rt_uint16_t rt_mailbox::in_offset

input offset of the message buffer

◆ out_offset

rt_uint16_t rt_mailbox::out_offset

output offset of the message buffer

◆ suspend_sender_thread

rt_list_t rt_mailbox::suspend_sender_thread

sender thread suspended on this mailbox