17 #ifndef _RTEMS_RTEMS_MODESIMPL_H 18 #define _RTEMS_RTEMS_MODESIMPL_H 46 return ( mode_set & masks ) ? true :
false;
132 _out_mode = old_mode_set;
134 _out_mode |= new_mode_set & mask;
135 *changed = _out_mode ^ old_mode_set;
136 *out_mode_set = _out_mode;
#define RTEMS_ASR_MASK
This mode constant corresponds to the signal enable/disable bit.
Definition: modes.h:70
RTEMS_INLINE_ROUTINE bool _Modes_Is_preempt(Modes_Control mode_set)
Checks if mode_set indicates that preemption is enabled.
Definition: modesimpl.h:68
RTEMS_INLINE_ROUTINE ISR_Level _Modes_Get_interrupt_level(Modes_Control mode_set)
Gets the interrupt level portion of the mode_set.
Definition: modesimpl.h:93
#define RTEMS_INLINE_ROUTINE
The following (in conjunction with compiler arguments) are used to choose between the use of static i...
Definition: basedefs.h:135
RTEMS_INLINE_ROUTINE bool _Modes_Mask_changed(Modes_Control mode_set, Modes_Control masks)
Checks if any of the mode flags in mask are set in mode_set.
Definition: modesimpl.h:41
uint32_t Modes_Control
The following type defines the control block used to manage each a mode set.
Definition: modes.h:44
RTEMS_INLINE_ROUTINE void _Modes_Change(Modes_Control old_mode_set, Modes_Control new_mode_set, Modes_Control mask, Modes_Control *out_mode_set, Modes_Control *changed)
Changes the modes in old_mode_set indicated by mask to the requested values in new_mode_set.
Definition: modesimpl.h:122
#define RTEMS_NO_ASR
This mode constant is used to indicate signal processing is disabled.
Definition: modes.h:88
RTEMS_INLINE_ROUTINE bool _Modes_Is_timeslice(Modes_Control mode_set)
Checks if mode_set indicates that timeslicing is enabled.
Definition: modesimpl.h:81
uint32_t ISR_Level
The following type defines the control block used to manage the interrupt level portion of the status...
Definition: isrlevel.h:42
#define RTEMS_TIMESLICE_MASK
This mode constant corresponds to the timeslice enable/disable bit.
Definition: modes.h:64
RTEMS_INLINE_ROUTINE void _Modes_Set_interrupt_level(Modes_Control mode_set)
Sets the current interrupt level to that specified in the mode_set.
Definition: modesimpl.h:106
#define RTEMS_INTERRUPT_MASK
This mode constant corresponds to the interrupt enable/disable bits.
Definition: modes.h:73
#define _ISR_Set_level(_new_level)
Set current interrupt level.
Definition: isrlevel.h:132
#define RTEMS_PREEMPT_MASK
This mode constant corresponds to the preemption enable/disable bit.
Definition: modes.h:67
RTEMS_INLINE_ROUTINE bool _Modes_Is_asr_disabled(Modes_Control mode_set)
Checks if mode_set says that Asynchronous Signal Processing is disabled.
Definition: modesimpl.h:55
#define RTEMS_TIMESLICE
This mode constant is used to indicate timeslicing is enabled.
Definition: modes.h:83
#define RTEMS_PREEMPT
This mode constant is used to indicate preemption is enabled.
Definition: modes.h:76