msg_t Struct Reference

Describes a message object which can be sent between threads. More...

Detailed Description

User can set type and one of content.ptr and content.value. (content is a union) The meaning of type and the content fields is totally up to the user, the corresponding fields are never read by the kernel.

Definition at line 184 of file msg.h.

#include <msg.h>

Data Fields

kernel_pid_t sender_pid
 PID of sending thread. More...
uint16_t type
 Type field. More...
union {
   void *   ptr
 Pointer content field. More...
   uint32_t   value
 Value content field. More...
 Content of the message. More...

Field Documentation

◆ content

union { ... } msg_t::content

◆ ptr

void* msg_t::ptr

Definition at line 189 of file msg.h.

◆ sender_pid

kernel_pid_t msg_t::sender_pid

Will be filled in by msg_send.

Definition at line 185 of file msg.h.

◆ type

uint16_t msg_t::type

Definition at line 187 of file msg.h.

◆ value

uint32_t msg_t::value

Definition at line 190 of file msg.h.

The documentation for this struct was generated from the following file: