Go to the documentation of this file.
254 #define KERNEL_PID_ISR (KERNEL_PID_LAST + 1)
int16_t kernel_pid_t
Unique process identifier.
#define KERNEL_PID_ISR
Value of msg_t::sender_pid if the sender was an interrupt service routine.
void msg_queue_print(void)
Prints the message queue of the current thread.
int msg_send_to_self(msg_t *m)
Send a message to the current thread.
int msg_send_receive(msg_t *m, msg_t *reply, kernel_pid_t target_pid)
Send a message, block until reply received.
void msg_init_queue(msg_t *array, int num)
Initialize the current thread's message queue.
Scheduler API definition.
int msg_try_receive(msg_t *m)
Try to receive a message.
void * ptr
Pointer content field.
int msg_reply(msg_t *m, msg_t *reply)
Replies to a message.
int msg_try_send(msg_t *m, kernel_pid_t target_pid)
Send a message (non-blocking).
int msg_reply_int(msg_t *m, msg_t *reply)
Replies to a message from interrupt.
int msg_receive(msg_t *m)
Receive a message.
uint32_t value
Value content field.
int msg_send(msg_t *m, kernel_pid_t target_pid)
Send a message (blocking).
static int msg_sent_by_int(const msg_t *m)
Test if the message was sent inside an ISR.
int msg_avail(void)
Check how many messages are available in the message queue.
kernel_pid_t sender_pid
PID of sending thread.
Describes a message object which can be sent between threads.
int msg_send_int(msg_t *m, kernel_pid_t target_pid)
Send message from interrupt.