Kenji Arai / mbed-os_TYBLE16

Dependents:   TYBLE16_simple_data_logger TYBLE16_MP3_Air

Embed: (wiki syntax)

« Back to documentation index

RTOS

Namespaces

namespace  rtos::Kernel
 

Functions in the Kernel namespace control RTOS kernel information.


Modules

 ConditionVariable class
 EventFlags class
 Mail class
 MemoryPool class
 Mutex class
 Queue class
 RtosTimer class
 Semaphore class
 ThisThread namespace
 Thread class

Typedefs

typedef mbed::ScopedLock< Mutex > ScopedMutexLock
 Typedef for the mutex lock.

Enumerations

enum  osStatus_t {
  osOK = 0, osError = -1, osErrorTimeout = -2, osErrorResource = -3,
  osErrorParameter = -4, osErrorNoMemory = -5, osErrorISR = -6, osStatusReserved = 0x7FFFFFFF
}

Typedef Documentation

typedef mbed::ScopedLock<Mutex> ScopedMutexLock

Typedef for the mutex lock.

Usage:

 void foo(Mutex &m) {
     ScopedMutexLock lock(m);
     // Mutex lock protects code in this block
 }

Definition at line 38 of file Mutex.h.


Enumeration Type Documentation

enum osStatus_t
Enumerator:
osOK 

Operation completed successfully.

osError 

Unspecified RTOS error: run-time error but no other error message fits.

osErrorTimeout 

Operation not completed within the timeout period.

osErrorResource 

Resource not available.

osErrorParameter 

Parameter error.

osErrorNoMemory 

System is out of memory: it was impossible to allocate or reserve memory for the operation.

osErrorISR 

Not allowed in ISR context: the function cannot be called from interrupt service routines.

osStatusReserved 

Prevents enum down-size compiler optimization.

Definition at line 50 of file mbed_rtos_types.h.