ChibiOS  21.6.0
mailbox_t Struct Reference

Structure representing a mailbox object. More...

#include <chmboxes.h>

Collaboration diagram for mailbox_t:
Collaboration graph

Data Fields

msg_tbuffer
 Pointer to the mailbox buffer.
More...
 
msg_ttop
 Pointer to the location after the buffer.
More...
 
msg_twrptr
 Write pointer.
More...
 
msg_trdptr
 Read pointer.
More...
 
size_t cnt
 Messages in queue.
More...
 
bool reset
 True in reset state.
More...
 
threads_queue_t qw
 Queued writers.
More...
 
threads_queue_t qr
 Queued readers.
More...
 

Detailed Description

Structure representing a mailbox object.

Definition at line 52 of file chmboxes.h.

Field Documentation

◆ buffer

msg_t* mailbox_t::buffer

Pointer to the mailbox buffer.

Definition at line 53 of file chmboxes.h.

Referenced by chMBGetSizeI(), and chMBObjectInit().

◆ top

msg_t* mailbox_t::top

Pointer to the location after the buffer.

Definition at line 55 of file chmboxes.h.

Referenced by chMBGetSizeI(), and chMBObjectInit().

◆ wrptr

msg_t* mailbox_t::wrptr

Write pointer.

Definition at line 57 of file chmboxes.h.

Referenced by chMBObjectInit().

◆ rdptr

msg_t* mailbox_t::rdptr

Read pointer.

Definition at line 58 of file chmboxes.h.

Referenced by chMBObjectInit().

◆ cnt

size_t mailbox_t::cnt

Messages in queue.

Definition at line 59 of file chmboxes.h.

Referenced by chMBObjectInit().

◆ reset

bool mailbox_t::reset

True in reset state.

Definition at line 60 of file chmboxes.h.

Referenced by chMBObjectInit(), and chMBResumeX().

◆ qw

threads_queue_t mailbox_t::qw

Queued writers.

Definition at line 61 of file chmboxes.h.

Referenced by chMBObjectInit().

◆ qr

threads_queue_t mailbox_t::qr

Queued readers.

Definition at line 62 of file chmboxes.h.

Referenced by chMBObjectInit().