Loading...
Searching...
No Matches
msg_t Struct Reference

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

Detailed Description

Describes a message object which can be sent between threads.

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 196 of file msg.h.

#include <msg.h>

Data Fields

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

Field Documentation

◆ ptr

void* msg_t::ptr

Pointer content field.

Definition at line 201 of file msg.h.

◆ sender_pid

kernel_pid_t msg_t::sender_pid

PID of sending thread.

Will be filled in by msg_send.

Definition at line 197 of file msg.h.

◆ type

uint16_t msg_t::type

Type field.

Definition at line 199 of file msg.h.

◆ value

uint32_t msg_t::value

Value content field.

Definition at line 202 of file msg.h.


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