RTEMS
Macros | Enumerations | Functions | Variables
sysstate.h File Reference

System State Handler API. More...

#include <rtems/score/basedefs.h>

Go to the source code of this file.

Macros

#define SYSTEM_STATE_CODES_FIRST   SYSTEM_STATE_BEFORE_INITIALIZATION
 
#define SYSTEM_STATE_CODES_LAST   SYSTEM_STATE_TERMINATED
 

Enumerations

enum  System_state_Codes { SYSTEM_STATE_BEFORE_INITIALIZATION, SYSTEM_STATE_BEFORE_MULTITASKING, SYSTEM_STATE_UP, SYSTEM_STATE_TERMINATED }
 System states. More...
 

Functions

static __inline__ void _System_state_Set (System_state_Codes state)
 Sets the current system state to the given state. More...
 
static __inline__ System_state_Codes _System_state_Get (void)
 Gets the current system state. More...
 
static __inline__ bool _System_state_Is_before_initialization (System_state_Codes state)
 Checks if the state is before initialization. More...
 
static __inline__ bool _System_state_Is_before_multitasking (System_state_Codes state)
 Checks if the state is before multitasking. More...
 
static __inline__ bool _System_state_Is_up (System_state_Codes state)
 Checks if the state is up. More...
 
static __inline__ bool _System_state_Is_terminated (System_state_Codes state)
 Checks if the state is terminated. More...
 

Variables

System_state_Codes _System_state_Current
 

Detailed Description

System State Handler API.

Definition in file sysstate.h.