StateOS
Loading...
Searching...
No Matches
Basic definitions

types, error codes and time units common to all objects More...

Macros

#define USEC   (cnt_t)((OS_FREQUENCY)/1000000)
 one microsecond in ticks of the system timer
#define MSEC   (cnt_t)((OS_FREQUENCY)/1000)
 one millisecond in ticks of the system timer
#define SEC   ((cnt_t)(OS_FREQUENCY))
 one second in ticks of the system timer
#define MIN   ((cnt_t)(OS_FREQUENCY)*60)
 one minute in ticks of the system timer
#define HOUR   ((cnt_t)(OS_FREQUENCY)*3600)
 one hour in ticks of the system timer
#define DAY   ((cnt_t)(OS_FREQUENCY)*86400)
 one day in ticks of the system timer
#define IMMEDIATE   0
 no waiting
#define INFINITE   CNT_MAX
 infinite waiting

Typedefs

typedef void fun_t(void)
 timer/task procedure
typedef void fun_a(void *)
 timer/task procedure with argument
typedef void act_t(unsigned)
 signal action

Enumerations

enum  {
  E_SUCCESS = 0 , E_FAILURE , E_STOPPED , E_DELETED ,
  E_TIMEOUT , OWNERDEAD
}
 error codes: results of the functions More...

Detailed Description

types, error codes and time units common to all objects

Enumeration Type Documentation

◆ anonymous enum

anonymous enum

error codes: results of the functions

Enumerator
E_SUCCESS 

process was released as a result of taking the supervising object

E_FAILURE 

process was released as a result of any failure

E_STOPPED 

process was released as a result of reset the supervising object

E_DELETED 

process was released as a result of deleting the supervising object

E_TIMEOUT 

process was released as a result of the end of the timer countdown

OWNERDEAD 

previous owner has stopped