µOS++ IIIe Reference 7.0.0
The third edition of µOS++, a POSIX inspired open source framework, written in C++
Loading...
Searching...
No Matches
os::rtos::interrupts Namespace Reference

Interrupts namespace. More...

Classes

class  critical_section
 Interrupts critical section RAII helper. More...
 
class  lockable
 Interrupts standard locker. More...
 
class  uncritical_section
 Interrupts critical section RAII helper. More...
 

Typedefs

using state_t = port::interrupts::state_t
 Type of variables holding interrupts statu codes.
 

Functions

bool in_handler_mode (void)
 Check if the CPU is in handler mode.
 
class thread::stackstack (void)
 Get the interrupts stack.
 

Detailed Description

Interrupts namespace.

The os::rtos::interrupts namespace groups interrupts related types and enumerations.

Typedef Documentation

◆ state_t

using os::rtos::interrupts::state_t = typedef port::interrupts::state_t

Type of variables holding interrupts statu codes.

Usually an integer large enough to hold the CPU register where the interrupt priorities are stored.

Used to temporarily store the CPU register during critical sections.

Definition at line 243 of file os-decls.h.

Function Documentation

◆ in_handler_mode()

bool os::rtos::interrupts::in_handler_mode ( void  )
inline

Check if the CPU is in handler mode.

Parameters
None.
Return values
trueExecution is in an exception handler context.
falseExecution is in a thread context.
Note
Can be invoked from Interrupt Service Routines (obviously).

Definition at line 1108 of file os-sched.h.