Unify Framework Lib 1.6.0
#include "sys/pt.h"
#include "sys/cc.h"

Go to the source code of this file.

Classes

struct  process
 

Macros

#define PROCESS_NONE   NULL
 
#define PROCESS_CONF_NUMEVENTS   255
 
#define PROCESS_CONF_NUMEVENTS_PRINT   64
 
#define PROCESS_CONF_NUMEVENTS_ERROR   230
 
#define PROCESS_EVENT_NONE   0x80
 
#define PROCESS_EVENT_INIT   0x81
 
#define PROCESS_EVENT_POLL   0x82
 
#define PROCESS_EVENT_EXIT   0x83
 
#define PROCESS_EVENT_SERVICE_REMOVED   0x84
 
#define PROCESS_EVENT_CONTINUE   0x85
 
#define PROCESS_EVENT_MSG   0x86
 
#define PROCESS_EVENT_EXITED   0x87
 
#define PROCESS_EVENT_TIMER   0x88
 
#define PROCESS_EVENT_COM   0x89
 
#define PROCESS_EVENT_MAX   0x8a
 
#define PROCESS_BROADCAST   NULL
 
#define PROCESS_ZOMBIE   ((struct process *)0x1)
 
#define PROCESS_NAME_STRING(process)   (process)->name
 
#define PROCESS_LIST()   process_list
 
Return values
#define PROCESS_ERR_OK   0
 Return value indicating that an operation was successful. More...
 
#define PROCESS_ERR_FULL   1
 Return value indicating that the event queue was full. More...
 
Process protothread functions
#define PROCESS_BEGIN()
 
#define PROCESS_END()
 
#define PROCESS_WAIT_EVENT()
 
#define PROCESS_WAIT_EVENT_UNTIL(c)
 
#define PROCESS_YIELD()
 
#define PROCESS_YIELD_UNTIL(c)
 
#define PROCESS_WAIT_UNTIL(c)
 
#define PROCESS_WAIT_WHILE(c)   PT_WAIT_WHILE(process_pt, c)
 
#define PROCESS_EXIT()
 
#define PROCESS_PT_SPAWN(pt, thread)
 
#define PROCESS_PAUSE()
 
Poll and exit handlers
#define PROCESS_POLLHANDLER(handler)
 
#define PROCESS_EXITHANDLER(handler)
 
Process declaration and definition
#define PROCESS_THREAD(name, ev, data)
 
#define PROCESS_NAME(name)
 
#define PROCESS(name, strname)
 

Typedefs

typedef unsigned char process_event_t
 
typedef void * process_data_t
 
typedef uint32_t process_num_events_t
 

Functions

Functions called from device drivers
void process_poll (struct process *p) CC_REENTRANT_ARG
 
Functions called by the system and boot-up code
void process_init (void)
 Initialize the process module. More...
 
int process_run (void)
 
int process_is_running (struct process *p) CC_REENTRANT_ARG
 
int process_nevents (void)
 

Variables

CCIF struct processprocess_list
 

Functions called from application programs

#define PROCESS_CURRENT()
 
#define PROCESS_CONTEXT_BEGIN(p)
 
#define PROCESS_CONTEXT_END(p)
 
CCIF struct processprocess_current
 
void process_start (struct process *p, const char *arg) CC_REENTRANT_ARG
 
int process_post (struct process *p, process_event_t ev, process_data_t data) CC_REENTRANT_ARG
 
int process_count_events (const struct process *p, process_event_t ev, const process_data_t data) CC_REENTRANT_ARG
 
void process_post_synch (struct process *p, process_event_t ev, process_data_t data) CC_REENTRANT_ARG
 
void process_exit (struct process *p) CC_REENTRANT_ARG
 Cause a process to exit. More...
 
process_event_t process_alloc_event (void)
 Allocate a global event number. More...
 

Detailed Description

Header file for the Contiki process interface.

Author
Adam Dunkels adam@.nosp@m.sics.nosp@m..se

Macro Definition Documentation

◆ PROCESS_NAME_STRING

#define PROCESS_NAME_STRING (   process)    (process)->name