mbed library sources. Supersedes mbed-src.
Fork of mbed-dev by
Platform
Data Structures | |
class | Callback< R()> |
Callback class based on template specialization. More... | |
class | Callback< R(A0)> |
Callback class based on template specialization. More... | |
class | Callback< R(A0, A1)> |
Callback class based on template specialization. More... | |
class | Callback< R(A0, A1, A2)> |
Callback class based on template specialization. More... | |
class | Callback< R(A0, A1, A2, A3)> |
Callback class based on template specialization. More... | |
class | Callback< R(A0, A1, A2, A3, A4)> |
Callback class based on template specialization. More... | |
class | CircularBuffer< T, BufferSize, CounterType > |
Templated Circular buffer class. More... | |
class | CThunk< T > |
Class for created a pointer with data bound to it. More... | |
class | PlatformMutex |
A stub mutex for when an RTOS is not present. More... | |
struct | SingletonPtr< T > |
Utility class for creating an using a singleton. More... | |
struct | transaction_t |
Transaction structure. More... | |
class | Transaction< Class > |
Transaction class defines a transaction. More... | |
Typedefs | |
typedef Callback< void()> * | pFunctionPointer_t |
Group one or more functions in an instance of a CallChain, then call them in sequence using CallChain::call(). | |
typedef void(* | mbed_mem_trace_cb_t )(uint8_t op, void *res, void *caller,...) |
Type of the callback used by the memory tracer. | |
Functions | |
Callback (const Callback< R()> &func) | |
Attach a Callback. | |
template<typename T > | |
Callback (T *obj, R(T::*method)()) | |
Create a Callback with a member function. | |
template<typename T > | |
Callback (const T *obj, R(T::*method)() const) | |
Create a Callback with a member function. | |
template<typename T > | |
Callback (volatile T *obj, R(T::*method)() volatile) | |
Create a Callback with a member function. | |
template<typename T > | |
Callback (const volatile T *obj, R(T::*method)() const volatile) | |
Create a Callback with a member function. | |
Callback (R(*func)(void *), void *arg) | |
Create a Callback with a static function and bound pointer. | |
Callback (R(*func)(const void *), const void *arg) | |
Create a Callback with a static function and bound pointer. | |
Callback (R(*func)(volatile void *), volatile void *arg) | |
Create a Callback with a static function and bound pointer. | |
Callback (R(*func)(const volatile void *), const volatile void *arg) | |
Create a Callback with a static function and bound pointer. | |
template<typename T > | |
Callback (R(*func)(T *), T *arg) | |
Create a Callback with a static function and bound pointer. | |
template<typename T > | |
Callback (R(*func)(const T *), const T *arg) | |
Create a Callback with a static function and bound pointer. | |
template<typename T > | |
Callback (R(*func)(volatile T *), volatile T *arg) | |
Create a Callback with a static function and bound pointer. | |
template<typename T > | |
Callback (R(*func)(const volatile T *), const volatile T *arg) | |
Create a Callback with a static function and bound pointer. | |
template<typename F > | |
Callback (F f, typename detail::enable_if< detail::is_type< R(F::*)(),&F::operator()>::value &&sizeof(F)<=sizeof(uintptr_t) >::type=detail::nil()) | |
Create a Callback with a function object. | |
MBED_DEPRECATED_SINCE ("mbed-os-5.1","Arguments to callback have been reordered to Callback(func, arg)") Callback(void *obj | |
Create a Callback with a static function and bound pointer. | |
MBED_DEPRECATED_SINCE ("mbed-os-5.1","Arguments to callback have been reordered to Callback(func, arg)") Callback(const void *obj | |
Create a Callback with a static function and bound pointer. | |
MBED_DEPRECATED_SINCE ("mbed-os-5.1","Arguments to callback have been reordered to Callback(func, arg)") Callback(volatile void *obj | |
Create a Callback with a static function and bound pointer. | |
MBED_DEPRECATED_SINCE ("mbed-os-5.1","Arguments to callback have been reordered to Callback(func, arg)") Callback(const volatile void *obj | |
Create a Callback with a static function and bound pointer. | |
~Callback () | |
Destroy a callback. | |
void | attach (R(*func)()) |
Attach a static function. | |
void | attach (const Callback< R()> &func) |
Attach a Callback. | |
template<typename T > | |
void | attach (T *obj, R(T::*method)()) |
Attach a member function. | |
template<typename T > | |
void | attach (const T *obj, R(T::*method)() const) |
Attach a member function. | |
template<typename T > | |
void | attach (volatile T *obj, R(T::*method)() volatile) |
Attach a member function. | |
template<typename T > | |
void | attach (const volatile T *obj, R(T::*method)() const volatile) |
Attach a member function. | |
void | attach (R(*func)(void *), void *arg) |
Attach a static function with a bound pointer. | |
void | attach (R(*func)(const void *), const void *arg) |
Attach a static function with a bound pointer. | |
void | attach (R(*func)(volatile void *), volatile void *arg) |
Attach a static function with a bound pointer. | |
void | attach (R(*func)(const volatile void *), const volatile void *arg) |
Attach a static function with a bound pointer. | |
template<typename T > | |
void | attach (R(*func)(T *), T *arg) |
Attach a static function with a bound pointer. | |
template<typename T > | |
void | attach (R(*func)(const T *), const T *arg) |
Attach a static function with a bound pointer. | |
template<typename T > | |
void | attach (R(*func)(volatile T *), volatile T *arg) |
Attach a static function with a bound pointer. | |
template<typename T > | |
void | attach (R(*func)(const volatile T *), const volatile T *arg) |
Attach a static function with a bound pointer. | |
template<typename F > | |
void | attach (F f, typename detail::enable_if< detail::is_type< R(F::*)(),&F::operator()>::value &&sizeof(F)<=sizeof(uintptr_t) >::type=detail::nil()) |
Attach a function object. | |
MBED_DEPRECATED_SINCE ("mbed-os-5.1","Arguments to callback have been reordered to attach(func, arg)") void attach(void *obj | |
Attach a static function with a bound pointer. | |
MBED_DEPRECATED_SINCE ("mbed-os-5.1","Arguments to callback have been reordered to attach(func, arg)") void attach(const void *obj | |
Attach a static function with a bound pointer. | |
MBED_DEPRECATED_SINCE ("mbed-os-5.1","Arguments to callback have been reordered to attach(func, arg)") void attach(volatile void *obj | |
Attach a static function with a bound pointer. | |
MBED_DEPRECATED_SINCE ("mbed-os-5.1","Arguments to callback have been reordered to attach(func, arg)") void attach(const volatile void *obj | |
Attach a static function with a bound pointer. | |
Callback & | operator= (const Callback &that) |
Assign a callback. | |
R | call () const |
Call the attached function. | |
R | operator() () const |
Call the attached function. | |
operator bool () const | |
Test if function has been attached. | |
static R | thunk (void *func) |
Static thunk for passing as C-style function. | |
Callback (const Callback< R(A0)> &func) | |
Attach a Callback. | |
template<typename T > | |
Callback (T *obj, R(T::*method)(A0)) | |
Create a Callback with a member function. | |
template<typename T > | |
Callback (const T *obj, R(T::*method)(A0) const) | |
Create a Callback with a member function. | |
template<typename T > | |
Callback (volatile T *obj, R(T::*method)(A0) volatile) | |
Create a Callback with a member function. | |
template<typename T > | |
Callback (const volatile T *obj, R(T::*method)(A0) const volatile) | |
Create a Callback with a member function. | |
Callback (R(*func)(void *, A0), void *arg) | |
Create a Callback with a static function and bound pointer. | |
Callback (R(*func)(const void *, A0), const void *arg) | |
Create a Callback with a static function and bound pointer. | |
Callback (R(*func)(volatile void *, A0), volatile void *arg) | |
Create a Callback with a static function and bound pointer. | |
Callback (R(*func)(const volatile void *, A0), const volatile void *arg) | |
Create a Callback with a static function and bound pointer. | |
template<typename T > | |
Callback (R(*func)(T *, A0), T *arg) | |
Create a Callback with a static function and bound pointer. | |
template<typename T > | |
Callback (R(*func)(const T *, A0), const T *arg) | |
Create a Callback with a static function and bound pointer. | |
template<typename T > | |
Callback (R(*func)(volatile T *, A0), volatile T *arg) | |
Create a Callback with a static function and bound pointer. | |
template<typename T > | |
Callback (R(*func)(const volatile T *, A0), const volatile T *arg) | |
Create a Callback with a static function and bound pointer. | |
template<typename F > | |
Callback (F f, typename detail::enable_if< detail::is_type< R(F::*)(A0),&F::operator()>::value &&sizeof(F)<=sizeof(uintptr_t) >::type=detail::nil()) | |
Create a Callback with a function object. | |
MBED_DEPRECATED_SINCE ("mbed-os-5.1","Arguments to callback have been reordered to Callback(func, arg)") Callback(void *obj | |
Create a Callback with a static function and bound pointer. | |
MBED_DEPRECATED_SINCE ("mbed-os-5.1","Arguments to callback have been reordered to Callback(func, arg)") Callback(const void *obj | |
Create a Callback with a static function and bound pointer. | |
MBED_DEPRECATED_SINCE ("mbed-os-5.1","Arguments to callback have been reordered to Callback(func, arg)") Callback(volatile void *obj | |
Create a Callback with a static function and bound pointer. | |
MBED_DEPRECATED_SINCE ("mbed-os-5.1","Arguments to callback have been reordered to Callback(func, arg)") Callback(const volatile void *obj | |
Create a Callback with a static function and bound pointer. | |
~Callback () | |
Destroy a callback. | |
void | attach (R(*func)(A0)) |
Attach a static function. | |
void | attach (const Callback< R(A0)> &func) |
Attach a Callback. | |
template<typename T > | |
void | attach (T *obj, R(T::*method)(A0)) |
Attach a member function. | |
template<typename T > | |
void | attach (const T *obj, R(T::*method)(A0) const) |
Attach a member function. | |
template<typename T > | |
void | attach (volatile T *obj, R(T::*method)(A0) volatile) |
Attach a member function. | |
template<typename T > | |
void | attach (const volatile T *obj, R(T::*method)(A0) const volatile) |
Attach a member function. | |
void | attach (R(*func)(void *, A0), void *arg) |
Attach a static function with a bound pointer. | |
void | attach (R(*func)(const void *, A0), const void *arg) |
Attach a static function with a bound pointer. | |
void | attach (R(*func)(volatile void *, A0), volatile void *arg) |
Attach a static function with a bound pointer. | |
void | attach (R(*func)(const volatile void *, A0), const volatile void *arg) |
Attach a static function with a bound pointer. | |
template<typename T > | |
void | attach (R(*func)(T *, A0), T *arg) |
Attach a static function with a bound pointer. | |
template<typename T > | |
void | attach (R(*func)(const T *, A0), const T *arg) |
Attach a static function with a bound pointer. | |
template<typename T > | |
void | attach (R(*func)(volatile T *, A0), volatile T *arg) |
Attach a static function with a bound pointer. | |
template<typename T > | |
void | attach (R(*func)(const volatile T *, A0), const volatile T *arg) |
Attach a static function with a bound pointer. | |
template<typename F > | |
void | attach (F f, typename detail::enable_if< detail::is_type< R(F::*)(A0),&F::operator()>::value &&sizeof(F)<=sizeof(uintptr_t) >::type=detail::nil()) |
Attach a function object. | |
MBED_DEPRECATED_SINCE ("mbed-os-5.1","Arguments to callback have been reordered to attach(func, arg)") void attach(void *obj | |
Attach a static function with a bound pointer. | |
MBED_DEPRECATED_SINCE ("mbed-os-5.1","Arguments to callback have been reordered to attach(func, arg)") void attach(const void *obj | |
Attach a static function with a bound pointer. | |
MBED_DEPRECATED_SINCE ("mbed-os-5.1","Arguments to callback have been reordered to attach(func, arg)") void attach(volatile void *obj | |
Attach a static function with a bound pointer. | |
MBED_DEPRECATED_SINCE ("mbed-os-5.1","Arguments to callback have been reordered to attach(func, arg)") void attach(const volatile void *obj | |
Attach a static function with a bound pointer. | |
Callback & | operator= (const Callback &that) |
Assign a callback. | |
R | call (A0 a0) const |
Call the attached function. | |
R | operator() (A0 a0) const |
Call the attached function. | |
operator bool () const | |
Test if function has been attached. | |
static R | thunk (void *func, A0 a0) |
Static thunk for passing as C-style function. | |
Callback (const Callback< R(A0, A1)> &func) | |
Attach a Callback. | |
template<typename T > | |
Callback (T *obj, R(T::*method)(A0, A1)) | |
Create a Callback with a member function. | |
template<typename T > | |
Callback (const T *obj, R(T::*method)(A0, A1) const) | |
Create a Callback with a member function. | |
template<typename T > | |
Callback (volatile T *obj, R(T::*method)(A0, A1) volatile) | |
Create a Callback with a member function. | |
template<typename T > | |
Callback (const volatile T *obj, R(T::*method)(A0, A1) const volatile) | |
Create a Callback with a member function. | |
Callback (R(*func)(void *, A0, A1), void *arg) | |
Create a Callback with a static function and bound pointer. | |
Callback (R(*func)(const void *, A0, A1), const void *arg) | |
Create a Callback with a static function and bound pointer. | |
Callback (R(*func)(volatile void *, A0, A1), volatile void *arg) | |
Create a Callback with a static function and bound pointer. | |
Callback (R(*func)(const volatile void *, A0, A1), const volatile void *arg) | |
Create a Callback with a static function and bound pointer. | |
template<typename T > | |
Callback (R(*func)(T *, A0, A1), T *arg) | |
Create a Callback with a static function and bound pointer. | |
template<typename T > | |
Callback (R(*func)(const T *, A0, A1), const T *arg) | |
Create a Callback with a static function and bound pointer. | |
template<typename T > | |
Callback (R(*func)(volatile T *, A0, A1), volatile T *arg) | |
Create a Callback with a static function and bound pointer. | |
template<typename T > | |
Callback (R(*func)(const volatile T *, A0, A1), const volatile T *arg) | |
Create a Callback with a static function and bound pointer. | |
template<typename F > | |
Callback (F f, typename detail::enable_if< detail::is_type< R(F::*)(A0, A1),&F::operator()>::value &&sizeof(F)<=sizeof(uintptr_t) >::type=detail::nil()) | |
Create a Callback with a function object. | |
MBED_DEPRECATED_SINCE ("mbed-os-5.1","Arguments to callback have been reordered to Callback(func, arg)") Callback(void *obj | |
Create a Callback with a static function and bound pointer. | |
MBED_DEPRECATED_SINCE ("mbed-os-5.1","Arguments to callback have been reordered to Callback(func, arg)") Callback(const void *obj | |
Create a Callback with a static function and bound pointer. | |
MBED_DEPRECATED_SINCE ("mbed-os-5.1","Arguments to callback have been reordered to Callback(func, arg)") Callback(volatile void *obj | |
Create a Callback with a static function and bound pointer. | |
MBED_DEPRECATED_SINCE ("mbed-os-5.1","Arguments to callback have been reordered to Callback(func, arg)") Callback(const volatile void *obj | |
Create a Callback with a static function and bound pointer. | |
~Callback () | |
Destroy a callback. | |
void | attach (R(*func)(A0, A1)) |
Attach a static function. | |
void | attach (const Callback< R(A0, A1)> &func) |
Attach a Callback. | |
template<typename T > | |
void | attach (T *obj, R(T::*method)(A0, A1)) |
Attach a member function. | |
template<typename T > | |
void | attach (const T *obj, R(T::*method)(A0, A1) const) |
Attach a member function. | |
template<typename T > | |
void | attach (volatile T *obj, R(T::*method)(A0, A1) volatile) |
Attach a member function. | |
template<typename T > | |
void | attach (const volatile T *obj, R(T::*method)(A0, A1) const volatile) |
Attach a member function. | |
void | attach (R(*func)(void *, A0, A1), void *arg) |
Attach a static function with a bound pointer. | |
void | attach (R(*func)(const void *, A0, A1), const void *arg) |
Attach a static function with a bound pointer. | |
void | attach (R(*func)(volatile void *, A0, A1), volatile void *arg) |
Attach a static function with a bound pointer. | |
void | attach (R(*func)(const volatile void *, A0, A1), const volatile void *arg) |
Attach a static function with a bound pointer. | |
template<typename T > | |
void | attach (R(*func)(T *, A0, A1), T *arg) |
Attach a static function with a bound pointer. | |
template<typename T > | |
void | attach (R(*func)(const T *, A0, A1), const T *arg) |
Attach a static function with a bound pointer. | |
template<typename T > | |
void | attach (R(*func)(volatile T *, A0, A1), volatile T *arg) |
Attach a static function with a bound pointer. | |
template<typename T > | |
void | attach (R(*func)(const volatile T *, A0, A1), const volatile T *arg) |
Attach a static function with a bound pointer. | |
template<typename F > | |
void | attach (F f, typename detail::enable_if< detail::is_type< R(F::*)(A0, A1),&F::operator()>::value &&sizeof(F)<=sizeof(uintptr_t) >::type=detail::nil()) |
Attach a function object. | |
MBED_DEPRECATED_SINCE ("mbed-os-5.1","Arguments to callback have been reordered to attach(func, arg)") void attach(void *obj | |
Attach a static function with a bound pointer. | |
MBED_DEPRECATED_SINCE ("mbed-os-5.1","Arguments to callback have been reordered to attach(func, arg)") void attach(const void *obj | |
Attach a static function with a bound pointer. | |
MBED_DEPRECATED_SINCE ("mbed-os-5.1","Arguments to callback have been reordered to attach(func, arg)") void attach(volatile void *obj | |
Attach a static function with a bound pointer. | |
MBED_DEPRECATED_SINCE ("mbed-os-5.1","Arguments to callback have been reordered to attach(func, arg)") void attach(const volatile void *obj | |
Attach a static function with a bound pointer. | |
Callback & | operator= (const Callback &that) |
Assign a callback. | |
R | call (A0 a0, A1 a1) const |
Call the attached function. | |
R | operator() (A0 a0, A1 a1) const |
Call the attached function. | |
operator bool () const | |
Test if function has been attached. | |
static R | thunk (void *func, A0 a0, A1 a1) |
Static thunk for passing as C-style function. | |
Callback (const Callback< R(A0, A1, A2)> &func) | |
Attach a Callback. | |
template<typename T > | |
Callback (T *obj, R(T::*method)(A0, A1, A2)) | |
Create a Callback with a member function. | |
template<typename T > | |
Callback (const T *obj, R(T::*method)(A0, A1, A2) const) | |
Create a Callback with a member function. | |
template<typename T > | |
Callback (volatile T *obj, R(T::*method)(A0, A1, A2) volatile) | |
Create a Callback with a member function. | |
template<typename T > | |
Callback (const volatile T *obj, R(T::*method)(A0, A1, A2) const volatile) | |
Create a Callback with a member function. | |
Callback (R(*func)(void *, A0, A1, A2), void *arg) | |
Create a Callback with a static function and bound pointer. | |
Callback (R(*func)(const void *, A0, A1, A2), const void *arg) | |
Create a Callback with a static function and bound pointer. | |
Callback (R(*func)(volatile void *, A0, A1, A2), volatile void *arg) | |
Create a Callback with a static function and bound pointer. | |
Callback (R(*func)(const volatile void *, A0, A1, A2), const volatile void *arg) | |
Create a Callback with a static function and bound pointer. | |
template<typename T > | |
Callback (R(*func)(T *, A0, A1, A2), T *arg) | |
Create a Callback with a static function and bound pointer. | |
template<typename T > | |
Callback (R(*func)(const T *, A0, A1, A2), const T *arg) | |
Create a Callback with a static function and bound pointer. | |
template<typename T > | |
Callback (R(*func)(volatile T *, A0, A1, A2), volatile T *arg) | |
Create a Callback with a static function and bound pointer. | |
template<typename T > | |
Callback (R(*func)(const volatile T *, A0, A1, A2), const volatile T *arg) | |
Create a Callback with a static function and bound pointer. | |
template<typename F > | |
Callback (F f, typename detail::enable_if< detail::is_type< R(F::*)(A0, A1, A2),&F::operator()>::value &&sizeof(F)<=sizeof(uintptr_t) >::type=detail::nil()) | |
Create a Callback with a function object. | |
MBED_DEPRECATED_SINCE ("mbed-os-5.1","Arguments to callback have been reordered to Callback(func, arg)") Callback(void *obj | |
Create a Callback with a static function and bound pointer. | |
MBED_DEPRECATED_SINCE ("mbed-os-5.1","Arguments to callback have been reordered to Callback(func, arg)") Callback(const void *obj | |
Create a Callback with a static function and bound pointer. | |
MBED_DEPRECATED_SINCE ("mbed-os-5.1","Arguments to callback have been reordered to Callback(func, arg)") Callback(volatile void *obj | |
Create a Callback with a static function and bound pointer. | |
MBED_DEPRECATED_SINCE ("mbed-os-5.1","Arguments to callback have been reordered to Callback(func, arg)") Callback(const volatile void *obj | |
Create a Callback with a static function and bound pointer. | |
~Callback () | |
Destroy a callback. | |
void | attach (R(*func)(A0, A1, A2)) |
Attach a static function. | |
void | attach (const Callback< R(A0, A1, A2)> &func) |
Attach a Callback. | |
template<typename T > | |
void | attach (T *obj, R(T::*method)(A0, A1, A2)) |
Attach a member function. | |
template<typename T > | |
void | attach (const T *obj, R(T::*method)(A0, A1, A2) const) |
Attach a member function. | |
template<typename T > | |
void | attach (volatile T *obj, R(T::*method)(A0, A1, A2) volatile) |
Attach a member function. | |
template<typename T > | |
void | attach (const volatile T *obj, R(T::*method)(A0, A1, A2) const volatile) |
Attach a member function. | |
void | attach (R(*func)(void *, A0, A1, A2), void *arg) |
Attach a static function with a bound pointer. | |
void | attach (R(*func)(const void *, A0, A1, A2), const void *arg) |
Attach a static function with a bound pointer. | |
void | attach (R(*func)(volatile void *, A0, A1, A2), volatile void *arg) |
Attach a static function with a bound pointer. | |
void | attach (R(*func)(const volatile void *, A0, A1, A2), const volatile void *arg) |
Attach a static function with a bound pointer. | |
template<typename T > | |
void | attach (R(*func)(T *, A0, A1, A2), T *arg) |
Attach a static function with a bound pointer. | |
template<typename T > | |
void | attach (R(*func)(const T *, A0, A1, A2), const T *arg) |
Attach a static function with a bound pointer. | |
template<typename T > | |
void | attach (R(*func)(volatile T *, A0, A1, A2), volatile T *arg) |
Attach a static function with a bound pointer. | |
template<typename T > | |
void | attach (R(*func)(const volatile T *, A0, A1, A2), const volatile T *arg) |
Attach a static function with a bound pointer. | |
template<typename F > | |
void | attach (F f, typename detail::enable_if< detail::is_type< R(F::*)(A0, A1, A2),&F::operator()>::value &&sizeof(F)<=sizeof(uintptr_t) >::type=detail::nil()) |
Attach a function object. | |
MBED_DEPRECATED_SINCE ("mbed-os-5.1","Arguments to callback have been reordered to attach(func, arg)") void attach(void *obj | |
Attach a static function with a bound pointer. | |
MBED_DEPRECATED_SINCE ("mbed-os-5.1","Arguments to callback have been reordered to attach(func, arg)") void attach(const void *obj | |
Attach a static function with a bound pointer. | |
MBED_DEPRECATED_SINCE ("mbed-os-5.1","Arguments to callback have been reordered to attach(func, arg)") void attach(volatile void *obj | |
Attach a static function with a bound pointer. | |
MBED_DEPRECATED_SINCE ("mbed-os-5.1","Arguments to callback have been reordered to attach(func, arg)") void attach(const volatile void *obj | |
Attach a static function with a bound pointer. | |
Callback & | operator= (const Callback &that) |
Assign a callback. | |
R | call (A0 a0, A1 a1, A2 a2) const |
Call the attached function. | |
R | operator() (A0 a0, A1 a1, A2 a2) const |
Call the attached function. | |
operator bool () const | |
Test if function has been attached. | |
static R | thunk (void *func, A0 a0, A1 a1, A2 a2) |
Static thunk for passing as C-style function. | |
Callback (const Callback< R(A0, A1, A2, A3)> &func) | |
Attach a Callback. | |
template<typename T > | |
Callback (T *obj, R(T::*method)(A0, A1, A2, A3)) | |
Create a Callback with a member function. | |
template<typename T > | |
Callback (const T *obj, R(T::*method)(A0, A1, A2, A3) const) | |
Create a Callback with a member function. | |
template<typename T > | |
Callback (volatile T *obj, R(T::*method)(A0, A1, A2, A3) volatile) | |
Create a Callback with a member function. | |
template<typename T > | |
Callback (const volatile T *obj, R(T::*method)(A0, A1, A2, A3) const volatile) | |
Create a Callback with a member function. | |
Callback (R(*func)(void *, A0, A1, A2, A3), void *arg) | |
Create a Callback with a static function and bound pointer. | |
Callback (R(*func)(const void *, A0, A1, A2, A3), const void *arg) | |
Create a Callback with a static function and bound pointer. | |
Callback (R(*func)(volatile void *, A0, A1, A2, A3), volatile void *arg) | |
Create a Callback with a static function and bound pointer. | |
Callback (R(*func)(const volatile void *, A0, A1, A2, A3), const volatile void *arg) | |
Create a Callback with a static function and bound pointer. | |
template<typename T > | |
Callback (R(*func)(T *, A0, A1, A2, A3), T *arg) | |
Create a Callback with a static function and bound pointer. | |
template<typename T > | |
Callback (R(*func)(const T *, A0, A1, A2, A3), const T *arg) | |
Create a Callback with a static function and bound pointer. | |
template<typename T > | |
Callback (R(*func)(volatile T *, A0, A1, A2, A3), volatile T *arg) | |
Create a Callback with a static function and bound pointer. | |
template<typename T > | |
Callback (R(*func)(const volatile T *, A0, A1, A2, A3), const volatile T *arg) | |
Create a Callback with a static function and bound pointer. | |
template<typename F > | |
Callback (F f, typename detail::enable_if< detail::is_type< R(F::*)(A0, A1, A2, A3),&F::operator()>::value &&sizeof(F)<=sizeof(uintptr_t) >::type=detail::nil()) | |
Create a Callback with a function object. | |
MBED_DEPRECATED_SINCE ("mbed-os-5.1","Arguments to callback have been reordered to Callback(func, arg)") Callback(void *obj | |
Create a Callback with a static function and bound pointer. | |
MBED_DEPRECATED_SINCE ("mbed-os-5.1","Arguments to callback have been reordered to Callback(func, arg)") Callback(const void *obj | |
Create a Callback with a static function and bound pointer. | |
MBED_DEPRECATED_SINCE ("mbed-os-5.1","Arguments to callback have been reordered to Callback(func, arg)") Callback(volatile void *obj | |
Create a Callback with a static function and bound pointer. | |
MBED_DEPRECATED_SINCE ("mbed-os-5.1","Arguments to callback have been reordered to Callback(func, arg)") Callback(const volatile void *obj | |
Create a Callback with a static function and bound pointer. | |
~Callback () | |
Destroy a callback. | |
void | attach (R(*func)(A0, A1, A2, A3)) |
Attach a static function. | |
void | attach (const Callback< R(A0, A1, A2, A3)> &func) |
Attach a Callback. | |
template<typename T > | |
void | attach (T *obj, R(T::*method)(A0, A1, A2, A3)) |
Attach a member function. | |
template<typename T > | |
void | attach (const T *obj, R(T::*method)(A0, A1, A2, A3) const) |
Attach a member function. | |
template<typename T > | |
void | attach (volatile T *obj, R(T::*method)(A0, A1, A2, A3) volatile) |
Attach a member function. | |
template<typename T > | |
void | attach (const volatile T *obj, R(T::*method)(A0, A1, A2, A3) const volatile) |
Attach a member function. | |
void | attach (R(*func)(void *, A0, A1, A2, A3), void *arg) |
Attach a static function with a bound pointer. | |
void | attach (R(*func)(const void *, A0, A1, A2, A3), const void *arg) |
Attach a static function with a bound pointer. | |
void | attach (R(*func)(volatile void *, A0, A1, A2, A3), volatile void *arg) |
Attach a static function with a bound pointer. | |
void | attach (R(*func)(const volatile void *, A0, A1, A2, A3), const volatile void *arg) |
Attach a static function with a bound pointer. | |
template<typename T > | |
void | attach (R(*func)(T *, A0, A1, A2, A3), T *arg) |
Attach a static function with a bound pointer. | |
template<typename T > | |
void | attach (R(*func)(const T *, A0, A1, A2, A3), const T *arg) |
Attach a static function with a bound pointer. | |
template<typename T > | |
void | attach (R(*func)(volatile T *, A0, A1, A2, A3), volatile T *arg) |
Attach a static function with a bound pointer. | |
template<typename T > | |
void | attach (R(*func)(const volatile T *, A0, A1, A2, A3), const volatile T *arg) |
Attach a static function with a bound pointer. | |
template<typename F > | |
void | attach (F f, typename detail::enable_if< detail::is_type< R(F::*)(A0, A1, A2, A3),&F::operator()>::value &&sizeof(F)<=sizeof(uintptr_t) >::type=detail::nil()) |
Attach a function object. | |
MBED_DEPRECATED_SINCE ("mbed-os-5.1","Arguments to callback have been reordered to attach(func, arg)") void attach(void *obj | |
Attach a static function with a bound pointer. | |
MBED_DEPRECATED_SINCE ("mbed-os-5.1","Arguments to callback have been reordered to attach(func, arg)") void attach(const void *obj | |
Attach a static function with a bound pointer. | |
MBED_DEPRECATED_SINCE ("mbed-os-5.1","Arguments to callback have been reordered to attach(func, arg)") void attach(volatile void *obj | |
Attach a static function with a bound pointer. | |
MBED_DEPRECATED_SINCE ("mbed-os-5.1","Arguments to callback have been reordered to attach(func, arg)") void attach(const volatile void *obj | |
Attach a static function with a bound pointer. | |
Callback & | operator= (const Callback &that) |
Assign a callback. | |
R | call (A0 a0, A1 a1, A2 a2, A3 a3) const |
Call the attached function. | |
R | operator() (A0 a0, A1 a1, A2 a2, A3 a3) const |
Call the attached function. | |
operator bool () const | |
Test if function has been attached. | |
static R | thunk (void *func, A0 a0, A1 a1, A2 a2, A3 a3) |
Static thunk for passing as C-style function. | |
Callback (const Callback< R(A0, A1, A2, A3, A4)> &func) | |
Attach a Callback. | |
template<typename T > | |
Callback (T *obj, R(T::*method)(A0, A1, A2, A3, A4)) | |
Create a Callback with a member function. | |
template<typename T > | |
Callback (const T *obj, R(T::*method)(A0, A1, A2, A3, A4) const) | |
Create a Callback with a member function. | |
template<typename T > | |
Callback (volatile T *obj, R(T::*method)(A0, A1, A2, A3, A4) volatile) | |
Create a Callback with a member function. | |
template<typename T > | |
Callback (const volatile T *obj, R(T::*method)(A0, A1, A2, A3, A4) const volatile) | |
Create a Callback with a member function. | |
Callback (R(*func)(void *, A0, A1, A2, A3, A4), void *arg) | |
Create a Callback with a static function and bound pointer. | |
Callback (R(*func)(const void *, A0, A1, A2, A3, A4), const void *arg) | |
Create a Callback with a static function and bound pointer. | |
Callback (R(*func)(volatile void *, A0, A1, A2, A3, A4), volatile void *arg) | |
Create a Callback with a static function and bound pointer. | |
Callback (R(*func)(const volatile void *, A0, A1, A2, A3, A4), const volatile void *arg) | |
Create a Callback with a static function and bound pointer. | |
template<typename T > | |
Callback (R(*func)(T *, A0, A1, A2, A3, A4), T *arg) | |
Create a Callback with a static function and bound pointer. | |
template<typename T > | |
Callback (R(*func)(const T *, A0, A1, A2, A3, A4), const T *arg) | |
Create a Callback with a static function and bound pointer. | |
template<typename T > | |
Callback (R(*func)(volatile T *, A0, A1, A2, A3, A4), volatile T *arg) | |
Create a Callback with a static function and bound pointer. | |
template<typename T > | |
Callback (R(*func)(const volatile T *, A0, A1, A2, A3, A4), const volatile T *arg) | |
Create a Callback with a static function and bound pointer. | |
template<typename F > | |
Callback (F f, typename detail::enable_if< detail::is_type< R(F::*)(A0, A1, A2, A3, A4),&F::operator()>::value &&sizeof(F)<=sizeof(uintptr_t) >::type=detail::nil()) | |
Create a Callback with a function object. | |
MBED_DEPRECATED_SINCE ("mbed-os-5.1","Arguments to callback have been reordered to Callback(func, arg)") Callback(void *obj | |
Create a Callback with a static function and bound pointer. | |
MBED_DEPRECATED_SINCE ("mbed-os-5.1","Arguments to callback have been reordered to Callback(func, arg)") Callback(const void *obj | |
Create a Callback with a static function and bound pointer. | |
MBED_DEPRECATED_SINCE ("mbed-os-5.1","Arguments to callback have been reordered to Callback(func, arg)") Callback(volatile void *obj | |
Create a Callback with a static function and bound pointer. | |
MBED_DEPRECATED_SINCE ("mbed-os-5.1","Arguments to callback have been reordered to Callback(func, arg)") Callback(const volatile void *obj | |
Create a Callback with a static function and bound pointer. | |
~Callback () | |
Destroy a callback. | |
void | attach (R(*func)(A0, A1, A2, A3, A4)) |
Attach a static function. | |
void | attach (const Callback< R(A0, A1, A2, A3, A4)> &func) |
Attach a Callback. | |
template<typename T > | |
void | attach (T *obj, R(T::*method)(A0, A1, A2, A3, A4)) |
Attach a member function. | |
template<typename T > | |
void | attach (const T *obj, R(T::*method)(A0, A1, A2, A3, A4) const) |
Attach a member function. | |
template<typename T > | |
void | attach (volatile T *obj, R(T::*method)(A0, A1, A2, A3, A4) volatile) |
Attach a member function. | |
template<typename T > | |
void | attach (const volatile T *obj, R(T::*method)(A0, A1, A2, A3, A4) const volatile) |
Attach a member function. | |
void | attach (R(*func)(void *, A0, A1, A2, A3, A4), void *arg) |
Attach a static function with a bound pointer. | |
void | attach (R(*func)(const void *, A0, A1, A2, A3, A4), const void *arg) |
Attach a static function with a bound pointer. | |
void | attach (R(*func)(volatile void *, A0, A1, A2, A3, A4), volatile void *arg) |
Attach a static function with a bound pointer. | |
void | attach (R(*func)(const volatile void *, A0, A1, A2, A3, A4), const volatile void *arg) |
Attach a static function with a bound pointer. | |
template<typename T > | |
void | attach (R(*func)(T *, A0, A1, A2, A3, A4), T *arg) |
Attach a static function with a bound pointer. | |
template<typename T > | |
void | attach (R(*func)(const T *, A0, A1, A2, A3, A4), const T *arg) |
Attach a static function with a bound pointer. | |
template<typename T > | |
void | attach (R(*func)(volatile T *, A0, A1, A2, A3, A4), volatile T *arg) |
Attach a static function with a bound pointer. | |
template<typename T > | |
void | attach (R(*func)(const volatile T *, A0, A1, A2, A3, A4), const volatile T *arg) |
Attach a static function with a bound pointer. | |
template<typename F > | |
void | attach (F f, typename detail::enable_if< detail::is_type< R(F::*)(A0, A1, A2, A3, A4),&F::operator()>::value &&sizeof(F)<=sizeof(uintptr_t) >::type=detail::nil()) |
Attach a function object. | |
MBED_DEPRECATED_SINCE ("mbed-os-5.1","Arguments to callback have been reordered to attach(func, arg)") void attach(void *obj | |
Attach a static function with a bound pointer. | |
MBED_DEPRECATED_SINCE ("mbed-os-5.1","Arguments to callback have been reordered to attach(func, arg)") void attach(const void *obj | |
Attach a static function with a bound pointer. | |
MBED_DEPRECATED_SINCE ("mbed-os-5.1","Arguments to callback have been reordered to attach(func, arg)") void attach(volatile void *obj | |
Attach a static function with a bound pointer. | |
MBED_DEPRECATED_SINCE ("mbed-os-5.1","Arguments to callback have been reordered to attach(func, arg)") void attach(const volatile void *obj | |
Attach a static function with a bound pointer. | |
Callback & | operator= (const Callback &that) |
Assign a callback. | |
R | call (A0 a0, A1 a1, A2 a2, A3 a3, A4 a4) const |
Call the attached function. | |
R | operator() (A0 a0, A1 a1, A2 a2, A3 a3, A4 a4) const |
Call the attached function. | |
operator bool () const | |
Test if function has been attached. | |
static R | thunk (void *func, A0 a0, A1 a1, A2 a2, A3 a3, A4 a4) |
Static thunk for passing as C-style function. | |
template<typename R > | |
Callback< R()> | callback (R(*func)()=0) |
Create a callback class with type infered from the arguments. | |
template<typename R > | |
Callback< R()> | callback (const Callback< R()> &func) |
Create a callback class with type infered from the arguments. | |
template<typename T , typename R > | |
Callback< R()> | callback (T *obj, R(T::*func)()) |
Create a callback class with type infered from the arguments. | |
template<typename T , typename R > | |
Callback< R()> | callback (const T *obj, R(T::*func)() const) |
Create a callback class with type infered from the arguments. | |
template<typename T , typename R > | |
Callback< R()> | callback (volatile T *obj, R(T::*func)() volatile) |
Create a callback class with type infered from the arguments. | |
template<typename T , typename R > | |
Callback< R()> | callback (const volatile T *obj, R(T::*func)() const volatile) |
Create a callback class with type infered from the arguments. | |
template<typename R > | |
Callback< R()> | callback (R(*func)(void *), void *arg) |
Create a callback class with type infered from the arguments. | |
template<typename R > | |
Callback< R()> | callback (R(*func)(const void *), const void *arg) |
Create a callback class with type infered from the arguments. | |
template<typename R > | |
Callback< R()> | callback (R(*func)(volatile void *), volatile void *arg) |
Create a callback class with type infered from the arguments. | |
template<typename R > | |
Callback< R()> | callback (R(*func)(const volatile void *), const volatile void *arg) |
Create a callback class with type infered from the arguments. | |
template<typename T , typename R > | |
Callback< R()> | callback (R(*func)(T *), T *arg) |
Create a callback class with type infered from the arguments. | |
template<typename T , typename R > | |
Callback< R()> | callback (R(*func)(const T *), const T *arg) |
Create a callback class with type infered from the arguments. | |
template<typename T , typename R > | |
Callback< R()> | callback (R(*func)(volatile T *), volatile T *arg) |
Create a callback class with type infered from the arguments. | |
template<typename T , typename R > | |
Callback< R()> | callback (R(*func)(const volatile T *), const volatile T *arg) |
Create a callback class with type infered from the arguments. | |
template<typename R > | |
MBED_DEPRECATED_SINCE ("mbed-os-5.1","Arguments to callback have been reordered to callback(func, arg)") Callback< R()> callback(void *obj | |
Create a callback class with type infered from the arguments. | |
template<typename R , typename A0 > | |
Callback< R(A0)> | callback (R(*func)(A0)=0) |
Create a callback class with type infered from the arguments. | |
template<typename R , typename A0 > | |
Callback< R(A0)> | callback (const Callback< R(A0)> &func) |
Create a callback class with type infered from the arguments. | |
template<typename T , typename R , typename A0 > | |
Callback< R(A0)> | callback (T *obj, R(T::*func)(A0)) |
Create a callback class with type infered from the arguments. | |
template<typename T , typename R , typename A0 > | |
Callback< R(A0)> | callback (const T *obj, R(T::*func)(A0) const) |
Create a callback class with type infered from the arguments. | |
template<typename T , typename R , typename A0 > | |
Callback< R(A0)> | callback (volatile T *obj, R(T::*func)(A0) volatile) |
Create a callback class with type infered from the arguments. | |
template<typename T , typename R , typename A0 > | |
Callback< R(A0)> | callback (const volatile T *obj, R(T::*func)(A0) const volatile) |
Create a callback class with type infered from the arguments. | |
template<typename R , typename A0 > | |
Callback< R(A0)> | callback (R(*func)(void *, A0), void *arg) |
Create a callback class with type infered from the arguments. | |
template<typename R , typename A0 > | |
Callback< R(A0)> | callback (R(*func)(const void *, A0), const void *arg) |
Create a callback class with type infered from the arguments. | |
template<typename R , typename A0 > | |
Callback< R(A0)> | callback (R(*func)(volatile void *, A0), volatile void *arg) |
Create a callback class with type infered from the arguments. | |
template<typename R , typename A0 > | |
Callback< R(A0)> | callback (R(*func)(const volatile void *, A0), const volatile void *arg) |
Create a callback class with type infered from the arguments. | |
template<typename T , typename R , typename A0 > | |
Callback< R(A0)> | callback (R(*func)(T *, A0), T *arg) |
Create a callback class with type infered from the arguments. | |
template<typename T , typename R , typename A0 > | |
Callback< R(A0)> | callback (R(*func)(const T *, A0), const T *arg) |
Create a callback class with type infered from the arguments. | |
template<typename T , typename R , typename A0 > | |
Callback< R(A0)> | callback (R(*func)(volatile T *, A0), volatile T *arg) |
Create a callback class with type infered from the arguments. | |
template<typename T , typename R , typename A0 > | |
Callback< R(A0)> | callback (R(*func)(const volatile T *, A0), const volatile T *arg) |
Create a callback class with type infered from the arguments. | |
template<typename R , typename A0 , typename A1 > | |
Callback< R(A0, A1)> | callback (R(*func)(A0, A1)=0) |
Create a callback class with type infered from the arguments. | |
template<typename R , typename A0 , typename A1 > | |
Callback< R(A0, A1)> | callback (const Callback< R(A0, A1)> &func) |
Create a callback class with type infered from the arguments. | |
template<typename T , typename R , typename A0 , typename A1 > | |
Callback< R(A0, A1)> | callback (T *obj, R(T::*func)(A0, A1)) |
Create a callback class with type infered from the arguments. | |
template<typename T , typename R , typename A0 , typename A1 > | |
Callback< R(A0, A1)> | callback (const T *obj, R(T::*func)(A0, A1) const) |
Create a callback class with type infered from the arguments. | |
template<typename T , typename R , typename A0 , typename A1 > | |
Callback< R(A0, A1)> | callback (volatile T *obj, R(T::*func)(A0, A1) volatile) |
Create a callback class with type infered from the arguments. | |
template<typename T , typename R , typename A0 , typename A1 > | |
Callback< R(A0, A1)> | callback (const volatile T *obj, R(T::*func)(A0, A1) const volatile) |
Create a callback class with type infered from the arguments. | |
template<typename R , typename A0 , typename A1 > | |
Callback< R(A0, A1)> | callback (R(*func)(void *, A0, A1), void *arg) |
Create a callback class with type infered from the arguments. | |
template<typename R , typename A0 , typename A1 > | |
Callback< R(A0, A1)> | callback (R(*func)(const void *, A0, A1), const void *arg) |
Create a callback class with type infered from the arguments. | |
template<typename R , typename A0 , typename A1 > | |
Callback< R(A0, A1)> | callback (R(*func)(volatile void *, A0, A1), volatile void *arg) |
Create a callback class with type infered from the arguments. | |
template<typename R , typename A0 , typename A1 > | |
Callback< R(A0, A1)> | callback (R(*func)(const volatile void *, A0, A1), const volatile void *arg) |
Create a callback class with type infered from the arguments. | |
template<typename T , typename R , typename A0 , typename A1 > | |
Callback< R(A0, A1)> | callback (R(*func)(T *, A0, A1), T *arg) |
Create a callback class with type infered from the arguments. | |
template<typename T , typename R , typename A0 , typename A1 > | |
Callback< R(A0, A1)> | callback (R(*func)(const T *, A0, A1), const T *arg) |
Create a callback class with type infered from the arguments. | |
template<typename T , typename R , typename A0 , typename A1 > | |
Callback< R(A0, A1)> | callback (R(*func)(volatile T *, A0, A1), volatile T *arg) |
Create a callback class with type infered from the arguments. | |
template<typename T , typename R , typename A0 , typename A1 > | |
Callback< R(A0, A1)> | callback (R(*func)(const volatile T *, A0, A1), const volatile T *arg) |
Create a callback class with type infered from the arguments. | |
template<typename R , typename A0 , typename A1 , typename A2 > | |
Callback< R(A0, A1, A2)> | callback (R(*func)(A0, A1, A2)=0) |
Create a callback class with type infered from the arguments. | |
template<typename R , typename A0 , typename A1 , typename A2 > | |
Callback< R(A0, A1, A2)> | callback (const Callback< R(A0, A1, A2)> &func) |
Create a callback class with type infered from the arguments. | |
template<typename T , typename R , typename A0 , typename A1 , typename A2 > | |
Callback< R(A0, A1, A2)> | callback (T *obj, R(T::*func)(A0, A1, A2)) |
Create a callback class with type infered from the arguments. | |
template<typename T , typename R , typename A0 , typename A1 , typename A2 > | |
Callback< R(A0, A1, A2)> | callback (const T *obj, R(T::*func)(A0, A1, A2) const) |
Create a callback class with type infered from the arguments. | |
template<typename T , typename R , typename A0 , typename A1 , typename A2 > | |
Callback< R(A0, A1, A2)> | callback (volatile T *obj, R(T::*func)(A0, A1, A2) volatile) |
Create a callback class with type infered from the arguments. | |
template<typename T , typename R , typename A0 , typename A1 , typename A2 > | |
Callback< R(A0, A1, A2)> | callback (const volatile T *obj, R(T::*func)(A0, A1, A2) const volatile) |
Create a callback class with type infered from the arguments. | |
template<typename R , typename A0 , typename A1 , typename A2 > | |
Callback< R(A0, A1, A2)> | callback (R(*func)(void *, A0, A1, A2), void *arg) |
Create a callback class with type infered from the arguments. | |
template<typename R , typename A0 , typename A1 , typename A2 > | |
Callback< R(A0, A1, A2)> | callback (R(*func)(const void *, A0, A1, A2), const void *arg) |
Create a callback class with type infered from the arguments. | |
template<typename R , typename A0 , typename A1 , typename A2 > | |
Callback< R(A0, A1, A2)> | callback (R(*func)(volatile void *, A0, A1, A2), volatile void *arg) |
Create a callback class with type infered from the arguments. | |
template<typename R , typename A0 , typename A1 , typename A2 > | |
Callback< R(A0, A1, A2)> | callback (R(*func)(const volatile void *, A0, A1, A2), const volatile void *arg) |
Create a callback class with type infered from the arguments. | |
template<typename T , typename R , typename A0 , typename A1 , typename A2 > | |
Callback< R(A0, A1, A2)> | callback (R(*func)(T *, A0, A1, A2), T *arg) |
Create a callback class with type infered from the arguments. | |
template<typename T , typename R , typename A0 , typename A1 , typename A2 > | |
Callback< R(A0, A1, A2)> | callback (R(*func)(const T *, A0, A1, A2), const T *arg) |
Create a callback class with type infered from the arguments. | |
template<typename T , typename R , typename A0 , typename A1 , typename A2 > | |
Callback< R(A0, A1, A2)> | callback (R(*func)(volatile T *, A0, A1, A2), volatile T *arg) |
Create a callback class with type infered from the arguments. | |
template<typename T , typename R , typename A0 , typename A1 , typename A2 > | |
Callback< R(A0, A1, A2)> | callback (R(*func)(const volatile T *, A0, A1, A2), const volatile T *arg) |
Create a callback class with type infered from the arguments. | |
template<typename R , typename A0 , typename A1 , typename A2 , typename A3 > | |
Callback< R(A0, A1, A2, A3)> | callback (R(*func)(A0, A1, A2, A3)=0) |
Create a callback class with type infered from the arguments. | |
template<typename R , typename A0 , typename A1 , typename A2 , typename A3 > | |
Callback< R(A0, A1, A2, A3)> | callback (const Callback< R(A0, A1, A2, A3)> &func) |
Create a callback class with type infered from the arguments. | |
template<typename T , typename R , typename A0 , typename A1 , typename A2 , typename A3 > | |
Callback< R(A0, A1, A2, A3)> | callback (T *obj, R(T::*func)(A0, A1, A2, A3)) |
Create a callback class with type infered from the arguments. | |
template<typename T , typename R , typename A0 , typename A1 , typename A2 , typename A3 > | |
Callback< R(A0, A1, A2, A3)> | callback (const T *obj, R(T::*func)(A0, A1, A2, A3) const) |
Create a callback class with type infered from the arguments. | |
template<typename T , typename R , typename A0 , typename A1 , typename A2 , typename A3 > | |
Callback< R(A0, A1, A2, A3)> | callback (volatile T *obj, R(T::*func)(A0, A1, A2, A3) volatile) |
Create a callback class with type infered from the arguments. | |
template<typename T , typename R , typename A0 , typename A1 , typename A2 , typename A3 > | |
Callback< R(A0, A1, A2, A3)> | callback (const volatile T *obj, R(T::*func)(A0, A1, A2, A3) const volatile) |
Create a callback class with type infered from the arguments. | |
template<typename R , typename A0 , typename A1 , typename A2 , typename A3 > | |
Callback< R(A0, A1, A2, A3)> | callback (R(*func)(void *, A0, A1, A2, A3), void *arg) |
Create a callback class with type infered from the arguments. | |
template<typename R , typename A0 , typename A1 , typename A2 , typename A3 > | |
Callback< R(A0, A1, A2, A3)> | callback (R(*func)(const void *, A0, A1, A2, A3), const void *arg) |
Create a callback class with type infered from the arguments. | |
template<typename R , typename A0 , typename A1 , typename A2 , typename A3 > | |
Callback< R(A0, A1, A2, A3)> | callback (R(*func)(volatile void *, A0, A1, A2, A3), volatile void *arg) |
Create a callback class with type infered from the arguments. | |
template<typename R , typename A0 , typename A1 , typename A2 , typename A3 > | |
Callback< R(A0, A1, A2, A3)> | callback (R(*func)(const volatile void *, A0, A1, A2, A3), const volatile void *arg) |
Create a callback class with type infered from the arguments. | |
template<typename T , typename R , typename A0 , typename A1 , typename A2 , typename A3 > | |
Callback< R(A0, A1, A2, A3)> | callback (R(*func)(T *, A0, A1, A2, A3), T *arg) |
Create a callback class with type infered from the arguments. | |
template<typename T , typename R , typename A0 , typename A1 , typename A2 , typename A3 > | |
Callback< R(A0, A1, A2, A3)> | callback (R(*func)(const T *, A0, A1, A2, A3), const T *arg) |
Create a callback class with type infered from the arguments. | |
template<typename T , typename R , typename A0 , typename A1 , typename A2 , typename A3 > | |
Callback< R(A0, A1, A2, A3)> | callback (R(*func)(volatile T *, A0, A1, A2, A3), volatile T *arg) |
Create a callback class with type infered from the arguments. | |
template<typename T , typename R , typename A0 , typename A1 , typename A2 , typename A3 > | |
Callback< R(A0, A1, A2, A3)> | callback (R(*func)(const volatile T *, A0, A1, A2, A3), const volatile T *arg) |
Create a callback class with type infered from the arguments. | |
template<typename R , typename A0 , typename A1 , typename A2 , typename A3 , typename A4 > | |
Callback< R(A0, A1, A2, A3, A4)> | callback (R(*func)(A0, A1, A2, A3, A4)=0) |
Create a callback class with type infered from the arguments. | |
template<typename R , typename A0 , typename A1 , typename A2 , typename A3 , typename A4 > | |
Callback< R(A0, A1, A2, A3, A4)> | callback (const Callback< R(A0, A1, A2, A3, A4)> &func) |
Create a callback class with type infered from the arguments. | |
template<typename T , typename R , typename A0 , typename A1 , typename A2 , typename A3 , typename A4 > | |
Callback< R(A0, A1, A2, A3, A4)> | callback (T *obj, R(T::*func)(A0, A1, A2, A3, A4)) |
Create a callback class with type infered from the arguments. | |
template<typename T , typename R , typename A0 , typename A1 , typename A2 , typename A3 , typename A4 > | |
Callback< R(A0, A1, A2, A3, A4)> | callback (const T *obj, R(T::*func)(A0, A1, A2, A3, A4) const) |
Create a callback class with type infered from the arguments. | |
template<typename T , typename R , typename A0 , typename A1 , typename A2 , typename A3 , typename A4 > | |
Callback< R(A0, A1, A2, A3, A4)> | callback (volatile T *obj, R(T::*func)(A0, A1, A2, A3, A4) volatile) |
Create a callback class with type infered from the arguments. | |
template<typename T , typename R , typename A0 , typename A1 , typename A2 , typename A3 , typename A4 > | |
Callback< R(A0, A1, A2, A3, A4)> | callback (const volatile T *obj, R(T::*func)(A0, A1, A2, A3, A4) const volatile) |
Create a callback class with type infered from the arguments. | |
template<typename R , typename A0 , typename A1 , typename A2 , typename A3 , typename A4 > | |
Callback< R(A0, A1, A2, A3, A4)> | callback (R(*func)(void *, A0, A1, A2, A3, A4), void *arg) |
Create a callback class with type infered from the arguments. | |
template<typename R , typename A0 , typename A1 , typename A2 , typename A3 , typename A4 > | |
Callback< R(A0, A1, A2, A3, A4)> | callback (R(*func)(const void *, A0, A1, A2, A3, A4), const void *arg) |
Create a callback class with type infered from the arguments. | |
template<typename R , typename A0 , typename A1 , typename A2 , typename A3 , typename A4 > | |
Callback< R(A0, A1, A2, A3, A4)> | callback (R(*func)(volatile void *, A0, A1, A2, A3, A4), volatile void *arg) |
Create a callback class with type infered from the arguments. | |
template<typename R , typename A0 , typename A1 , typename A2 , typename A3 , typename A4 > | |
Callback< R(A0, A1, A2, A3, A4)> | callback (R(*func)(const volatile void *, A0, A1, A2, A3, A4), const volatile void *arg) |
Create a callback class with type infered from the arguments. | |
template<typename T , typename R , typename A0 , typename A1 , typename A2 , typename A3 , typename A4 > | |
Callback< R(A0, A1, A2, A3, A4)> | callback (R(*func)(T *, A0, A1, A2, A3, A4), T *arg) |
Create a callback class with type infered from the arguments. | |
template<typename T , typename R , typename A0 , typename A1 , typename A2 , typename A3 , typename A4 > | |
Callback< R(A0, A1, A2, A3, A4)> | callback (R(*func)(const T *, A0, A1, A2, A3, A4), const T *arg) |
Create a callback class with type infered from the arguments. | |
template<typename T , typename R , typename A0 , typename A1 , typename A2 , typename A3 , typename A4 > | |
Callback< R(A0, A1, A2, A3, A4)> | callback (R(*func)(volatile T *, A0, A1, A2, A3, A4), volatile T *arg) |
Create a callback class with type infered from the arguments. | |
template<typename T , typename R , typename A0 , typename A1 , typename A2 , typename A3 , typename A4 > | |
Callback< R(A0, A1, A2, A3, A4)> | callback (R(*func)(const volatile T *, A0, A1, A2, A3, A4), const volatile T *arg) |
Create a callback class with type infered from the arguments. | |
pFunctionPointer_t | add (Callback< void()> func) |
Add a function at the end of the chain. | |
template<typename T , typename M > | |
MBED_DEPRECATED_SINCE ("mbed-os-5.1","The add function does not support cv-qualifiers. Replaced by ""add(callback(obj, method)).") pFunctionPointer_t add(T *obj | |
Add a function at the end of the chain. | |
pFunctionPointer_t | add_front (Callback< void()> func) |
Add a function at the beginning of the chain. | |
template<typename T , typename M > | |
MBED_DEPRECATED_SINCE ("mbed-os-5.1","The add_front function does not support cv-qualifiers. Replaced by ""add_front(callback(obj, method)).") pFunctionPointer_t add_front(T *obj | |
Add a function at the beginning of the chain. | |
pFunctionPointer_t | get (int i) const |
Get a function object from the chain. | |
int | find (pFunctionPointer_t f) const |
Look for a function object in the call chain. | |
void | clear () |
Clear the call chain (remove all functions in the chain). | |
bool | remove (pFunctionPointer_t f) |
Remove a function object from the chain. | |
void | call () |
Call all the functions in the chain in sequence. | |
void | push (const T &data) |
Push the transaction to the buffer. | |
bool | pop (T &data) |
Pop the transaction from the buffer. | |
bool | empty () |
Check if the buffer is empty. | |
bool | full () |
Check if the buffer is full. | |
void | reset () |
Reset the buffer. | |
bool | core_util_are_interrupts_enabled (void) |
Determine the current interrupts enabled state. | |
void | core_util_critical_section_enter (void) |
Mark the start of a critical section. | |
void | core_util_critical_section_exit (void) |
Mark the end of a critical section. | |
bool | core_util_atomic_cas_u8 (uint8_t *ptr, uint8_t *expectedCurrentValue, uint8_t desiredValue) |
Atomic compare and set. | |
bool | core_util_atomic_cas_u16 (uint16_t *ptr, uint16_t *expectedCurrentValue, uint16_t desiredValue) |
Atomic compare and set. | |
bool | core_util_atomic_cas_u32 (uint32_t *ptr, uint32_t *expectedCurrentValue, uint32_t desiredValue) |
Atomic compare and set. | |
bool | core_util_atomic_cas_ptr (void **ptr, void **expectedCurrentValue, void *desiredValue) |
Atomic compare and set. | |
uint8_t | core_util_atomic_incr_u8 (uint8_t *valuePtr, uint8_t delta) |
Atomic increment. | |
uint16_t | core_util_atomic_incr_u16 (uint16_t *valuePtr, uint16_t delta) |
Atomic increment. | |
uint32_t | core_util_atomic_incr_u32 (uint32_t *valuePtr, uint32_t delta) |
Atomic increment. | |
void * | core_util_atomic_incr_ptr (void **valuePtr, ptrdiff_t delta) |
Atomic increment. | |
uint8_t | core_util_atomic_decr_u8 (uint8_t *valuePtr, uint8_t delta) |
Atomic decrement. | |
uint16_t | core_util_atomic_decr_u16 (uint16_t *valuePtr, uint16_t delta) |
Atomic decrement. | |
uint32_t | core_util_atomic_decr_u32 (uint32_t *valuePtr, uint32_t delta) |
Atomic decrement. | |
void * | core_util_atomic_decr_ptr (void **valuePtr, ptrdiff_t delta) |
Atomic decrement. | |
void | mbed_assert_internal (const char *expr, const char *file, int line) |
Internal mbed assert function which is invoked when MBED_ASSERT macro failes. | |
static void | debug (const char *format,...) |
Output a debug message. | |
static void | debug_if (int condition, const char *format,...) |
Conditionally output a debug message. | |
int | mbed_interface_connected (void) |
Functions to control the mbed interface. | |
int | mbed_interface_reset (void) |
Instruct the mbed interface to reset, as if the reset button had been pressed. | |
int | mbed_interface_disconnect (void) |
This will disconnect the debug aspect of the interface, so semihosting will be disabled. | |
int | mbed_interface_powerdown (void) |
This will disconnect the debug aspect of the interface, and if the USB cable is not connected, also power down the interface. | |
int | mbed_interface_uid (char *uid) |
This returns a string containing the 32-character UID of the mbed interface This is a weak function that can be overwritten if required. | |
void | mbed_mac_address (char *mac) |
This returns a unique 6-byte MAC address, based on the interface UID If the interface is not present, it returns a default fixed MAC address (00:02:F7:F0:00:00) | |
void | mbed_die (void) |
Cause the mbed to flash the BLOD (Blue LEDs Of Death) sequence. | |
void | mbed_error_printf (const char *format,...) |
Print out an error message. | |
void | mbed_error_vfprintf (const char *format, va_list arg) |
Print out an error message. | |
void | mbed_mem_trace_set_callback (mbed_mem_trace_cb_t cb) |
Set the callback used by the memory tracer (use NULL for disable tracing). | |
void * | mbed_mem_trace_malloc (void *res, size_t size, void *caller) |
Trace a call to 'malloc'. | |
void * | mbed_mem_trace_realloc (void *res, void *ptr, size_t size, void *caller) |
Trace a call to 'realloc'. | |
void * | mbed_mem_trace_calloc (void *res, size_t num, size_t size, void *caller) |
Trace a call to 'calloc'. | |
void | mbed_mem_trace_free (void *ptr, void *caller) |
Trace a call to 'free'. | |
void | mbed_mem_trace_default_callback (uint8_t op, void *res, void *caller,...) |
Default memory trace callback. | |
void | mbed_stats_heap_get (mbed_stats_heap_t *stats) |
Fill the passed in structure with heap stats. | |
void | set_time (time_t t) |
Implementation of the C time.h functions. | |
void | attach_rtc (time_t(*read_rtc)(void), void(*write_rtc)(time_t), void(*init_rtc)(void), int(*isenabled_rtc)(void)) |
Attach an external RTC to be used for the C time functions. | |
static void | singleton_lock (void) |
Lock the singleton mutex. | |
static void | singleton_unlock (void) |
Unlock the singleton mutex. | |
Class * | get_object () |
Get object's instance for the transaction. | |
transaction_t * | get_transaction () |
Get the transaction. | |
Variables | |
size_t | tx_length |
Length of Tx buffer. | |
void * | rx_buffer |
Rx buffer. | |
size_t | rx_length |
Length of Rx buffer. | |
uint32_t | event |
Event for a transaction. | |
event_callback_t | callback |
User's callback. | |
uint8_t | width |
Buffer's word width (8, 16, 32, 64) | |
Friends | |
bool | operator== (const Callback &l, const Callback &r) |
Test for equality. | |
bool | operator!= (const Callback &l, const Callback &r) |
Test for inequality. | |
bool | operator== (const Callback &l, const Callback &r) |
Test for equality. | |
bool | operator!= (const Callback &l, const Callback &r) |
Test for inequality. | |
bool | operator== (const Callback &l, const Callback &r) |
Test for equality. | |
bool | operator!= (const Callback &l, const Callback &r) |
Test for inequality. | |
bool | operator== (const Callback &l, const Callback &r) |
Test for equality. | |
bool | operator!= (const Callback &l, const Callback &r) |
Test for inequality. | |
bool | operator== (const Callback &l, const Callback &r) |
Test for equality. | |
bool | operator!= (const Callback &l, const Callback &r) |
Test for inequality. | |
bool | operator== (const Callback &l, const Callback &r) |
Test for equality. | |
bool | operator!= (const Callback &l, const Callback &r) |
Test for inequality. |
Typedef Documentation
typedef void(* mbed_mem_trace_cb_t)(uint8_t op, void *res, void *caller,...) |
Type of the callback used by the memory tracer.
This callback is called when a memory allocation operation (malloc, realloc, calloc, free) is called and tracing is enabled for that memory allocation function.
- Parameters:
-
op the ID of the operation (MBED_MEM_TRACE_MALLOC, MBED_MEM_TRACE_REALLOC, MBED_MEM_TRACE_CALLOC or MBED_MEM_TRACE_FREE). res the result that the memory operation returned (NULL for 'free'). caller the caller of the memory operation. Note that the value of 'caller' might be unreliable.
The rest of the parameters passed 'mbed_mem_trace_cb_t' are the same as the memory operations that triggered its call (see 'man malloc' for details):
- for malloc: cb(MBED_MEM_TRACE_MALLOC, res, caller, size).
- for realloc: cb(MBED_MEM_TRACE_REALLOC, res, caller, ptr, size).
- for calloc: cb(MBED_MEM_TRACE_CALLOC, res, caller, nmemb, size).
- for free: cb(MBED_MEM_TRACE_FREE, NULL, caller, ptr).
Definition at line 60 of file mbed_mem_trace.h.
typedef Callback<void()>* pFunctionPointer_t |
Group one or more functions in an instance of a CallChain, then call them in sequence using CallChain::call().
Used mostly by the interrupt chaining code, but can be used for other purposes.
Synchronization level: Not protected
Example:
#include "mbed.h" CallChain chain; void first(void) { printf("'first' function.\n"); } void second(void) { printf("'second' function.\n"); } class Test { public: void f(void) { printf("A::f (class member).\n"); } }; int main() { Test test; chain.add(second); chain.add_front(first); chain.add(&test, &Test::f); chain.call(); }
Definition at line 65 of file CallChain.h.
Function Documentation
pFunctionPointer_t add | ( | Callback< void()> | func ) | [inherited] |
Add a function at the end of the chain.
- Parameters:
-
func A pointer to a void function
- Returns:
- The function object created for 'func'
Definition at line 28 of file CallChain.cpp.
pFunctionPointer_t add_front | ( | Callback< void()> | func ) | [inherited] |
Add a function at the beginning of the chain.
- Parameters:
-
func A pointer to a void function
- Returns:
- The function object created for 'func'
Definition at line 45 of file CallChain.cpp.
void attach | ( | const Callback< R()> & | func ) | [inherited] |
Attach a Callback.
- Parameters:
-
func The Callback to attach
Definition at line 360 of file Callback.h.
void attach | ( | R(*)(volatile T *) | func, |
volatile T * | arg | ||
) | [inherited] |
Attach a static function with a bound pointer.
- Parameters:
-
func Static function to attach arg Pointer argument to function
Definition at line 466 of file Callback.h.
void attach | ( | R(*)(const volatile T *) | func, |
const volatile T * | arg | ||
) | [inherited] |
Attach a static function with a bound pointer.
- Parameters:
-
func Static function to attach arg Pointer argument to function
Definition at line 476 of file Callback.h.
void attach | ( | R(*)(void *, A0, A1) | func, |
void * | arg | ||
) | [inherited] |
Attach a static function with a bound pointer.
- Parameters:
-
func Static function to attach arg Pointer argument to function
Definition at line 1821 of file Callback.h.
void attach | ( | R(*)(const void *, A0, A1) | func, |
const void * | arg | ||
) | [inherited] |
Attach a static function with a bound pointer.
- Parameters:
-
func Static function to attach arg Pointer argument to function
Definition at line 1830 of file Callback.h.
void attach | ( | R(*)(volatile void *, A0, A1) | func, |
volatile void * | arg | ||
) | [inherited] |
Attach a static function with a bound pointer.
- Parameters:
-
func Static function to attach arg Pointer argument to function
Definition at line 1839 of file Callback.h.
void attach | ( | R(*)(const volatile void *, A0, A1) | func, |
const volatile void * | arg | ||
) | [inherited] |
Attach a static function with a bound pointer.
- Parameters:
-
func Static function to attach arg Pointer argument to function
Definition at line 1848 of file Callback.h.
void attach | ( | R(*)(T *, A0, A1) | func, |
T * | arg | ||
) | [inherited] |
Attach a static function with a bound pointer.
- Parameters:
-
func Static function to attach arg Pointer argument to function
Definition at line 1858 of file Callback.h.
void attach | ( | R(*)(const T *, A0, A1) | func, |
const T * | arg | ||
) | [inherited] |
Attach a static function with a bound pointer.
- Parameters:
-
func Static function to attach arg Pointer argument to function
Definition at line 1868 of file Callback.h.
void attach | ( | R(*)(volatile T *, A0, A1) | func, |
volatile T * | arg | ||
) | [inherited] |
Attach a static function with a bound pointer.
- Parameters:
-
func Static function to attach arg Pointer argument to function
Definition at line 1878 of file Callback.h.
void attach | ( | R(*)(const volatile T *, A0, A1) | func, |
const volatile T * | arg | ||
) | [inherited] |
Attach a static function with a bound pointer.
- Parameters:
-
func Static function to attach arg Pointer argument to function
Definition at line 1888 of file Callback.h.
void attach | ( | F | f ) | [inherited] |
Attach a function object.
- Parameters:
-
func Function object to attach
- Note:
- The function object is limited to a single word of storage
Definition at line 486 of file Callback.h.
void attach | ( | F | f ) | [inherited] |
Attach a function object.
- Parameters:
-
func Function object to attach
- Note:
- The function object is limited to a single word of storage
Definition at line 1898 of file Callback.h.
void attach | ( | R(*)(A0, A1, A2, A3, A4) | func ) | [inherited] |
Attach a static function.
- Parameters:
-
func Static function to attach
Definition at line 3882 of file Callback.h.
void attach | ( | const Callback< R(A0, A1, A2, A3, A4)> & | func ) | [inherited] |
Attach a Callback.
- Parameters:
-
func The Callback to attach
Definition at line 3890 of file Callback.h.
void attach | ( | T * | obj, |
R(T::*)(A0, A1, A2, A3, A4) | method | ||
) | [inherited] |
Attach a member function.
- Parameters:
-
obj Pointer to object to invoke member function on method Member function to attach
Definition at line 3900 of file Callback.h.
void attach | ( | const T * | obj, |
R(T::*)(A0, A1, A2, A3, A4) const | method | ||
) | [inherited] |
Attach a member function.
- Parameters:
-
obj Pointer to object to invoke member function on method Member function to attach
Definition at line 3910 of file Callback.h.
void attach | ( | volatile T * | obj, |
R(T::*)(A0, A1, A2, A3, A4) volatile | method | ||
) | [inherited] |
Attach a member function.
- Parameters:
-
obj Pointer to object to invoke member function on method Member function to attach
Definition at line 3920 of file Callback.h.
void attach | ( | R(*)(A0) | func ) | [inherited] |
Attach a static function.
- Parameters:
-
func Static function to attach
Definition at line 1058 of file Callback.h.
void attach | ( | const volatile T * | obj, |
R(T::*)(A0, A1, A2, A3, A4) const volatile | method | ||
) | [inherited] |
Attach a member function.
- Parameters:
-
obj Pointer to object to invoke member function on method Member function to attach
Definition at line 3930 of file Callback.h.
void attach | ( | R(*)(void *, A0, A1, A2, A3, A4) | func, |
void * | arg | ||
) | [inherited] |
Attach a static function with a bound pointer.
- Parameters:
-
func Static function to attach arg Pointer argument to function
Definition at line 3939 of file Callback.h.
void attach | ( | R(*)(const void *, A0, A1, A2, A3, A4) | func, |
const void * | arg | ||
) | [inherited] |
Attach a static function with a bound pointer.
- Parameters:
-
func Static function to attach arg Pointer argument to function
Definition at line 3948 of file Callback.h.
void attach | ( | R(*)(volatile void *, A0, A1, A2, A3, A4) | func, |
volatile void * | arg | ||
) | [inherited] |
Attach a static function with a bound pointer.
- Parameters:
-
func Static function to attach arg Pointer argument to function
Definition at line 3957 of file Callback.h.
void attach | ( | R(*)(const volatile void *, A0, A1, A2, A3, A4) | func, |
const volatile void * | arg | ||
) | [inherited] |
Attach a static function with a bound pointer.
- Parameters:
-
func Static function to attach arg Pointer argument to function
Definition at line 3966 of file Callback.h.
void attach | ( | R(*)(T *, A0, A1, A2, A3, A4) | func, |
T * | arg | ||
) | [inherited] |
Attach a static function with a bound pointer.
- Parameters:
-
func Static function to attach arg Pointer argument to function
Definition at line 3976 of file Callback.h.
void attach | ( | R(*)(const T *, A0, A1, A2, A3, A4) | func, |
const T * | arg | ||
) | [inherited] |
Attach a static function with a bound pointer.
- Parameters:
-
func Static function to attach arg Pointer argument to function
Definition at line 3986 of file Callback.h.
void attach | ( | R(*)(volatile T *, A0, A1, A2, A3, A4) | func, |
volatile T * | arg | ||
) | [inherited] |
Attach a static function with a bound pointer.
- Parameters:
-
func Static function to attach arg Pointer argument to function
Definition at line 3996 of file Callback.h.
void attach | ( | const Callback< R(A0)> & | func ) | [inherited] |
Attach a Callback.
- Parameters:
-
func The Callback to attach
Definition at line 1066 of file Callback.h.
void attach | ( | T * | obj, |
R(T::*)(A0) | method | ||
) | [inherited] |
Attach a member function.
- Parameters:
-
obj Pointer to object to invoke member function on method Member function to attach
Definition at line 1076 of file Callback.h.
void attach | ( | R(*)(const volatile T *, A0, A1, A2, A3, A4) | func, |
const volatile T * | arg | ||
) | [inherited] |
Attach a static function with a bound pointer.
- Parameters:
-
func Static function to attach arg Pointer argument to function
Definition at line 4006 of file Callback.h.
void attach | ( | F | f ) | [inherited] |
Attach a function object.
- Parameters:
-
func Function object to attach
- Note:
- The function object is limited to a single word of storage
Definition at line 4016 of file Callback.h.
void attach | ( | const T * | obj, |
R(T::*)(A0) const | method | ||
) | [inherited] |
Attach a member function.
- Parameters:
-
obj Pointer to object to invoke member function on method Member function to attach
Definition at line 1086 of file Callback.h.
void attach | ( | volatile T * | obj, |
R(T::*)(A0) volatile | method | ||
) | [inherited] |
Attach a member function.
- Parameters:
-
obj Pointer to object to invoke member function on method Member function to attach
Definition at line 1096 of file Callback.h.
void attach | ( | const volatile T * | obj, |
R(T::*)(A0) const volatile | method | ||
) | [inherited] |
Attach a member function.
- Parameters:
-
obj Pointer to object to invoke member function on method Member function to attach
Definition at line 1106 of file Callback.h.
void attach | ( | R(*)(void *, A0) | func, |
void * | arg | ||
) | [inherited] |
Attach a static function with a bound pointer.
- Parameters:
-
func Static function to attach arg Pointer argument to function
Definition at line 1115 of file Callback.h.
void attach | ( | R(*)(const void *, A0) | func, |
const void * | arg | ||
) | [inherited] |
Attach a static function with a bound pointer.
- Parameters:
-
func Static function to attach arg Pointer argument to function
Definition at line 1124 of file Callback.h.
void attach | ( | R(*)(volatile void *, A0) | func, |
volatile void * | arg | ||
) | [inherited] |
Attach a static function with a bound pointer.
- Parameters:
-
func Static function to attach arg Pointer argument to function
Definition at line 1133 of file Callback.h.
void attach | ( | T * | obj, |
R(T::*)() | method | ||
) | [inherited] |
Attach a member function.
- Parameters:
-
obj Pointer to object to invoke member function on method Member function to attach
Definition at line 370 of file Callback.h.
void attach | ( | R(*)(const volatile void *, A0) | func, |
const volatile void * | arg | ||
) | [inherited] |
Attach a static function with a bound pointer.
- Parameters:
-
func Static function to attach arg Pointer argument to function
Definition at line 1142 of file Callback.h.
void attach | ( | R(*)(T *, A0) | func, |
T * | arg | ||
) | [inherited] |
Attach a static function with a bound pointer.
- Parameters:
-
func Static function to attach arg Pointer argument to function
Definition at line 1152 of file Callback.h.
void attach | ( | R(*)(const T *, A0) | func, |
const T * | arg | ||
) | [inherited] |
Attach a static function with a bound pointer.
- Parameters:
-
func Static function to attach arg Pointer argument to function
Definition at line 1162 of file Callback.h.
void attach | ( | R(*)(volatile T *, A0) | func, |
volatile T * | arg | ||
) | [inherited] |
Attach a static function with a bound pointer.
- Parameters:
-
func Static function to attach arg Pointer argument to function
Definition at line 1172 of file Callback.h.
void attach | ( | R(*)(const volatile T *, A0) | func, |
const volatile T * | arg | ||
) | [inherited] |
Attach a static function with a bound pointer.
- Parameters:
-
func Static function to attach arg Pointer argument to function
Definition at line 1182 of file Callback.h.
void attach | ( | F | f ) | [inherited] |
Attach a function object.
- Parameters:
-
func Function object to attach
- Note:
- The function object is limited to a single word of storage
Definition at line 1192 of file Callback.h.
void attach | ( | R(*)(A0, A1, A2) | func ) | [inherited] |
Attach a static function.
- Parameters:
-
func Static function to attach
Definition at line 2470 of file Callback.h.
void attach | ( | const Callback< R(A0, A1, A2)> & | func ) | [inherited] |
Attach a Callback.
- Parameters:
-
func The Callback to attach
Definition at line 2478 of file Callback.h.
void attach | ( | T * | obj, |
R(T::*)(A0, A1, A2) | method | ||
) | [inherited] |
Attach a member function.
- Parameters:
-
obj Pointer to object to invoke member function on method Member function to attach
Definition at line 2488 of file Callback.h.
void attach | ( | const T * | obj, |
R(T::*)() const | method | ||
) | [inherited] |
Attach a member function.
- Parameters:
-
obj Pointer to object to invoke member function on method Member function to attach
Definition at line 380 of file Callback.h.
void attach | ( | const T * | obj, |
R(T::*)(A0, A1, A2) const | method | ||
) | [inherited] |
Attach a member function.
- Parameters:
-
obj Pointer to object to invoke member function on method Member function to attach
Definition at line 2498 of file Callback.h.
void attach | ( | volatile T * | obj, |
R(T::*)(A0, A1, A2) volatile | method | ||
) | [inherited] |
Attach a member function.
- Parameters:
-
obj Pointer to object to invoke member function on method Member function to attach
Definition at line 2508 of file Callback.h.
void attach | ( | const volatile T * | obj, |
R(T::*)(A0, A1, A2) const volatile | method | ||
) | [inherited] |
Attach a member function.
- Parameters:
-
obj Pointer to object to invoke member function on method Member function to attach
Definition at line 2518 of file Callback.h.
void attach | ( | R(*)(void *, A0, A1, A2) | func, |
void * | arg | ||
) | [inherited] |
Attach a static function with a bound pointer.
- Parameters:
-
func Static function to attach arg Pointer argument to function
Definition at line 2527 of file Callback.h.
void attach | ( | R(*)(const void *, A0, A1, A2) | func, |
const void * | arg | ||
) | [inherited] |
Attach a static function with a bound pointer.
- Parameters:
-
func Static function to attach arg Pointer argument to function
Definition at line 2536 of file Callback.h.
void attach | ( | R(*)(volatile void *, A0, A1, A2) | func, |
volatile void * | arg | ||
) | [inherited] |
Attach a static function with a bound pointer.
- Parameters:
-
func Static function to attach arg Pointer argument to function
Definition at line 2545 of file Callback.h.
void attach | ( | R(*)(const volatile void *, A0, A1, A2) | func, |
const volatile void * | arg | ||
) | [inherited] |
Attach a static function with a bound pointer.
- Parameters:
-
func Static function to attach arg Pointer argument to function
Definition at line 2554 of file Callback.h.
void attach | ( | R(*)(T *, A0, A1, A2) | func, |
T * | arg | ||
) | [inherited] |
Attach a static function with a bound pointer.
- Parameters:
-
func Static function to attach arg Pointer argument to function
Definition at line 2564 of file Callback.h.
void attach | ( | R(*)(const T *, A0, A1, A2) | func, |
const T * | arg | ||
) | [inherited] |
Attach a static function with a bound pointer.
- Parameters:
-
func Static function to attach arg Pointer argument to function
Definition at line 2574 of file Callback.h.
void attach | ( | R(*)(volatile T *, A0, A1, A2) | func, |
volatile T * | arg | ||
) | [inherited] |
Attach a static function with a bound pointer.
- Parameters:
-
func Static function to attach arg Pointer argument to function
Definition at line 2584 of file Callback.h.
void attach | ( | R(*)(const volatile T *, A0, A1, A2) | func, |
const volatile T * | arg | ||
) | [inherited] |
Attach a static function with a bound pointer.
- Parameters:
-
func Static function to attach arg Pointer argument to function
Definition at line 2594 of file Callback.h.
void attach | ( | F | f ) | [inherited] |
Attach a function object.
- Parameters:
-
func Function object to attach
- Note:
- The function object is limited to a single word of storage
Definition at line 2604 of file Callback.h.
void attach | ( | R(*)() | func ) | [inherited] |
Attach a static function.
- Parameters:
-
func Static function to attach
Definition at line 352 of file Callback.h.
void attach | ( | volatile T * | obj, |
R(T::*)() volatile | method | ||
) | [inherited] |
Attach a member function.
- Parameters:
-
obj Pointer to object to invoke member function on method Member function to attach
Definition at line 390 of file Callback.h.
void attach | ( | const volatile T * | obj, |
R(T::*)() const volatile | method | ||
) | [inherited] |
Attach a member function.
- Parameters:
-
obj Pointer to object to invoke member function on method Member function to attach
Definition at line 400 of file Callback.h.
void attach | ( | R(*)(void *) | func, |
void * | arg | ||
) | [inherited] |
Attach a static function with a bound pointer.
- Parameters:
-
func Static function to attach arg Pointer argument to function
Definition at line 409 of file Callback.h.
void attach | ( | R(*)(const void *) | func, |
const void * | arg | ||
) | [inherited] |
Attach a static function with a bound pointer.
- Parameters:
-
func Static function to attach arg Pointer argument to function
Definition at line 418 of file Callback.h.
void attach | ( | R(*)(const volatile void *) | func, |
const volatile void * | arg | ||
) | [inherited] |
Attach a static function with a bound pointer.
- Parameters:
-
func Static function to attach arg Pointer argument to function
Definition at line 436 of file Callback.h.
void attach | ( | R(*)(A0, A1, A2, A3) | func ) | [inherited] |
Attach a static function.
- Parameters:
-
func Static function to attach
Definition at line 3176 of file Callback.h.
void attach | ( | const Callback< R(A0, A1, A2, A3)> & | func ) | [inherited] |
Attach a Callback.
- Parameters:
-
func The Callback to attach
Definition at line 3184 of file Callback.h.
void attach | ( | T * | obj, |
R(T::*)(A0, A1, A2, A3) | method | ||
) | [inherited] |
Attach a member function.
- Parameters:
-
obj Pointer to object to invoke member function on method Member function to attach
Definition at line 3194 of file Callback.h.
void attach | ( | const T * | obj, |
R(T::*)(A0, A1, A2, A3) const | method | ||
) | [inherited] |
Attach a member function.
- Parameters:
-
obj Pointer to object to invoke member function on method Member function to attach
Definition at line 3204 of file Callback.h.
void attach | ( | volatile T * | obj, |
R(T::*)(A0, A1, A2, A3) volatile | method | ||
) | [inherited] |
Attach a member function.
- Parameters:
-
obj Pointer to object to invoke member function on method Member function to attach
Definition at line 3214 of file Callback.h.
void attach | ( | const volatile T * | obj, |
R(T::*)(A0, A1, A2, A3) const volatile | method | ||
) | [inherited] |
Attach a member function.
- Parameters:
-
obj Pointer to object to invoke member function on method Member function to attach
Definition at line 3224 of file Callback.h.
void attach | ( | R(*)(void *, A0, A1, A2, A3) | func, |
void * | arg | ||
) | [inherited] |
Attach a static function with a bound pointer.
- Parameters:
-
func Static function to attach arg Pointer argument to function
Definition at line 3233 of file Callback.h.
void attach | ( | R(*)(const void *, A0, A1, A2, A3) | func, |
const void * | arg | ||
) | [inherited] |
Attach a static function with a bound pointer.
- Parameters:
-
func Static function to attach arg Pointer argument to function
Definition at line 3242 of file Callback.h.
void attach | ( | R(*)(volatile void *, A0, A1, A2, A3) | func, |
volatile void * | arg | ||
) | [inherited] |
Attach a static function with a bound pointer.
- Parameters:
-
func Static function to attach arg Pointer argument to function
Definition at line 3251 of file Callback.h.
void attach | ( | R(*)(const volatile void *, A0, A1, A2, A3) | func, |
const volatile void * | arg | ||
) | [inherited] |
Attach a static function with a bound pointer.
- Parameters:
-
func Static function to attach arg Pointer argument to function
Definition at line 3260 of file Callback.h.
void attach | ( | R(*)(T *, A0, A1, A2, A3) | func, |
T * | arg | ||
) | [inherited] |
Attach a static function with a bound pointer.
- Parameters:
-
func Static function to attach arg Pointer argument to function
Definition at line 3270 of file Callback.h.
void attach | ( | R(*)(const T *, A0, A1, A2, A3) | func, |
const T * | arg | ||
) | [inherited] |
Attach a static function with a bound pointer.
- Parameters:
-
func Static function to attach arg Pointer argument to function
Definition at line 3280 of file Callback.h.
void attach | ( | R(*)(volatile T *, A0, A1, A2, A3) | func, |
volatile T * | arg | ||
) | [inherited] |
Attach a static function with a bound pointer.
- Parameters:
-
func Static function to attach arg Pointer argument to function
Definition at line 3290 of file Callback.h.
void attach | ( | R(*)(const volatile T *, A0, A1, A2, A3) | func, |
const volatile T * | arg | ||
) | [inherited] |
Attach a static function with a bound pointer.
- Parameters:
-
func Static function to attach arg Pointer argument to function
Definition at line 3300 of file Callback.h.
void attach | ( | F | f ) | [inherited] |
Attach a function object.
- Parameters:
-
func Function object to attach
- Note:
- The function object is limited to a single word of storage
Definition at line 3310 of file Callback.h.
void attach | ( | R(*)(volatile void *) | func, |
volatile void * | arg | ||
) | [inherited] |
Attach a static function with a bound pointer.
- Parameters:
-
func Static function to attach arg Pointer argument to function
Definition at line 427 of file Callback.h.
void attach | ( | R(*)(T *) | func, |
T * | arg | ||
) | [inherited] |
Attach a static function with a bound pointer.
- Parameters:
-
func Static function to attach arg Pointer argument to function
Definition at line 446 of file Callback.h.
void attach | ( | R(*)(A0, A1) | func ) | [inherited] |
Attach a static function.
- Parameters:
-
func Static function to attach
Definition at line 1764 of file Callback.h.
void attach | ( | const Callback< R(A0, A1)> & | func ) | [inherited] |
Attach a Callback.
- Parameters:
-
func The Callback to attach
Definition at line 1772 of file Callback.h.
void attach | ( | R(*)(const T *) | func, |
const T * | arg | ||
) | [inherited] |
Attach a static function with a bound pointer.
- Parameters:
-
func Static function to attach arg Pointer argument to function
Definition at line 456 of file Callback.h.
void attach | ( | T * | obj, |
R(T::*)(A0, A1) | method | ||
) | [inherited] |
Attach a member function.
- Parameters:
-
obj Pointer to object to invoke member function on method Member function to attach
Definition at line 1782 of file Callback.h.
void attach | ( | const T * | obj, |
R(T::*)(A0, A1) const | method | ||
) | [inherited] |
Attach a member function.
- Parameters:
-
obj Pointer to object to invoke member function on method Member function to attach
Definition at line 1792 of file Callback.h.
void attach | ( | volatile T * | obj, |
R(T::*)(A0, A1) volatile | method | ||
) | [inherited] |
Attach a member function.
- Parameters:
-
obj Pointer to object to invoke member function on method Member function to attach
Definition at line 1802 of file Callback.h.
void attach | ( | const volatile T * | obj, |
R(T::*)(A0, A1) const volatile | method | ||
) | [inherited] |
Attach a member function.
- Parameters:
-
obj Pointer to object to invoke member function on method Member function to attach
Definition at line 1812 of file Callback.h.
void attach_rtc | ( | time_t(*)(void) | read_rtc, |
void(*)(time_t) | write_rtc, | ||
void(*)(void) | init_rtc, | ||
int(*)(void) | isenabled_rtc | ||
) |
Attach an external RTC to be used for the C time functions.
Synchronization level: Thread safe
- Parameters:
-
read_rtc pointer to function which returns current UNIX timestamp write_rtc pointer to function which sets current UNIX timestamp, can be NULL init_rtc pointer to funtion which initializes RTC, can be NULL isenabled_rtc pointer to function wich returns if the rtc is enabled, can be NULL
Definition at line 87 of file mbed_rtc_time.cpp.
R call | ( | A0 | a0, |
A1 | a1 | ||
) | const [inherited] |
Call the attached function.
Definition at line 2066 of file Callback.h.
R call | ( | A0 | a0, |
A1 | a1, | ||
A2 | a2, | ||
A3 | a3, | ||
A4 | a4 | ||
) | const [inherited] |
Call the attached function.
Definition at line 4184 of file Callback.h.
R call | ( | ) | const [inherited] |
Call the attached function.
Definition at line 654 of file Callback.h.
R call | ( | A0 | a0 ) | const [inherited] |
Call the attached function.
Definition at line 1360 of file Callback.h.
R call | ( | A0 | a0, |
A1 | a1, | ||
A2 | a2 | ||
) | const [inherited] |
Call the attached function.
Definition at line 2772 of file Callback.h.
void call | ( | ) | [inherited] |
Call all the functions in the chain in sequence.
Definition at line 108 of file CallChain.cpp.
R call | ( | A0 | a0, |
A1 | a1, | ||
A2 | a2, | ||
A3 | a3 | ||
) | const [inherited] |
Call the attached function.
Definition at line 3478 of file Callback.h.
Callback<R(A0, A1, A2, A3, A4)> mbed::callback | ( | const volatile T * | obj, |
R(T::*)(A0, A1, A2, A3, A4) const volatile | func | ||
) |
Create a callback class with type infered from the arguments.
- Parameters:
-
obj Optional pointer to object to bind to function method Member function to attach
- Returns:
- Callback with infered type
Definition at line 5726 of file Callback.h.
Callback<R(A0, A1, A2, A3, A4)> mbed::callback | ( | R(*)(const T *, A0, A1, A2, A3, A4) | func, |
const T * | arg | ||
) |
Create a callback class with type infered from the arguments.
- Parameters:
-
func Static function to attach arg Pointer argument to function
- Returns:
- Callback with infered type
Definition at line 5792 of file Callback.h.
Callback | ( | volatile T * | obj, |
R(T::*)() volatile | method | ||
) | [inherited] |
Create a Callback with a member function.
- Parameters:
-
obj Pointer to object to invoke member function on method Member function to attach
Definition at line 112 of file Callback.h.
Callback | ( | const Callback< R(A0, A1, A2, A3, A4)> & | func ) | [inherited] |
Attach a Callback.
- Parameters:
-
func The Callback to attach
Definition at line 3612 of file Callback.h.
Callback<R(A0, A1, A2, A3, A4)> mbed::callback | ( | const Callback< R(A0, A1, A2, A3, A4)> & | func ) |
Create a callback class with type infered from the arguments.
- Parameters:
-
func Static function to attach
- Returns:
- Callback with infered type
Definition at line 5682 of file Callback.h.
Callback | ( | T * | obj, |
R(T::*)(A0, A1, A2, A3, A4) | method | ||
) | [inherited] |
Create a Callback with a member function.
- Parameters:
-
obj Pointer to object to invoke member function on method Member function to attach
Definition at line 3624 of file Callback.h.
Callback | ( | R(*)(const volatile T *, A0) | func, |
const volatile T * | arg | ||
) | [inherited] |
Create a Callback with a static function and bound pointer.
- Parameters:
-
func Static function to attach arg Pointer argument to function
Definition at line 895 of file Callback.h.
Callback | ( | const T * | obj, |
R(T::*)(A0, A1, A2, A3, A4) const | method | ||
) | [inherited] |
Create a Callback with a member function.
- Parameters:
-
obj Pointer to object to invoke member function on method Member function to attach
Definition at line 3633 of file Callback.h.
Callback | ( | volatile T * | obj, |
R(T::*)(A0, A1, A2, A3, A4) volatile | method | ||
) | [inherited] |
Create a Callback with a member function.
- Parameters:
-
obj Pointer to object to invoke member function on method Member function to attach
Definition at line 3642 of file Callback.h.
Callback | ( | F | f ) | [inherited] |
Create a Callback with a function object.
- Parameters:
-
func Function object to attach
- Note:
- The function object is limited to a single word of storage
Definition at line 904 of file Callback.h.
Callback | ( | const volatile T * | obj, |
R(T::*)(A0, A1, A2, A3, A4) const volatile | method | ||
) | [inherited] |
Create a Callback with a member function.
- Parameters:
-
obj Pointer to object to invoke member function on method Member function to attach
Definition at line 3651 of file Callback.h.
Callback | ( | R(*)(void *, A0, A1, A2, A3, A4) | func, |
void * | arg | ||
) | [inherited] |
Create a Callback with a static function and bound pointer.
- Parameters:
-
func Static function to attach arg Pointer argument to function
Definition at line 3659 of file Callback.h.
Callback | ( | R(*)(const void *, A0, A1, A2, A3, A4) | func, |
const void * | arg | ||
) | [inherited] |
Create a Callback with a static function and bound pointer.
- Parameters:
-
func Static function to attach arg Pointer argument to function
Definition at line 3667 of file Callback.h.
Callback | ( | R(*)(volatile void *, A0, A1, A2, A3, A4) | func, |
volatile void * | arg | ||
) | [inherited] |
Create a Callback with a static function and bound pointer.
- Parameters:
-
func Static function to attach arg Pointer argument to function
Definition at line 3675 of file Callback.h.
Callback<R(A0, A1, A2, A3)> mbed::callback | ( | R(*)(const T *, A0, A1, A2, A3) | func, |
const T * | arg | ||
) |
Create a callback class with type infered from the arguments.
- Parameters:
-
func Static function to attach arg Pointer argument to function
- Returns:
- Callback with infered type
Definition at line 5519 of file Callback.h.
Callback | ( | R(*)(const volatile void *, A0, A1, A2, A3, A4) | func, |
const volatile void * | arg | ||
) | [inherited] |
Create a Callback with a static function and bound pointer.
- Parameters:
-
func Static function to attach arg Pointer argument to function
Definition at line 3683 of file Callback.h.
Callback | ( | R(*)(T *, A0, A1, A2, A3, A4) | func, |
T * | arg | ||
) | [inherited] |
Create a Callback with a static function and bound pointer.
- Parameters:
-
func Static function to attach arg Pointer argument to function
Definition at line 3692 of file Callback.h.
Callback | ( | R(*)(volatile void *) | func, |
volatile void * | arg | ||
) | [inherited] |
Create a Callback with a static function and bound pointer.
- Parameters:
-
func Static function to attach arg Pointer argument to function
Definition at line 145 of file Callback.h.
Callback | ( | R(*)(const T *, A0, A1, A2, A3, A4) | func, |
const T * | arg | ||
) | [inherited] |
Create a Callback with a static function and bound pointer.
- Parameters:
-
func Static function to attach arg Pointer argument to function
Definition at line 3701 of file Callback.h.
Callback | ( | R(*)(volatile T *, A0, A1, A2, A3, A4) | func, |
volatile T * | arg | ||
) | [inherited] |
Create a Callback with a static function and bound pointer.
- Parameters:
-
func Static function to attach arg Pointer argument to function
Definition at line 3710 of file Callback.h.
Callback | ( | R(*)(const volatile T *, A0, A1, A2, A3, A4) | func, |
const volatile T * | arg | ||
) | [inherited] |
Create a Callback with a static function and bound pointer.
- Parameters:
-
func Static function to attach arg Pointer argument to function
Definition at line 3719 of file Callback.h.
Callback | ( | F | f ) | [inherited] |
Create a Callback with a function object.
- Parameters:
-
func Function object to attach
- Note:
- The function object is limited to a single word of storage
Definition at line 3728 of file Callback.h.
Callback<R(A0, A1, A2, A3)> mbed::callback | ( | const T * | obj, |
R(T::*)(A0, A1, A2, A3) const | func | ||
) |
Create a callback class with type infered from the arguments.
- Parameters:
-
obj Optional pointer to object to bind to function method Member function to attach
- Returns:
- Callback with infered type
Definition at line 5431 of file Callback.h.
Callback | ( | R(*)(const volatile void *) | func, |
const volatile void * | arg | ||
) | [inherited] |
Create a Callback with a static function and bound pointer.
- Parameters:
-
func Static function to attach arg Pointer argument to function
Definition at line 153 of file Callback.h.
Callback<R()> mbed::callback | ( | R(*)() | func = 0 ) |
Create a callback class with type infered from the arguments.
- Parameters:
-
func Static function to attach
- Returns:
- Callback with infered type
Definition at line 4307 of file Callback.h.
Callback | ( | const Callback< R(A0, A1, A2)> & | func ) | [inherited] |
Attach a Callback.
- Parameters:
-
func The Callback to attach
Definition at line 2200 of file Callback.h.
Callback<R()> mbed::callback | ( | const Callback< R()> & | func ) |
Create a callback class with type infered from the arguments.
- Parameters:
-
func Static function to attach
- Returns:
- Callback with infered type
Definition at line 4317 of file Callback.h.
Callback<R()> mbed::callback | ( | T * | obj, |
R(T::*)() | func | ||
) |
Create a callback class with type infered from the arguments.
- Parameters:
-
obj Optional pointer to object to bind to function method Member function to attach
- Returns:
- Callback with infered type
Definition at line 4328 of file Callback.h.
Callback | ( | T * | obj, |
R(T::*)(A0, A1, A2) | method | ||
) | [inherited] |
Create a Callback with a member function.
- Parameters:
-
obj Pointer to object to invoke member function on method Member function to attach
Definition at line 2212 of file Callback.h.
Callback<R()> mbed::callback | ( | const T * | obj, |
R(T::*)() const | func | ||
) |
Create a callback class with type infered from the arguments.
- Parameters:
-
obj Optional pointer to object to bind to function method Member function to attach
- Returns:
- Callback with infered type
Definition at line 4339 of file Callback.h.
Callback<R()> mbed::callback | ( | volatile T * | obj, |
R(T::*)() volatile | func | ||
) |
Create a callback class with type infered from the arguments.
- Parameters:
-
obj Optional pointer to object to bind to function method Member function to attach
- Returns:
- Callback with infered type
Definition at line 4350 of file Callback.h.
Callback | ( | const T * | obj, |
R(T::*)(A0, A1, A2) const | method | ||
) | [inherited] |
Create a Callback with a member function.
- Parameters:
-
obj Pointer to object to invoke member function on method Member function to attach
Definition at line 2221 of file Callback.h.
Callback<R(A0, A1, A2)> mbed::callback | ( | R(*)(const volatile T *, A0, A1, A2) | func, |
const volatile T * | arg | ||
) |
Create a callback class with type infered from the arguments.
- Parameters:
-
func Static function to attach arg Pointer argument to function
- Returns:
- Callback with infered type
Definition at line 5268 of file Callback.h.
Callback<R()> mbed::callback | ( | const volatile T * | obj, |
R(T::*)() const volatile | func | ||
) |
Create a callback class with type infered from the arguments.
- Parameters:
-
obj Optional pointer to object to bind to function method Member function to attach
- Returns:
- Callback with infered type
Definition at line 4361 of file Callback.h.
Callback<R()> mbed::callback | ( | R(*)(void *) | func, |
void * | arg | ||
) |
Create a callback class with type infered from the arguments.
- Parameters:
-
func Static function to attach arg Pointer argument to function
- Returns:
- Callback with infered type
Definition at line 4372 of file Callback.h.
Callback | ( | volatile T * | obj, |
R(T::*)(A0, A1, A2) volatile | method | ||
) | [inherited] |
Create a Callback with a member function.
- Parameters:
-
obj Pointer to object to invoke member function on method Member function to attach
Definition at line 2230 of file Callback.h.
Callback<R(A0, A1, A2)> mbed::callback | ( | R(*)(const volatile void *, A0, A1, A2) | func, |
const volatile void * | arg | ||
) |
Create a callback class with type infered from the arguments.
- Parameters:
-
func Static function to attach arg Pointer argument to function
- Returns:
- Callback with infered type
Definition at line 5224 of file Callback.h.
Callback<R()> mbed::callback | ( | R(*)(const void *) | func, |
const void * | arg | ||
) |
Create a callback class with type infered from the arguments.
- Parameters:
-
func Static function to attach arg Pointer argument to function
- Returns:
- Callback with infered type
Definition at line 4383 of file Callback.h.
Callback<R()> mbed::callback | ( | R(*)(volatile void *) | func, |
volatile void * | arg | ||
) |
Create a callback class with type infered from the arguments.
- Parameters:
-
func Static function to attach arg Pointer argument to function
- Returns:
- Callback with infered type
Definition at line 4394 of file Callback.h.
Callback | ( | const volatile T * | obj, |
R(T::*)(A0, A1, A2) const volatile | method | ||
) | [inherited] |
Create a Callback with a member function.
- Parameters:
-
obj Pointer to object to invoke member function on method Member function to attach
Definition at line 2239 of file Callback.h.
Callback<R(A0, A1, A2)> mbed::callback | ( | const volatile T * | obj, |
R(T::*)(A0, A1, A2) const volatile | func | ||
) |
Create a callback class with type infered from the arguments.
- Parameters:
-
obj Optional pointer to object to bind to function method Member function to attach
- Returns:
- Callback with infered type
Definition at line 5180 of file Callback.h.
Callback<R(A0, A1, A2)> mbed::callback | ( | volatile T * | obj, |
R(T::*)(A0, A1, A2) volatile | func | ||
) |
Create a callback class with type infered from the arguments.
- Parameters:
-
obj Optional pointer to object to bind to function method Member function to attach
- Returns:
- Callback with infered type
Definition at line 5169 of file Callback.h.
Callback<R()> mbed::callback | ( | R(*)(const volatile void *) | func, |
const volatile void * | arg | ||
) |
Create a callback class with type infered from the arguments.
- Parameters:
-
func Static function to attach arg Pointer argument to function
- Returns:
- Callback with infered type
Definition at line 4405 of file Callback.h.
Callback<R()> mbed::callback | ( | R(*)(T *) | func, |
T * | arg | ||
) |
Create a callback class with type infered from the arguments.
- Parameters:
-
func Static function to attach arg Pointer argument to function
- Returns:
- Callback with infered type
Definition at line 4416 of file Callback.h.
Callback<R(A0, A1, A2)> mbed::callback | ( | const Callback< R(A0, A1, A2)> & | func ) |
Create a callback class with type infered from the arguments.
- Parameters:
-
func Static function to attach
- Returns:
- Callback with infered type
Definition at line 5136 of file Callback.h.
Callback | ( | R(*)(void *, A0, A1, A2) | func, |
void * | arg | ||
) | [inherited] |
Create a Callback with a static function and bound pointer.
- Parameters:
-
func Static function to attach arg Pointer argument to function
Definition at line 2247 of file Callback.h.
Callback<R()> mbed::callback | ( | R(*)(const T *) | func, |
const T * | arg | ||
) |
Create a callback class with type infered from the arguments.
- Parameters:
-
func Static function to attach arg Pointer argument to function
- Returns:
- Callback with infered type
Definition at line 4427 of file Callback.h.
Callback<R()> mbed::callback | ( | R(*)(volatile T *) | func, |
volatile T * | arg | ||
) |
Create a callback class with type infered from the arguments.
- Parameters:
-
func Static function to attach arg Pointer argument to function
- Returns:
- Callback with infered type
Definition at line 4438 of file Callback.h.
Callback<R(A0, A1, A2, A3, A4)> mbed::callback | ( | R(*)(volatile T *, A0, A1, A2, A3, A4) | func, |
volatile T * | arg | ||
) |
Create a callback class with type infered from the arguments.
- Parameters:
-
func Static function to attach arg Pointer argument to function
- Returns:
- Callback with infered type
Definition at line 5803 of file Callback.h.
Callback | ( | R(*)(T *) | func, |
T * | arg | ||
) | [inherited] |
Create a Callback with a static function and bound pointer.
- Parameters:
-
func Static function to attach arg Pointer argument to function
Definition at line 162 of file Callback.h.
Callback | ( | R(*)(const void *, A0, A1, A2) | func, |
const void * | arg | ||
) | [inherited] |
Create a Callback with a static function and bound pointer.
- Parameters:
-
func Static function to attach arg Pointer argument to function
Definition at line 2255 of file Callback.h.
Callback<R()> mbed::callback | ( | R(*)(const volatile T *) | func, |
const volatile T * | arg | ||
) |
Create a callback class with type infered from the arguments.
- Parameters:
-
func Static function to attach arg Pointer argument to function
- Returns:
- Callback with infered type
Definition at line 4449 of file Callback.h.
Callback | ( | R(*)(volatile void *, A0, A1, A2) | func, |
volatile void * | arg | ||
) | [inherited] |
Create a Callback with a static function and bound pointer.
- Parameters:
-
func Static function to attach arg Pointer argument to function
Definition at line 2263 of file Callback.h.
Callback<R(A0)> mbed::callback | ( | R(*)(A0) | func = 0 ) |
Create a callback class with type infered from the arguments.
- Parameters:
-
func Static function to attach
- Returns:
- Callback with infered type
Definition at line 4580 of file Callback.h.
Callback<R(A0, A1)> mbed::callback | ( | R(*)(const T *, A0, A1) | func, |
const T * | arg | ||
) |
Create a callback class with type infered from the arguments.
- Parameters:
-
func Static function to attach arg Pointer argument to function
- Returns:
- Callback with infered type
Definition at line 4973 of file Callback.h.
Callback<R(A0)> mbed::callback | ( | const Callback< R(A0)> & | func ) |
Create a callback class with type infered from the arguments.
- Parameters:
-
func Static function to attach
- Returns:
- Callback with infered type
Definition at line 4590 of file Callback.h.
Callback | ( | T * | obj, |
R(T::*)() | method | ||
) | [inherited] |
Create a Callback with a member function.
- Parameters:
-
obj Pointer to object to invoke member function on method Member function to attach
Definition at line 94 of file Callback.h.
Callback | ( | R(*)(const volatile void *, A0, A1, A2) | func, |
const volatile void * | arg | ||
) | [inherited] |
Create a Callback with a static function and bound pointer.
- Parameters:
-
func Static function to attach arg Pointer argument to function
Definition at line 2271 of file Callback.h.
Callback<R(A0, A1)> mbed::callback | ( | R(*)(const void *, A0, A1) | func, |
const void * | arg | ||
) |
Create a callback class with type infered from the arguments.
- Parameters:
-
func Static function to attach arg Pointer argument to function
- Returns:
- Callback with infered type
Definition at line 4929 of file Callback.h.
Callback<R(A0)> mbed::callback | ( | T * | obj, |
R(T::*)(A0) | func | ||
) |
Create a callback class with type infered from the arguments.
- Parameters:
-
obj Optional pointer to object to bind to function method Member function to attach
- Returns:
- Callback with infered type
Definition at line 4601 of file Callback.h.
Callback<R(A0, A1)> mbed::callback | ( | const volatile T * | obj, |
R(T::*)(A0, A1) const volatile | func | ||
) |
Create a callback class with type infered from the arguments.
- Parameters:
-
obj Optional pointer to object to bind to function method Member function to attach
- Returns:
- Callback with infered type
Definition at line 4907 of file Callback.h.
Callback<R(A0)> mbed::callback | ( | const T * | obj, |
R(T::*)(A0) const | func | ||
) |
Create a callback class with type infered from the arguments.
- Parameters:
-
obj Optional pointer to object to bind to function method Member function to attach
- Returns:
- Callback with infered type
Definition at line 4612 of file Callback.h.
Callback<R(A0, A1)> mbed::callback | ( | const T * | obj, |
R(T::*)(A0, A1) const | func | ||
) |
Create a callback class with type infered from the arguments.
- Parameters:
-
obj Optional pointer to object to bind to function method Member function to attach
- Returns:
- Callback with infered type
Definition at line 4885 of file Callback.h.
Callback | ( | R(*)(T *, A0, A1, A2) | func, |
T * | arg | ||
) | [inherited] |
Create a Callback with a static function and bound pointer.
- Parameters:
-
func Static function to attach arg Pointer argument to function
Definition at line 2280 of file Callback.h.
Callback<R(A0)> mbed::callback | ( | volatile T * | obj, |
R(T::*)(A0) volatile | func | ||
) |
Create a callback class with type infered from the arguments.
- Parameters:
-
obj Optional pointer to object to bind to function method Member function to attach
- Returns:
- Callback with infered type
Definition at line 4623 of file Callback.h.
Callback<R(A0)> mbed::callback | ( | const volatile T * | obj, |
R(T::*)(A0) const volatile | func | ||
) |
Create a callback class with type infered from the arguments.
- Parameters:
-
obj Optional pointer to object to bind to function method Member function to attach
- Returns:
- Callback with infered type
Definition at line 4634 of file Callback.h.
Callback<R(A0)> mbed::callback | ( | R(*)(const volatile T *, A0) | func, |
const volatile T * | arg | ||
) |
Create a callback class with type infered from the arguments.
- Parameters:
-
func Static function to attach arg Pointer argument to function
- Returns:
- Callback with infered type
Definition at line 4722 of file Callback.h.
Callback<R(A0)> mbed::callback | ( | R(*)(volatile T *, A0) | func, |
volatile T * | arg | ||
) |
Create a callback class with type infered from the arguments.
- Parameters:
-
func Static function to attach arg Pointer argument to function
- Returns:
- Callback with infered type
Definition at line 4711 of file Callback.h.
Callback<R(A0)> mbed::callback | ( | R(*)(const T *, A0) | func, |
const T * | arg | ||
) |
Create a callback class with type infered from the arguments.
- Parameters:
-
func Static function to attach arg Pointer argument to function
- Returns:
- Callback with infered type
Definition at line 4700 of file Callback.h.
Callback | ( | R(*)(const T *, A0, A1, A2) | func, |
const T * | arg | ||
) | [inherited] |
Create a Callback with a static function and bound pointer.
- Parameters:
-
func Static function to attach arg Pointer argument to function
Definition at line 2289 of file Callback.h.
Callback<R(A0)> mbed::callback | ( | R(*)(void *, A0) | func, |
void * | arg | ||
) |
Create a callback class with type infered from the arguments.
- Parameters:
-
func Static function to attach arg Pointer argument to function
- Returns:
- Callback with infered type
Definition at line 4645 of file Callback.h.
Callback<R(A0)> mbed::callback | ( | R(*)(const void *, A0) | func, |
const void * | arg | ||
) |
Create a callback class with type infered from the arguments.
- Parameters:
-
func Static function to attach arg Pointer argument to function
- Returns:
- Callback with infered type
Definition at line 4656 of file Callback.h.
Callback | ( | R(*)(volatile T *, A0, A1, A2) | func, |
volatile T * | arg | ||
) | [inherited] |
Create a Callback with a static function and bound pointer.
- Parameters:
-
func Static function to attach arg Pointer argument to function
Definition at line 2298 of file Callback.h.
Callback<R(A0)> mbed::callback | ( | R(*)(volatile void *, A0) | func, |
volatile void * | arg | ||
) |
Create a callback class with type infered from the arguments.
- Parameters:
-
func Static function to attach arg Pointer argument to function
- Returns:
- Callback with infered type
Definition at line 4667 of file Callback.h.
Callback<R(A0)> mbed::callback | ( | R(*)(const volatile void *, A0) | func, |
const volatile void * | arg | ||
) |
Create a callback class with type infered from the arguments.
- Parameters:
-
func Static function to attach arg Pointer argument to function
- Returns:
- Callback with infered type
Definition at line 4678 of file Callback.h.
Callback | ( | R(*)(const volatile T *, A0, A1, A2) | func, |
const volatile T * | arg | ||
) | [inherited] |
Create a Callback with a static function and bound pointer.
- Parameters:
-
func Static function to attach arg Pointer argument to function
Definition at line 2307 of file Callback.h.
Callback<R(A0)> mbed::callback | ( | R(*)(T *, A0) | func, |
T * | arg | ||
) |
Create a callback class with type infered from the arguments.
- Parameters:
-
func Static function to attach arg Pointer argument to function
- Returns:
- Callback with infered type
Definition at line 4689 of file Callback.h.
Callback | ( | F | f ) | [inherited] |
Create a Callback with a function object.
- Parameters:
-
func Function object to attach
- Note:
- The function object is limited to a single word of storage
Definition at line 2316 of file Callback.h.
Callback | ( | F | f ) | [inherited] |
Create a Callback with a function object.
- Parameters:
-
func Function object to attach
- Note:
- The function object is limited to a single word of storage
Definition at line 1610 of file Callback.h.
Callback<R(A0, A1)> mbed::callback | ( | R(*)(A0, A1) | func = 0 ) |
Create a callback class with type infered from the arguments.
- Parameters:
-
func Static function to attach
- Returns:
- Callback with infered type
Definition at line 4853 of file Callback.h.
Callback<R(A0, A1)> mbed::callback | ( | const Callback< R(A0, A1)> & | func ) |
Create a callback class with type infered from the arguments.
- Parameters:
-
func Static function to attach
- Returns:
- Callback with infered type
Definition at line 4863 of file Callback.h.
Callback<R(A0, A1)> mbed::callback | ( | T * | obj, |
R(T::*)(A0, A1) | func | ||
) |
Create a callback class with type infered from the arguments.
- Parameters:
-
obj Optional pointer to object to bind to function method Member function to attach
- Returns:
- Callback with infered type
Definition at line 4874 of file Callback.h.
Callback | ( | const volatile T * | obj, |
R(T::*)() const volatile | method | ||
) | [inherited] |
Create a Callback with a member function.
- Parameters:
-
obj Pointer to object to invoke member function on method Member function to attach
Definition at line 121 of file Callback.h.
Callback<R(A0, A1)> mbed::callback | ( | volatile T * | obj, |
R(T::*)(A0, A1) volatile | func | ||
) |
Create a callback class with type infered from the arguments.
- Parameters:
-
obj Optional pointer to object to bind to function method Member function to attach
- Returns:
- Callback with infered type
Definition at line 4896 of file Callback.h.
Callback<R(A0, A1)> mbed::callback | ( | R(*)(void *, A0, A1) | func, |
void * | arg | ||
) |
Create a callback class with type infered from the arguments.
- Parameters:
-
func Static function to attach arg Pointer argument to function
- Returns:
- Callback with infered type
Definition at line 4918 of file Callback.h.
Callback<R(A0, A1)> mbed::callback | ( | R(*)(volatile void *, A0, A1) | func, |
volatile void * | arg | ||
) |
Create a callback class with type infered from the arguments.
- Parameters:
-
func Static function to attach arg Pointer argument to function
- Returns:
- Callback with infered type
Definition at line 4940 of file Callback.h.
Callback<R(A0, A1)> mbed::callback | ( | R(*)(const volatile void *, A0, A1) | func, |
const volatile void * | arg | ||
) |
Create a callback class with type infered from the arguments.
- Parameters:
-
func Static function to attach arg Pointer argument to function
- Returns:
- Callback with infered type
Definition at line 4951 of file Callback.h.
Callback<R(A0, A1)> mbed::callback | ( | R(*)(T *, A0, A1) | func, |
T * | arg | ||
) |
Create a callback class with type infered from the arguments.
- Parameters:
-
func Static function to attach arg Pointer argument to function
- Returns:
- Callback with infered type
Definition at line 4962 of file Callback.h.
Callback<R(A0, A1)> mbed::callback | ( | R(*)(volatile T *, A0, A1) | func, |
volatile T * | arg | ||
) |
Create a callback class with type infered from the arguments.
- Parameters:
-
func Static function to attach arg Pointer argument to function
- Returns:
- Callback with infered type
Definition at line 4984 of file Callback.h.
Callback<R(A0, A1)> mbed::callback | ( | R(*)(const volatile T *, A0, A1) | func, |
const volatile T * | arg | ||
) |
Create a callback class with type infered from the arguments.
- Parameters:
-
func Static function to attach arg Pointer argument to function
- Returns:
- Callback with infered type
Definition at line 4995 of file Callback.h.
Callback<R(A0, A1, A2, A3, A4)> mbed::callback | ( | R(*)(const volatile T *, A0, A1, A2, A3, A4) | func, |
const volatile T * | arg | ||
) |
Create a callback class with type infered from the arguments.
- Parameters:
-
func Static function to attach arg Pointer argument to function
- Returns:
- Callback with infered type
Definition at line 5814 of file Callback.h.
Callback | ( | R(*)(const volatile T *, A0, A1) | func, |
const volatile T * | arg | ||
) | [inherited] |
Create a Callback with a static function and bound pointer.
- Parameters:
-
func Static function to attach arg Pointer argument to function
Definition at line 1601 of file Callback.h.
Callback<R(A0, A1, A2)> mbed::callback | ( | R(*)(A0, A1, A2) | func = 0 ) |
Create a callback class with type infered from the arguments.
- Parameters:
-
func Static function to attach
- Returns:
- Callback with infered type
Definition at line 5126 of file Callback.h.
Callback<R(A0, A1, A2)> mbed::callback | ( | T * | obj, |
R(T::*)(A0, A1, A2) | func | ||
) |
Create a callback class with type infered from the arguments.
- Parameters:
-
obj Optional pointer to object to bind to function method Member function to attach
- Returns:
- Callback with infered type
Definition at line 5147 of file Callback.h.
Callback<R(A0, A1, A2)> mbed::callback | ( | const T * | obj, |
R(T::*)(A0, A1, A2) const | func | ||
) |
Create a callback class with type infered from the arguments.
- Parameters:
-
obj Optional pointer to object to bind to function method Member function to attach
- Returns:
- Callback with infered type
Definition at line 5158 of file Callback.h.
Callback | ( | R(*)(const T *) | func, |
const T * | arg | ||
) | [inherited] |
Create a Callback with a static function and bound pointer.
- Parameters:
-
func Static function to attach arg Pointer argument to function
Definition at line 171 of file Callback.h.
Callback<R(A0, A1, A2)> mbed::callback | ( | R(*)(void *, A0, A1, A2) | func, |
void * | arg | ||
) |
Create a callback class with type infered from the arguments.
- Parameters:
-
func Static function to attach arg Pointer argument to function
- Returns:
- Callback with infered type
Definition at line 5191 of file Callback.h.
Callback<R(A0, A1, A2)> mbed::callback | ( | R(*)(const void *, A0, A1, A2) | func, |
const void * | arg | ||
) |
Create a callback class with type infered from the arguments.
- Parameters:
-
func Static function to attach arg Pointer argument to function
- Returns:
- Callback with infered type
Definition at line 5202 of file Callback.h.
Callback<R(A0, A1, A2)> mbed::callback | ( | R(*)(volatile void *, A0, A1, A2) | func, |
volatile void * | arg | ||
) |
Create a callback class with type infered from the arguments.
- Parameters:
-
func Static function to attach arg Pointer argument to function
- Returns:
- Callback with infered type
Definition at line 5213 of file Callback.h.
Callback | ( | const Callback< R()> & | func ) | [inherited] |
Callback<R(A0, A1, A2)> mbed::callback | ( | R(*)(T *, A0, A1, A2) | func, |
T * | arg | ||
) |
Create a callback class with type infered from the arguments.
- Parameters:
-
func Static function to attach arg Pointer argument to function
- Returns:
- Callback with infered type
Definition at line 5235 of file Callback.h.
Callback<R(A0, A1, A2)> mbed::callback | ( | R(*)(const T *, A0, A1, A2) | func, |
const T * | arg | ||
) |
Create a callback class with type infered from the arguments.
- Parameters:
-
func Static function to attach arg Pointer argument to function
- Returns:
- Callback with infered type
Definition at line 5246 of file Callback.h.
Callback<R(A0, A1, A2)> mbed::callback | ( | R(*)(volatile T *, A0, A1, A2) | func, |
volatile T * | arg | ||
) |
Create a callback class with type infered from the arguments.
- Parameters:
-
func Static function to attach arg Pointer argument to function
- Returns:
- Callback with infered type
Definition at line 5257 of file Callback.h.
Callback<R(A0, A1, A2, A3)> mbed::callback | ( | R(*)(A0, A1, A2, A3) | func = 0 ) |
Create a callback class with type infered from the arguments.
- Parameters:
-
func Static function to attach
- Returns:
- Callback with infered type
Definition at line 5399 of file Callback.h.
Callback<R(A0, A1, A2, A3)> mbed::callback | ( | const Callback< R(A0, A1, A2, A3)> & | func ) |
Create a callback class with type infered from the arguments.
- Parameters:
-
func Static function to attach
- Returns:
- Callback with infered type
Definition at line 5409 of file Callback.h.
Callback<R(A0, A1, A2, A3)> mbed::callback | ( | T * | obj, |
R(T::*)(A0, A1, A2, A3) | func | ||
) |
Create a callback class with type infered from the arguments.
- Parameters:
-
obj Optional pointer to object to bind to function method Member function to attach
- Returns:
- Callback with infered type
Definition at line 5420 of file Callback.h.
Callback | ( | const T * | obj, |
R(T::*)() const | method | ||
) | [inherited] |
Create a Callback with a member function.
- Parameters:
-
obj Pointer to object to invoke member function on method Member function to attach
Definition at line 103 of file Callback.h.
Callback | ( | R(*)(volatile T *) | func, |
volatile T * | arg | ||
) | [inherited] |
Create a Callback with a static function and bound pointer.
- Parameters:
-
func Static function to attach arg Pointer argument to function
Definition at line 180 of file Callback.h.
Callback<R(A0, A1, A2, A3)> mbed::callback | ( | volatile T * | obj, |
R(T::*)(A0, A1, A2, A3) volatile | func | ||
) |
Create a callback class with type infered from the arguments.
- Parameters:
-
obj Optional pointer to object to bind to function method Member function to attach
- Returns:
- Callback with infered type
Definition at line 5442 of file Callback.h.
Callback<R(A0, A1, A2, A3)> mbed::callback | ( | const volatile T * | obj, |
R(T::*)(A0, A1, A2, A3) const volatile | func | ||
) |
Create a callback class with type infered from the arguments.
- Parameters:
-
obj Optional pointer to object to bind to function method Member function to attach
- Returns:
- Callback with infered type
Definition at line 5453 of file Callback.h.
Callback<R(A0, A1, A2, A3)> mbed::callback | ( | R(*)(void *, A0, A1, A2, A3) | func, |
void * | arg | ||
) |
Create a callback class with type infered from the arguments.
- Parameters:
-
func Static function to attach arg Pointer argument to function
- Returns:
- Callback with infered type
Definition at line 5464 of file Callback.h.
Callback<R(A0, A1, A2, A3)> mbed::callback | ( | R(*)(const void *, A0, A1, A2, A3) | func, |
const void * | arg | ||
) |
Create a callback class with type infered from the arguments.
- Parameters:
-
func Static function to attach arg Pointer argument to function
- Returns:
- Callback with infered type
Definition at line 5475 of file Callback.h.
Callback<R(A0, A1, A2, A3)> mbed::callback | ( | R(*)(volatile void *, A0, A1, A2, A3) | func, |
volatile void * | arg | ||
) |
Create a callback class with type infered from the arguments.
- Parameters:
-
func Static function to attach arg Pointer argument to function
- Returns:
- Callback with infered type
Definition at line 5486 of file Callback.h.
Callback<R(A0, A1, A2, A3)> mbed::callback | ( | R(*)(const volatile void *, A0, A1, A2, A3) | func, |
const volatile void * | arg | ||
) |
Create a callback class with type infered from the arguments.
- Parameters:
-
func Static function to attach arg Pointer argument to function
- Returns:
- Callback with infered type
Definition at line 5497 of file Callback.h.
Callback<R(A0, A1, A2, A3)> mbed::callback | ( | R(*)(T *, A0, A1, A2, A3) | func, |
T * | arg | ||
) |
Create a callback class with type infered from the arguments.
- Parameters:
-
func Static function to attach arg Pointer argument to function
- Returns:
- Callback with infered type
Definition at line 5508 of file Callback.h.
Callback<R(A0, A1, A2, A3)> mbed::callback | ( | R(*)(volatile T *, A0, A1, A2, A3) | func, |
volatile T * | arg | ||
) |
Create a callback class with type infered from the arguments.
- Parameters:
-
func Static function to attach arg Pointer argument to function
- Returns:
- Callback with infered type
Definition at line 5530 of file Callback.h.
Callback<R(A0, A1, A2, A3)> mbed::callback | ( | R(*)(const volatile T *, A0, A1, A2, A3) | func, |
const volatile T * | arg | ||
) |
Create a callback class with type infered from the arguments.
- Parameters:
-
func Static function to attach arg Pointer argument to function
- Returns:
- Callback with infered type
Definition at line 5541 of file Callback.h.
Callback | ( | R(*)(void *) | func, |
void * | arg | ||
) | [inherited] |
Create a Callback with a static function and bound pointer.
- Parameters:
-
func Static function to attach arg Pointer argument to function
Definition at line 129 of file Callback.h.
Callback<R(A0, A1, A2, A3, A4)> mbed::callback | ( | R(*)(A0, A1, A2, A3, A4) | func = 0 ) |
Create a callback class with type infered from the arguments.
- Parameters:
-
func Static function to attach
- Returns:
- Callback with infered type
Definition at line 5672 of file Callback.h.
Callback<R(A0, A1, A2, A3, A4)> mbed::callback | ( | T * | obj, |
R(T::*)(A0, A1, A2, A3, A4) | func | ||
) |
Create a callback class with type infered from the arguments.
- Parameters:
-
obj Optional pointer to object to bind to function method Member function to attach
- Returns:
- Callback with infered type
Definition at line 5693 of file Callback.h.
Callback<R(A0, A1, A2, A3, A4)> mbed::callback | ( | const T * | obj, |
R(T::*)(A0, A1, A2, A3, A4) const | func | ||
) |
Create a callback class with type infered from the arguments.
- Parameters:
-
obj Optional pointer to object to bind to function method Member function to attach
- Returns:
- Callback with infered type
Definition at line 5704 of file Callback.h.
Callback<R(A0, A1, A2, A3, A4)> mbed::callback | ( | volatile T * | obj, |
R(T::*)(A0, A1, A2, A3, A4) volatile | func | ||
) |
Create a callback class with type infered from the arguments.
- Parameters:
-
obj Optional pointer to object to bind to function method Member function to attach
- Returns:
- Callback with infered type
Definition at line 5715 of file Callback.h.
Callback | ( | const Callback< R(A0, A1)> & | func ) | [inherited] |
Attach a Callback.
- Parameters:
-
func The Callback to attach
Definition at line 1494 of file Callback.h.
Callback | ( | const Callback< R(A0, A1, A2, A3)> & | func ) | [inherited] |
Attach a Callback.
- Parameters:
-
func The Callback to attach
Definition at line 2906 of file Callback.h.
Callback<R(A0, A1, A2, A3, A4)> mbed::callback | ( | R(*)(void *, A0, A1, A2, A3, A4) | func, |
void * | arg | ||
) |
Create a callback class with type infered from the arguments.
- Parameters:
-
func Static function to attach arg Pointer argument to function
- Returns:
- Callback with infered type
Definition at line 5737 of file Callback.h.
Callback<R(A0, A1, A2, A3, A4)> mbed::callback | ( | R(*)(volatile void *, A0, A1, A2, A3, A4) | func, |
volatile void * | arg | ||
) |
Create a callback class with type infered from the arguments.
- Parameters:
-
func Static function to attach arg Pointer argument to function
- Returns:
- Callback with infered type
Definition at line 5759 of file Callback.h.
Callback | ( | T * | obj, |
R(T::*)(A0, A1, A2, A3) | method | ||
) | [inherited] |
Create a Callback with a member function.
- Parameters:
-
obj Pointer to object to invoke member function on method Member function to attach
Definition at line 2918 of file Callback.h.
Callback<R(A0, A1, A2, A3, A4)> mbed::callback | ( | R(*)(T *, A0, A1, A2, A3, A4) | func, |
T * | arg | ||
) |
Create a callback class with type infered from the arguments.
- Parameters:
-
func Static function to attach arg Pointer argument to function
- Returns:
- Callback with infered type
Definition at line 5781 of file Callback.h.
Callback | ( | const T * | obj, |
R(T::*)(A0, A1, A2, A3) const | method | ||
) | [inherited] |
Create a Callback with a member function.
- Parameters:
-
obj Pointer to object to invoke member function on method Member function to attach
Definition at line 2927 of file Callback.h.
Callback | ( | const Callback< R(A0)> & | func ) | [inherited] |
Attach a Callback.
- Parameters:
-
func The Callback to attach
Definition at line 788 of file Callback.h.
Callback | ( | T * | obj, |
R(T::*)(A0, A1) | method | ||
) | [inherited] |
Create a Callback with a member function.
- Parameters:
-
obj Pointer to object to invoke member function on method Member function to attach
Definition at line 1506 of file Callback.h.
Callback | ( | volatile T * | obj, |
R(T::*)(A0, A1, A2, A3) volatile | method | ||
) | [inherited] |
Create a Callback with a member function.
- Parameters:
-
obj Pointer to object to invoke member function on method Member function to attach
Definition at line 2936 of file Callback.h.
Callback | ( | const volatile T * | obj, |
R(T::*)(A0, A1, A2, A3) const volatile | method | ||
) | [inherited] |
Create a Callback with a member function.
- Parameters:
-
obj Pointer to object to invoke member function on method Member function to attach
Definition at line 2945 of file Callback.h.
Callback | ( | const T * | obj, |
R(T::*)(A0, A1) const | method | ||
) | [inherited] |
Create a Callback with a member function.
- Parameters:
-
obj Pointer to object to invoke member function on method Member function to attach
Definition at line 1515 of file Callback.h.
Callback | ( | R(*)(void *, A0, A1, A2, A3) | func, |
void * | arg | ||
) | [inherited] |
Create a Callback with a static function and bound pointer.
- Parameters:
-
func Static function to attach arg Pointer argument to function
Definition at line 2953 of file Callback.h.
Callback | ( | R(*)(const void *, A0, A1, A2, A3) | func, |
const void * | arg | ||
) | [inherited] |
Create a Callback with a static function and bound pointer.
- Parameters:
-
func Static function to attach arg Pointer argument to function
Definition at line 2961 of file Callback.h.
Callback | ( | R(*)(const volatile T *) | func, |
const volatile T * | arg | ||
) | [inherited] |
Create a Callback with a static function and bound pointer.
- Parameters:
-
func Static function to attach arg Pointer argument to function
Definition at line 189 of file Callback.h.
Callback | ( | volatile T * | obj, |
R(T::*)(A0, A1) volatile | method | ||
) | [inherited] |
Create a Callback with a member function.
- Parameters:
-
obj Pointer to object to invoke member function on method Member function to attach
Definition at line 1524 of file Callback.h.
Callback | ( | R(*)(volatile void *, A0, A1, A2, A3) | func, |
volatile void * | arg | ||
) | [inherited] |
Create a Callback with a static function and bound pointer.
- Parameters:
-
func Static function to attach arg Pointer argument to function
Definition at line 2969 of file Callback.h.
Callback | ( | T * | obj, |
R(T::*)(A0) | method | ||
) | [inherited] |
Create a Callback with a member function.
- Parameters:
-
obj Pointer to object to invoke member function on method Member function to attach
Definition at line 800 of file Callback.h.
Callback | ( | const volatile T * | obj, |
R(T::*)(A0, A1) const volatile | method | ||
) | [inherited] |
Create a Callback with a member function.
- Parameters:
-
obj Pointer to object to invoke member function on method Member function to attach
Definition at line 1533 of file Callback.h.
Callback | ( | R(*)(T *, A0, A1, A2, A3) | func, |
T * | arg | ||
) | [inherited] |
Create a Callback with a static function and bound pointer.
- Parameters:
-
func Static function to attach arg Pointer argument to function
Definition at line 2986 of file Callback.h.
Callback | ( | R(*)(const T *, A0, A1, A2, A3) | func, |
const T * | arg | ||
) | [inherited] |
Create a Callback with a static function and bound pointer.
- Parameters:
-
func Static function to attach arg Pointer argument to function
Definition at line 2995 of file Callback.h.
Callback | ( | const T * | obj, |
R(T::*)(A0) const | method | ||
) | [inherited] |
Create a Callback with a member function.
- Parameters:
-
obj Pointer to object to invoke member function on method Member function to attach
Definition at line 809 of file Callback.h.
Callback | ( | R(*)(volatile T *, A0, A1, A2, A3) | func, |
volatile T * | arg | ||
) | [inherited] |
Create a Callback with a static function and bound pointer.
- Parameters:
-
func Static function to attach arg Pointer argument to function
Definition at line 3004 of file Callback.h.
Callback | ( | R(*)(void *, A0, A1) | func, |
void * | arg | ||
) | [inherited] |
Create a Callback with a static function and bound pointer.
- Parameters:
-
func Static function to attach arg Pointer argument to function
Definition at line 1541 of file Callback.h.
Callback | ( | R(*)(const volatile T *, A0, A1, A2, A3) | func, |
const volatile T * | arg | ||
) | [inherited] |
Create a Callback with a static function and bound pointer.
- Parameters:
-
func Static function to attach arg Pointer argument to function
Definition at line 3013 of file Callback.h.
Callback | ( | R(*)(const void *, A0, A1) | func, |
const void * | arg | ||
) | [inherited] |
Create a Callback with a static function and bound pointer.
- Parameters:
-
func Static function to attach arg Pointer argument to function
Definition at line 1549 of file Callback.h.
Callback | ( | F | f ) | [inherited] |
Create a Callback with a function object.
- Parameters:
-
func Function object to attach
- Note:
- The function object is limited to a single word of storage
Definition at line 3022 of file Callback.h.
Callback | ( | volatile T * | obj, |
R(T::*)(A0) volatile | method | ||
) | [inherited] |
Create a Callback with a member function.
- Parameters:
-
obj Pointer to object to invoke member function on method Member function to attach
Definition at line 818 of file Callback.h.
Callback | ( | R(*)(volatile void *, A0, A1) | func, |
volatile void * | arg | ||
) | [inherited] |
Create a Callback with a static function and bound pointer.
- Parameters:
-
func Static function to attach arg Pointer argument to function
Definition at line 1557 of file Callback.h.
Callback | ( | R(*)(const volatile void *, A0, A1) | func, |
const volatile void * | arg | ||
) | [inherited] |
Create a Callback with a static function and bound pointer.
- Parameters:
-
func Static function to attach arg Pointer argument to function
Definition at line 1565 of file Callback.h.
Callback<R(A0, A1, A2, A3, A4)> mbed::callback | ( | R(*)(const void *, A0, A1, A2, A3, A4) | func, |
const void * | arg | ||
) |
Create a callback class with type infered from the arguments.
- Parameters:
-
func Static function to attach arg Pointer argument to function
- Returns:
- Callback with infered type
Definition at line 5748 of file Callback.h.
Callback<R(A0, A1, A2, A3, A4)> mbed::callback | ( | R(*)(const volatile void *, A0, A1, A2, A3, A4) | func, |
const volatile void * | arg | ||
) |
Create a callback class with type infered from the arguments.
- Parameters:
-
func Static function to attach arg Pointer argument to function
- Returns:
- Callback with infered type
Definition at line 5770 of file Callback.h.
Callback | ( | F | f ) | [inherited] |
Create a Callback with a function object.
- Parameters:
-
func Function object to attach
- Note:
- The function object is limited to a single word of storage
Definition at line 198 of file Callback.h.
Callback | ( | R(*)(T *, A0, A1) | func, |
T * | arg | ||
) | [inherited] |
Create a Callback with a static function and bound pointer.
- Parameters:
-
func Static function to attach arg Pointer argument to function
Definition at line 1574 of file Callback.h.
Callback | ( | const volatile T * | obj, |
R(T::*)(A0) const volatile | method | ||
) | [inherited] |
Create a Callback with a member function.
- Parameters:
-
obj Pointer to object to invoke member function on method Member function to attach
Definition at line 827 of file Callback.h.
Callback | ( | R(*)(const T *, A0, A1) | func, |
const T * | arg | ||
) | [inherited] |
Create a Callback with a static function and bound pointer.
- Parameters:
-
func Static function to attach arg Pointer argument to function
Definition at line 1583 of file Callback.h.
Callback | ( | R(*)(volatile T *, A0, A1) | func, |
volatile T * | arg | ||
) | [inherited] |
Create a Callback with a static function and bound pointer.
- Parameters:
-
func Static function to attach arg Pointer argument to function
Definition at line 1592 of file Callback.h.
Callback | ( | R(*)(void *, A0) | func, |
void * | arg | ||
) | [inherited] |
Create a Callback with a static function and bound pointer.
- Parameters:
-
func Static function to attach arg Pointer argument to function
Definition at line 835 of file Callback.h.
Callback | ( | R(*)(const void *) | func, |
const void * | arg | ||
) | [inherited] |
Create a Callback with a static function and bound pointer.
- Parameters:
-
func Static function to attach arg Pointer argument to function
Definition at line 137 of file Callback.h.
Callback | ( | R(*)(const void *, A0) | func, |
const void * | arg | ||
) | [inherited] |
Create a Callback with a static function and bound pointer.
- Parameters:
-
func Static function to attach arg Pointer argument to function
Definition at line 843 of file Callback.h.
Callback | ( | R(*)(volatile void *, A0) | func, |
volatile void * | arg | ||
) | [inherited] |
Create a Callback with a static function and bound pointer.
- Parameters:
-
func Static function to attach arg Pointer argument to function
Definition at line 851 of file Callback.h.
Callback | ( | R(*)(const volatile void *, A0, A1, A2, A3) | func, |
const volatile void * | arg | ||
) | [inherited] |
Create a Callback with a static function and bound pointer.
- Parameters:
-
func Static function to attach arg Pointer argument to function
Definition at line 2977 of file Callback.h.
Callback | ( | R(*)(T *, A0) | func, |
T * | arg | ||
) | [inherited] |
Create a Callback with a static function and bound pointer.
- Parameters:
-
func Static function to attach arg Pointer argument to function
Definition at line 868 of file Callback.h.
Callback | ( | R(*)(const volatile void *, A0) | func, |
const volatile void * | arg | ||
) | [inherited] |
Create a Callback with a static function and bound pointer.
- Parameters:
-
func Static function to attach arg Pointer argument to function
Definition at line 859 of file Callback.h.
Callback | ( | R(*)(const T *, A0) | func, |
const T * | arg | ||
) | [inherited] |
Create a Callback with a static function and bound pointer.
- Parameters:
-
func Static function to attach arg Pointer argument to function
Definition at line 877 of file Callback.h.
Callback | ( | R(*)(volatile T *, A0) | func, |
volatile T * | arg | ||
) | [inherited] |
Create a Callback with a static function and bound pointer.
- Parameters:
-
func Static function to attach arg Pointer argument to function
Definition at line 886 of file Callback.h.
void clear | ( | ) | [inherited] |
Clear the call chain (remove all functions in the chain).
Definition at line 86 of file CallChain.cpp.
bool core_util_are_interrupts_enabled | ( | void | ) |
Determine the current interrupts enabled state.
This function can be called to determine whether or not interrupts are currently enabled.
- Note:
- NOTE: This function works for both cortex-A and cortex-M, although the underlyng implementation differs.
- Returns:
- true if interrupts are enabled, false otherwise
Definition at line 29 of file mbed_critical.c.
bool core_util_atomic_cas_ptr | ( | void ** | ptr, |
void ** | expectedCurrentValue, | ||
void * | desiredValue | ||
) |
Atomic compare and set.
It compares the contents of a memory location to a given value and, only if they are the same, modifies the contents of that memory location to a given new value. This is done as a single atomic operation. The atomicity guarantees that the new value is calculated based on up-to-date information; if the value had been updated by another thread in the meantime, the write would fail due to a mismatched expectedCurrentValue.
Refer to https://en.wikipedia.org/wiki/Compare-and-set [which may redirect you to the article on compare-and swap].
- Parameters:
-
ptr The target memory location. [in,out] expectedCurrentValue A pointer to some location holding the expected current value of the data being set atomically. The computed 'desiredValue' should be a function of this current value. : This is an in-out parameter. In the failure case of atomic_cas (where the destination isn't set), the pointee of expectedCurrentValue is updated with the current value. [in] desiredValue The new value computed based on '*expectedCurrentValue'.
- Returns:
- true if the memory location was atomically updated with the desired value (after verifying that it contained the expectedCurrentValue), false otherwise. In the failure case, exepctedCurrentValue is updated with the new value of the target memory location.
pseudocode: function cas(p : pointer to int, old : pointer to int, new : int) returns bool { if *p != *old { *old = *p return false } *p = new return true }
: In the failure case (where the destination isn't set), the value pointed to by expectedCurrentValue is still updated with the current value. This property helps writing concise code for the following incr:
function incr(p : pointer to int, a : int) returns int { done = false value = *p // This fetch operation need not be atomic. while not done { done = atomic_cas(p, &value, value + a) // *value gets updated automatically until success } return value + a }
Definition at line 306 of file mbed_critical.c.
bool core_util_atomic_cas_u16 | ( | uint16_t * | ptr, |
uint16_t * | expectedCurrentValue, | ||
uint16_t | desiredValue | ||
) |
Atomic compare and set.
It compares the contents of a memory location to a given value and, only if they are the same, modifies the contents of that memory location to a given new value. This is done as a single atomic operation. The atomicity guarantees that the new value is calculated based on up-to-date information; if the value had been updated by another thread in the meantime, the write would fail due to a mismatched expectedCurrentValue.
Refer to https://en.wikipedia.org/wiki/Compare-and-set [which may redirect you to the article on compare-and swap].
- Parameters:
-
ptr The target memory location. [in,out] expectedCurrentValue A pointer to some location holding the expected current value of the data being set atomically. The computed 'desiredValue' should be a function of this current value. : This is an in-out parameter. In the failure case of atomic_cas (where the destination isn't set), the pointee of expectedCurrentValue is updated with the current value. [in] desiredValue The new value computed based on '*expectedCurrentValue'.
- Returns:
- true if the memory location was atomically updated with the desired value (after verifying that it contained the expectedCurrentValue), false otherwise. In the failure case, exepctedCurrentValue is updated with the new value of the target memory location.
pseudocode: function cas(p : pointer to int, old : pointer to int, new : int) returns bool { if *p != *old { *old = *p return false } *p = new return true }
: In the failure case (where the destination isn't set), the value pointed to by expectedCurrentValue is still updated with the current value. This property helps writing concise code for the following incr:
function incr(p : pointer to int, a : int) returns int { done = false value = *p // This fetch operation need not be atomic. while not done { done = atomic_cas(p, &value, value + a) // *value gets updated automatically until success } return value + a }
Definition at line 206 of file mbed_critical.c.
bool core_util_atomic_cas_u32 | ( | uint32_t * | ptr, |
uint32_t * | expectedCurrentValue, | ||
uint32_t | desiredValue | ||
) |
Atomic compare and set.
It compares the contents of a memory location to a given value and, only if they are the same, modifies the contents of that memory location to a given new value. This is done as a single atomic operation. The atomicity guarantees that the new value is calculated based on up-to-date information; if the value had been updated by another thread in the meantime, the write would fail due to a mismatched expectedCurrentValue.
Refer to https://en.wikipedia.org/wiki/Compare-and-set [which may redirect you to the article on compare-and swap].
- Parameters:
-
ptr The target memory location. [in,out] expectedCurrentValue A pointer to some location holding the expected current value of the data being set atomically. The computed 'desiredValue' should be a function of this current value. : This is an in-out parameter. In the failure case of atomic_cas (where the destination isn't set), the pointee of expectedCurrentValue is updated with the current value. [in] desiredValue The new value computed based on '*expectedCurrentValue'.
- Returns:
- true if the memory location was atomically updated with the desired value (after verifying that it contained the expectedCurrentValue), false otherwise. In the failure case, exepctedCurrentValue is updated with the new value of the target memory location.
pseudocode: function cas(p : pointer to int, old : pointer to int, new : int) returns bool { if *p != *old { *old = *p return false } *p = new return true }
: In the failure case (where the destination isn't set), the value pointed to by expectedCurrentValue is still updated with the current value. This property helps writing concise code for the following incr:
function incr(p : pointer to int, a : int) returns int { done = false value = *p // This fetch operation need not be atomic. while not done { done = atomic_cas(p, &value, value + a) // *value gets updated automatically until success } return value + a }
Definition at line 224 of file mbed_critical.c.
bool core_util_atomic_cas_u8 | ( | uint8_t * | ptr, |
uint8_t * | expectedCurrentValue, | ||
uint8_t | desiredValue | ||
) |
Atomic compare and set.
It compares the contents of a memory location to a given value and, only if they are the same, modifies the contents of that memory location to a given new value. This is done as a single atomic operation. The atomicity guarantees that the new value is calculated based on up-to-date information; if the value had been updated by another thread in the meantime, the write would fail due to a mismatched expectedCurrentValue.
Refer to https://en.wikipedia.org/wiki/Compare-and-set [which may redirect you to the article on compare-and swap].
- Parameters:
-
ptr The target memory location. [in,out] expectedCurrentValue A pointer to some location holding the expected current value of the data being set atomically. The computed 'desiredValue' should be a function of this current value. : This is an in-out parameter. In the failure case of atomic_cas (where the destination isn't set), the pointee of expectedCurrentValue is updated with the current value. [in] desiredValue The new value computed based on '*expectedCurrentValue'.
- Returns:
- true if the memory location was atomically updated with the desired value (after verifying that it contained the expectedCurrentValue), false otherwise. In the failure case, exepctedCurrentValue is updated with the new value of the target memory location.
pseudocode: function cas(p : pointer to int, old : pointer to int, new : int) returns bool { if *p != *old { *old = *p return false } *p = new return true }
: In the failure case (where the destination isn't set), the value pointed to by expectedCurrentValue is still updated with the current value. This property helps writing concise code for the following incr:
function incr(p : pointer to int, a : int) returns int { done = false value = *p // This fetch operation need not be atomic. while not done { done = atomic_cas(p, &value, value + a) // *value gets updated automatically until success } return value + a }
Definition at line 189 of file mbed_critical.c.
void* core_util_atomic_decr_ptr | ( | void ** | valuePtr, |
ptrdiff_t | delta | ||
) |
Atomic decrement.
- Parameters:
-
valuePtr Target memory location being decremented. delta The amount being decremented in bytes.
- Returns:
- The new decremented value.
- Note:
- The type of the pointer argument is not taken into account and the pointer is decremented by bytes
Definition at line 317 of file mbed_critical.c.
uint16_t core_util_atomic_decr_u16 | ( | uint16_t * | valuePtr, |
uint16_t | delta | ||
) |
Atomic decrement.
- Parameters:
-
valuePtr Target memory location being decremented. delta The amount being decremented.
- Returns:
- The new decremented value.
Definition at line 283 of file mbed_critical.c.
uint32_t core_util_atomic_decr_u32 | ( | uint32_t * | valuePtr, |
uint32_t | delta | ||
) |
Atomic decrement.
- Parameters:
-
valuePtr Target memory location being decremented. delta The amount being decremented.
- Returns:
- The new decremented value.
Definition at line 293 of file mbed_critical.c.
uint8_t core_util_atomic_decr_u8 | ( | uint8_t * | valuePtr, |
uint8_t | delta | ||
) |
Atomic decrement.
- Parameters:
-
valuePtr Target memory location being decremented. delta The amount being decremented.
- Returns:
- The new decremented value.
Definition at line 273 of file mbed_critical.c.
void* core_util_atomic_incr_ptr | ( | void ** | valuePtr, |
ptrdiff_t | delta | ||
) |
Atomic increment.
- Parameters:
-
valuePtr Target memory location being incremented. delta The amount being incremented in bytes.
- Returns:
- The new incremented value.
- Note:
- The type of the pointer argument is not taken into account and the pointer is incremented by bytes.
Definition at line 313 of file mbed_critical.c.
uint16_t core_util_atomic_incr_u16 | ( | uint16_t * | valuePtr, |
uint16_t | delta | ||
) |
Atomic increment.
- Parameters:
-
valuePtr Target memory location being incremented. delta The amount being incremented.
- Returns:
- The new incremented value.
Definition at line 252 of file mbed_critical.c.
uint32_t core_util_atomic_incr_u32 | ( | uint32_t * | valuePtr, |
uint32_t | delta | ||
) |
Atomic increment.
- Parameters:
-
valuePtr Target memory location being incremented. delta The amount being incremented.
- Returns:
- The new incremented value.
Definition at line 262 of file mbed_critical.c.
uint8_t core_util_atomic_incr_u8 | ( | uint8_t * | valuePtr, |
uint8_t | delta | ||
) |
Atomic increment.
- Parameters:
-
valuePtr Target memory location being incremented. delta The amount being incremented.
- Returns:
- The new incremented value.
Definition at line 242 of file mbed_critical.c.
void core_util_critical_section_enter | ( | void | ) |
Mark the start of a critical section.
This function should be called to mark the start of a critical section of code.
- Note:
- NOTES: 1) The use of this style of critical section is targetted at C based implementations. 2) These critical sections can be nested. 3) The interrupt enable state on entry to the first critical section (of a nested set, or single section) will be preserved on exit from the section. 4) This implementation will currently only work on code running in privileged mode.
Definition at line 38 of file mbed_critical.c.
void core_util_critical_section_exit | ( | void | ) |
Mark the end of a critical section.
This function should be called to mark the end of a critical section of code.
- Note:
- NOTES: 1) The use of this style of critical section is targetted at C based implementations. 2) These critical sections can be nested. 3) The interrupt enable state on entry to the first critical section (of a nested set, or single section) will be preserved on exit from the section. 4) This implementation will currently only work on code running in privileged mode.
Definition at line 63 of file mbed_critical.c.
static void debug | ( | const char * | format, |
... | |||
) | [static] |
Output a debug message.
- Parameters:
-
format printf-style format string, followed by variables
Definition at line 35 of file mbed_debug.h.
static void debug_if | ( | int | condition, |
const char * | format, | ||
... | |||
) | [static] |
Conditionally output a debug message.
NOTE: If the condition is constant false (!= 1) and the compiler optimization level is greater than 0, then the whole function will be compiled away.
- Parameters:
-
condition output only if condition is true (== 1) format printf-style format string, followed by variables
Definition at line 50 of file mbed_debug.h.
bool empty | ( | ) | [inherited] |
Check if the buffer is empty.
- Returns:
- True if the buffer is empty, false if not
Definition at line 79 of file CircularBuffer.h.
int find | ( | pFunctionPointer_t | f ) | const [inherited] |
Look for a function object in the call chain.
- Parameters:
-
f the function object to search
- Returns:
- The index of the function object if found, -1 otherwise.
Definition at line 73 of file CallChain.cpp.
bool full | ( | ) | [inherited] |
Check if the buffer is full.
- Returns:
- True if the buffer is full, false if not
Definition at line 90 of file CircularBuffer.h.
pFunctionPointer_t get | ( | int | i ) | const [inherited] |
Get a function object from the chain.
- Parameters:
-
i function object index
- Returns:
- The function object at position 'i' in the chain
Definition at line 62 of file CallChain.cpp.
Class* get_object | ( | ) | [inherited] |
Get object's instance for the transaction.
- Returns:
- The object which was stored
Definition at line 58 of file Transaction.h.
transaction_t* get_transaction | ( | ) | [inherited] |
Get the transaction.
- Returns:
- The transaction which was stored
Definition at line 66 of file Transaction.h.
void mbed_assert_internal | ( | const char * | expr, |
const char * | file, | ||
int | line | ||
) |
Internal mbed assert function which is invoked when MBED_ASSERT macro failes.
This function is active only if NDEBUG is not defined prior to including this assert header file. In case of MBED_ASSERT failing condition, error() is called with the assertation message.
- Parameters:
-
expr Expresion to be checked. file File where assertation failed. line Failing assertation line number.
Definition at line 22 of file mbed_assert.c.
MBED_DEPRECATED_SINCE | ( | "mbed-os-5.1" | , |
"Arguments to callback have been reordered to Callback< R()>(func, arg)" | |||
) | const [inherited] |
Create a Callback with a static function and bound pointer.
- Parameters:
-
obj Pointer to object to bind to function func Static function to attach
MBED_DEPRECATED_SINCE | ( | "mbed-os-5.1" | , |
"Arguments to callback have been reordered to Callback< R(A0)>(func, arg)" | |||
) | [inherited] |
Create a Callback with a static function and bound pointer.
- Parameters:
-
obj Pointer to object to bind to function func Static function to attach
MBED_DEPRECATED_SINCE | ( | "mbed-os-5.1" | , |
"Arguments to callback have been reordered to Callback< R(A0)>(func, arg)" | |||
) | const [inherited] |
Create a Callback with a static function and bound pointer.
- Parameters:
-
obj Pointer to object to bind to function func Static function to attach
MBED_DEPRECATED_SINCE | ( | "mbed-os-5.1" | , |
"Arguments to callback have been reordered to Callback< R(A0, A1, A2, A3, A4)>(func, arg)" | |||
) | [inherited] |
Create a Callback with a static function and bound pointer.
- Parameters:
-
obj Pointer to object to bind to function func Static function to attach
MBED_DEPRECATED_SINCE | ( | "mbed-os-5.1" | , |
"Arguments to callback have been reordered to Callback< R(A0)>(func, arg)" | |||
) | volatile [inherited] |
Create a Callback with a static function and bound pointer.
- Parameters:
-
obj Pointer to object to bind to function func Static function to attach
MBED_DEPRECATED_SINCE | ( | "mbed-os-5.1" | , |
"Arguments to callback have been reordered to Callback< R(A0, A1, A2, A3, A4)>(func, arg)" | |||
) | volatile [inherited] |
Create a Callback with a static function and bound pointer.
- Parameters:
-
obj Pointer to object to bind to function func Static function to attach
MBED_DEPRECATED_SINCE | ( | "mbed-os-5.1" | , |
"Arguments to callback have been reordered to Callback< R(A0, A1, A2, A3, A4)>(func, arg)" | |||
) | const volatile [inherited] |
Create a Callback with a static function and bound pointer.
- Parameters:
-
obj Pointer to object to bind to function func Static function to attach
MBED_DEPRECATED_SINCE | ( | "mbed-os-5.1" | , |
"Arguments to callback have been reordered to Callback< R()>(func, arg)" | |||
) | volatile [inherited] |
Create a Callback with a static function and bound pointer.
- Parameters:
-
obj Pointer to object to bind to function func Static function to attach
MBED_DEPRECATED_SINCE | ( | "mbed-os-5.1" | , |
"Arguments to callback have been reordered to attach(func, arg)" | |||
) | const [inherited] |
Attach a static function with a bound pointer.
- Parameters:
-
obj Pointer to object to bind to function func Static function to attach
MBED_DEPRECATED_SINCE | ( | "mbed-os-5.1" | , |
"Arguments to callback have been reordered to Callback< R(A0)>(func, arg)" | |||
) | const volatile [inherited] |
Create a Callback with a static function and bound pointer.
- Parameters:
-
obj Pointer to object to bind to function func Static function to attach
MBED_DEPRECATED_SINCE | ( | "mbed-os-5.1" | , |
"Arguments to callback have been reordered to attach(func, arg)" | |||
) | volatile [inherited] |
Attach a static function with a bound pointer.
- Parameters:
-
obj Pointer to object to bind to function func Static function to attach
MBED_DEPRECATED_SINCE | ( | "mbed-os-5.1" | , |
"Arguments to callback have been reordered to attach(func, arg)" | |||
) | const volatile [inherited] |
Attach a static function with a bound pointer.
- Parameters:
-
obj Pointer to object to bind to function func Static function to attach
MBED_DEPRECATED_SINCE | ( | "mbed-os-5.1" | , |
"Arguments to callback have been reordered to attach(func, arg)" | |||
) | [inherited] |
Attach a static function with a bound pointer.
- Parameters:
-
obj Pointer to object to bind to function func Static function to attach
MBED_DEPRECATED_SINCE | ( | "mbed-os-5.1" | , |
"Arguments to callback have been reordered to attach(func, arg)" | |||
) | const volatile [inherited] |
Attach a static function with a bound pointer.
- Parameters:
-
obj Pointer to object to bind to function func Static function to attach
MBED_DEPRECATED_SINCE | ( | "mbed-os-5.1" | , |
"Arguments to callback have been reordered to attach(func, arg)" | |||
) | const [inherited] |
Attach a static function with a bound pointer.
- Parameters:
-
obj Pointer to object to bind to function func Static function to attach
MBED_DEPRECATED_SINCE | ( | "mbed-os-5.1" | , |
"Arguments to callback have been reordered to attach(func, arg)" | |||
) | [inherited] |
Attach a static function with a bound pointer.
- Parameters:
-
obj Pointer to object to bind to function func Static function to attach
MBED_DEPRECATED_SINCE | ( | "mbed-os-5.1" | , |
"Arguments to callback have been reordered to Callback< R()>(func, arg)" | |||
) | const volatile [inherited] |
Create a Callback with a static function and bound pointer.
- Parameters:
-
obj Pointer to object to bind to function func Static function to attach
MBED_DEPRECATED_SINCE | ( | "mbed-os-5.1" | , |
"Arguments to callback have been reordered to attach(func, arg)" | |||
) | volatile [inherited] |
Attach a static function with a bound pointer.
- Parameters:
-
obj Pointer to object to bind to function func Static function to attach
MBED_DEPRECATED_SINCE | ( | "mbed-os-5.1" | , |
"Arguments to callback have been reordered to attach(func, arg)" | |||
) | volatile [inherited] |
Attach a static function with a bound pointer.
- Parameters:
-
obj Pointer to object to bind to function func Static function to attach
MBED_DEPRECATED_SINCE | ( | "mbed-os-5.1" | , |
"Arguments to callback have been reordered to attach(func, arg)" | |||
) | const [inherited] |
Attach a static function with a bound pointer.
- Parameters:
-
obj Pointer to object to bind to function func Static function to attach
MBED_DEPRECATED_SINCE | ( | "mbed-os-5.1" | , |
"Arguments to callback have been reordered to attach(func, arg)" | |||
) | const volatile [inherited] |
Attach a static function with a bound pointer.
- Parameters:
-
obj Pointer to object to bind to function func Static function to attach
MBED_DEPRECATED_SINCE | ( | "mbed-os-5.1" | , |
"Arguments to callback have been reordered to attach(func, arg)" | |||
) | volatile [inherited] |
Attach a static function with a bound pointer.
- Parameters:
-
obj Pointer to object to bind to function func Static function to attach
MBED_DEPRECATED_SINCE | ( | "mbed-os-5.1" | , |
"Arguments to callback have been reordered to attach(func, arg)" | |||
) | [inherited] |
Attach a static function with a bound pointer.
- Parameters:
-
obj Pointer to object to bind to function func Static function to attach
MBED_DEPRECATED_SINCE | ( | "mbed-os-5.1" | , |
"Arguments to callback have been reordered to Callback< R(A0, A1, A2)>(func, arg)" | |||
) | const volatile [inherited] |
Create a Callback with a static function and bound pointer.
- Parameters:
-
obj Pointer to object to bind to function func Static function to attach
MBED_DEPRECATED_SINCE | ( | "mbed-os-5.1" | , |
"Arguments to callback have been reordered to attach(func, arg)" | |||
) | const [inherited] |
Attach a static function with a bound pointer.
- Parameters:
-
obj Pointer to object to bind to function func Static function to attach
MBED_DEPRECATED_SINCE | ( | "mbed-os-5.1" | , |
"Arguments to callback have been reordered to Callback< R(A0, A1, A2)>(func, arg)" | |||
) | volatile [inherited] |
Create a Callback with a static function and bound pointer.
- Parameters:
-
obj Pointer to object to bind to function func Static function to attach
MBED_DEPRECATED_SINCE | ( | "mbed-os-5.1" | , |
"Arguments to callback have been reordered to Callback< R(A0, A1, A2)>(func, arg)" | |||
) | const [inherited] |
Create a Callback with a static function and bound pointer.
- Parameters:
-
obj Pointer to object to bind to function func Static function to attach
MBED_DEPRECATED_SINCE | ( | "mbed-os-5.1" | , |
"Arguments to callback have been reordered to Callback< R(A0, A1, A2)>(func, arg)" | |||
) | [inherited] |
Create a Callback with a static function and bound pointer.
- Parameters:
-
obj Pointer to object to bind to function func Static function to attach
MBED_DEPRECATED_SINCE | ( | "mbed-os-5.1" | , |
"Arguments to callback have been reordered to Callback< R(A0, A1, A2, A3)>(func, arg)" | |||
) | [inherited] |
Create a Callback with a static function and bound pointer.
- Parameters:
-
obj Pointer to object to bind to function func Static function to attach
MBED_DEPRECATED_SINCE | ( | "mbed-os-5.1" | , |
"Arguments to callback have been reordered to callback(func, arg)" | |||
) |
Create a callback class with type infered from the arguments.
- Parameters:
-
obj Optional pointer to object to bind to function func Static function to attach
- Returns:
- Callback with infered type
- Parameters:
-
obj Optional pointer to object to bind to function func Static function to attach
- Returns:
- Callback with infered type
- Parameters:
-
obj Optional pointer to object to bind to function func Static function to attach
- Returns:
- Callback with infered type
- Parameters:
-
obj Optional pointer to object to bind to function func Static function to attach
- Returns:
- Callback with infered type
MBED_DEPRECATED_SINCE | ( | "mbed-os-5.1" | , |
"Arguments to callback have been reordered to Callback< R(A0, A1)>(func, arg)" | |||
) | [inherited] |
Create a Callback with a static function and bound pointer.
- Parameters:
-
obj Pointer to object to bind to function func Static function to attach
MBED_DEPRECATED_SINCE | ( | "mbed-os-5.1" | , |
"Arguments to callback have been reordered to attach(func, arg)" | |||
) | [inherited] |
Attach a static function with a bound pointer.
- Parameters:
-
obj Pointer to object to bind to function func Static function to attach
MBED_DEPRECATED_SINCE | ( | "mbed-os-5.1" | , |
"Arguments to callback have been reordered to attach(func, arg)" | |||
) | const volatile [inherited] |
Attach a static function with a bound pointer.
- Parameters:
-
obj Pointer to object to bind to function func Static function to attach
MBED_DEPRECATED_SINCE | ( | "mbed-os-5.1" | , |
"Arguments to callback have been reordered to attach(func, arg)" | |||
) | const volatile [inherited] |
Attach a static function with a bound pointer.
- Parameters:
-
obj Pointer to object to bind to function func Static function to attach
MBED_DEPRECATED_SINCE | ( | "mbed-os-5.1" | , |
"Arguments to callback have been reordered to attach(func, arg)" | |||
) | volatile [inherited] |
Attach a static function with a bound pointer.
- Parameters:
-
obj Pointer to object to bind to function func Static function to attach
MBED_DEPRECATED_SINCE | ( | "mbed-os-5.1" | , |
"Arguments to callback have been reordered to attach(func, arg)" | |||
) | const volatile [inherited] |
Attach a static function with a bound pointer.
- Parameters:
-
obj Pointer to object to bind to function func Static function to attach
MBED_DEPRECATED_SINCE | ( | "mbed-os-5.1" | , |
"Arguments to callback have been reordered to attach(func, arg)" | |||
) | const [inherited] |
Attach a static function with a bound pointer.
- Parameters:
-
obj Pointer to object to bind to function func Static function to attach
MBED_DEPRECATED_SINCE | ( | "mbed-os-5.1" | , |
"Arguments to callback have been reordered to attach(func, arg)" | |||
) | [inherited] |
Attach a static function with a bound pointer.
- Parameters:
-
obj Pointer to object to bind to function func Static function to attach
MBED_DEPRECATED_SINCE | ( | "mbed-os-5.1" | , |
"Arguments to callback have been reordered to Callback< R(A0, A1, A2, A3)>(func, arg)" | |||
) | const volatile [inherited] |
Create a Callback with a static function and bound pointer.
- Parameters:
-
obj Pointer to object to bind to function func Static function to attach
MBED_DEPRECATED_SINCE | ( | "mbed-os-5.1" | , |
"Arguments to callback have been reordered to Callback< R(A0, A1, A2, A3, A4)>(func, arg)" | |||
) | const [inherited] |
Create a Callback with a static function and bound pointer.
- Parameters:
-
obj Pointer to object to bind to function func Static function to attach
MBED_DEPRECATED_SINCE | ( | "mbed-os-5.1" | , |
"Arguments to callback have been reordered to Callback< R()>(func, arg)" | |||
) | [inherited] |
Create a Callback with a static function and bound pointer.
- Parameters:
-
obj Pointer to object to bind to function func Static function to attach
MBED_DEPRECATED_SINCE | ( | "mbed-os-5.1" | , |
"Arguments to callback have been reordered to attach(func, arg)" | |||
) | const [inherited] |
Attach a static function with a bound pointer.
- Parameters:
-
obj Pointer to object to bind to function func Static function to attach
MBED_DEPRECATED_SINCE | ( | "mbed-os-5.1" | , |
"Arguments to callback have been reordered to attach(func, arg)" | |||
) | [inherited] |
Attach a static function with a bound pointer.
- Parameters:
-
obj Pointer to object to bind to function func Static function to attach
MBED_DEPRECATED_SINCE | ( | "mbed-os-5.1" | , |
"Arguments to callback have been reordered to Callback< R(A0, A1, A2, A3)>(func, arg)" | |||
) | const [inherited] |
Create a Callback with a static function and bound pointer.
- Parameters:
-
obj Pointer to object to bind to function func Static function to attach
MBED_DEPRECATED_SINCE | ( | "mbed-os-5.1" | , |
"Arguments to callback have been reordered to Callback< R(A0, A1, A2, A3)>(func, arg)" | |||
) | volatile [inherited] |
Create a Callback with a static function and bound pointer.
- Parameters:
-
obj Pointer to object to bind to function func Static function to attach
MBED_DEPRECATED_SINCE | ( | "mbed-os-5.1" | , |
"The add_front function does not support cv-qualifiers. Replaced by ""add_front(callback(obj, method))." | |||
) | [inherited] |
Add a function at the beginning of the chain.
- Parameters:
-
tptr pointer to the object to call the member function on mptr pointer to the member function to be called
- Returns:
- The function object created for 'tptr' and 'mptr'
MBED_DEPRECATED_SINCE | ( | "mbed-os-5.1" | , |
"Arguments to callback have been reordered to Callback< R(A0, A1)>(func, arg)" | |||
) | const [inherited] |
Create a Callback with a static function and bound pointer.
- Parameters:
-
obj Pointer to object to bind to function func Static function to attach
MBED_DEPRECATED_SINCE | ( | "mbed-os-5.1" | , |
"Arguments to callback have been reordered to Callback< R(A0, A1)>(func, arg)" | |||
) | volatile [inherited] |
Create a Callback with a static function and bound pointer.
- Parameters:
-
obj Pointer to object to bind to function func Static function to attach
MBED_DEPRECATED_SINCE | ( | "mbed-os-5.1" | , |
"Arguments to callback have been reordered to Callback< R(A0, A1)>(func, arg)" | |||
) | const volatile [inherited] |
Create a Callback with a static function and bound pointer.
- Parameters:
-
obj Pointer to object to bind to function func Static function to attach
MBED_DEPRECATED_SINCE | ( | "mbed-os-5.1" | , |
"The add function does not support cv-qualifiers. Replaced by ""add(callback(obj, method))." | |||
) | [inherited] |
Add a function at the end of the chain.
- Parameters:
-
obj pointer to the object to call the member function on method pointer to the member function to be called
- Returns:
- The function object created for 'obj' and 'method'
MBED_DEPRECATED_SINCE | ( | "mbed-os-5.1" | , |
"Arguments to callback have been reordered to attach(func, arg)" | |||
) | volatile [inherited] |
Attach a static function with a bound pointer.
- Parameters:
-
obj Pointer to object to bind to function func Static function to attach
void mbed_die | ( | void | ) |
Cause the mbed to flash the BLOD (Blue LEDs Of Death) sequence.
Definition at line 29 of file mbed_board.c.
void mbed_error_printf | ( | const char * | format, |
... | |||
) |
Print out an error message.
This is typically called when hanlding a crash.
Synchronization level: Interrupt safe
Definition at line 69 of file mbed_board.c.
void mbed_error_vfprintf | ( | const char * | format, |
va_list | arg | ||
) |
Print out an error message.
Similar to mbed_error_printf but uses a va_list.
Synchronization level: Interrupt safe
Definition at line 76 of file mbed_board.c.
int mbed_interface_connected | ( | void | ) |
Functions to control the mbed interface.
mbed Microcontrollers have a built-in interface to provide functionality such as drag-n-drop download, reset, serial-over-usb, and access to the mbed local file system. These functions provide means to control the interface suing semihost calls it supports. Determine whether the mbed interface is connected, based on whether debug is enabled
- Returns:
- 1 if interface is connected, 0 otherwise
Definition at line 28 of file mbed_interface.c.
int mbed_interface_disconnect | ( | void | ) |
This will disconnect the debug aspect of the interface, so semihosting will be disabled.
The interface will still support the USB serial aspect
- Returns:
- 0 if successful, -1 otherwise (e.g. interface not present)
Definition at line 50 of file mbed_interface.c.
int mbed_interface_powerdown | ( | void | ) |
This will disconnect the debug aspect of the interface, and if the USB cable is not connected, also power down the interface.
If the USB cable is connected, the interface will remain powered up and visible to the host
- Returns:
- 0 if successful, -1 otherwise (e.g. interface not present)
Definition at line 62 of file mbed_interface.c.
int mbed_interface_reset | ( | void | ) |
Instruct the mbed interface to reset, as if the reset button had been pressed.
- Returns:
- 1 if successful, 0 otherwise (e.g. interface not present)
Definition at line 32 of file mbed_interface.c.
int mbed_interface_uid | ( | char * | uid ) |
This returns a string containing the 32-character UID of the mbed interface This is a weak function that can be overwritten if required.
- Parameters:
-
uid A 33-byte array to write the null terminated 32-byte string
- Returns:
- 0 if successful, -1 otherwise (e.g. interface not present)
Definition at line 41 of file mbed_interface.c.
void mbed_mac_address | ( | char * | mac ) |
This returns a unique 6-byte MAC address, based on the interface UID If the interface is not present, it returns a default fixed MAC address (00:02:F7:F0:00:00)
This is a weak function that can be overwritten if you want to provide your own mechanism to provide a MAC address.
- Parameters:
-
mac A 6-byte array to write the MAC address
Definition at line 84 of file mbed_interface.c.
void* mbed_mem_trace_calloc | ( | void * | res, |
size_t | num, | ||
size_t | size, | ||
void * | caller | ||
) |
Trace a call to 'calloc'.
- Parameters:
-
res the result of running 'calloc'. nmemb the 'nmemb' argument given to 'calloc'. size the 'size' argument given to 'calloc'. caller the caller of the memory operation. 'res' (the first argument).
Definition at line 62 of file mbed_mem_trace.c.
void mbed_mem_trace_default_callback | ( | uint8_t | op, |
void * | res, | ||
void * | caller, | ||
... | |||
) |
Default memory trace callback.
DO NOT CALL DIRECTLY. It is meant to be used as the second argument of 'mbed_mem_trace_setup'.
The default callback outputs trace data using 'printf', in a format that's easily parsable by an external tool. For each memory operation, the callback outputs a line that begins with '#<op>:<0xresult>;<0xcaller>-':
- 'op' identifies the memory operation ('m' for 'malloc', 'r' for 'realloc', 'c' for 'calloc' and 'f' for 'free').
- 'result' (base 16) is the result of the memor operation. This is always NULL for 'free', since 'free' doesn't return anything. -'caller' (base 16) is the caller of the memory operation. Note that the value of 'caller' might be unreliable.
The rest of the output depends on the operation being traced:
- for 'malloc': 'size', where 'size' is the original argument to 'malloc'.
- for 'realloc': '0xptr;size', where 'ptr' (base 16) and 'size' are the original arguments to 'realloc'.
- for 'calloc': 'nmemb;size', where 'nmemb' and 'size' are the original arguments to 'calloc'.
- for 'free': '0xptr', where 'ptr' (base 16) is the original argument to 'free'.
Examples:
- 'm:0x20003240;0x600d-50' encodes a 'malloc' that returned 0x20003240, was called by the instruction at 0x600D with a the 'size' argument equal to 50.
- 'f:0x0;0x602f-0x20003240' encodes a 'free' that was called by the instruction at 0x602f with the 'ptr' argument equal to 0x20003240.
Definition at line 81 of file mbed_mem_trace.c.
void mbed_mem_trace_free | ( | void * | ptr, |
void * | caller | ||
) |
Trace a call to 'free'.
- Parameters:
-
ptr the 'ptr' argument given to 'free'. caller the caller of the memory operation.
Definition at line 72 of file mbed_mem_trace.c.
void* mbed_mem_trace_malloc | ( | void * | res, |
size_t | size, | ||
void * | caller | ||
) |
Trace a call to 'malloc'.
- Parameters:
-
res the result of running 'malloc'. size the 'size' argument given to 'malloc'. caller the caller of the memory operation.
- Returns:
- 'res' (the first argument).
Definition at line 42 of file mbed_mem_trace.c.
void* mbed_mem_trace_realloc | ( | void * | res, |
void * | ptr, | ||
size_t | size, | ||
void * | caller | ||
) |
Trace a call to 'realloc'.
- Parameters:
-
res the result of running 'realloc'. ptr the 'ptr' argument given to 'realloc'. size the 'size' argument given to 'realloc'.
- Returns:
- 'res' (the first argument).
Definition at line 52 of file mbed_mem_trace.c.
void mbed_mem_trace_set_callback | ( | mbed_mem_trace_cb_t | cb ) |
Set the callback used by the memory tracer (use NULL for disable tracing).
- Parameters:
-
cb the callback to call on each memory operation.
Definition at line 38 of file mbed_mem_trace.c.
void mbed_stats_heap_get | ( | mbed_stats_heap_t * | stats ) |
Fill the passed in structure with heap stats.
Definition at line 57 of file mbed_alloc_wrappers.cpp.
operator bool | ( | ) | const [inherited] |
Test if function has been attached.
Definition at line 1373 of file Callback.h.
operator bool | ( | ) | const [inherited] |
Test if function has been attached.
Definition at line 667 of file Callback.h.
operator bool | ( | ) | const [inherited] |
Test if function has been attached.
Definition at line 2785 of file Callback.h.
operator bool | ( | ) | const [inherited] |
Test if function has been attached.
Definition at line 4197 of file Callback.h.
operator bool | ( | ) | const [inherited] |
Test if function has been attached.
Definition at line 2079 of file Callback.h.
operator bool | ( | ) | const [inherited] |
Test if function has been attached.
Definition at line 3491 of file Callback.h.
R operator() | ( | void | ) | const [inherited] |
Call the attached function.
Definition at line 661 of file Callback.h.
R operator() | ( | A0 | a0, |
A1 | a1, | ||
A2 | a2, | ||
A3 | a3 | ||
) | const [inherited] |
Call the attached function.
Definition at line 3485 of file Callback.h.
R operator() | ( | A0 | a0 ) | const [inherited] |
Call the attached function.
Definition at line 1367 of file Callback.h.
R operator() | ( | A0 | a0, |
A1 | a1 | ||
) | const [inherited] |
Call the attached function.
Definition at line 2073 of file Callback.h.
R operator() | ( | A0 | a0, |
A1 | a1, | ||
A2 | a2 | ||
) | const [inherited] |
Call the attached function.
Definition at line 2779 of file Callback.h.
R operator() | ( | A0 | a0, |
A1 | a1, | ||
A2 | a2, | ||
A3 | a3, | ||
A4 | a4 | ||
) | const [inherited] |
Call the attached function.
Definition at line 4191 of file Callback.h.
Callback& operator= | ( | const Callback< R()> & | that ) | [inherited] |
Assign a callback.
Definition at line 643 of file Callback.h.
Callback& operator= | ( | const Callback< R(A0, A1, A2, A3, A4)> & | that ) | [inherited] |
Assign a callback.
Definition at line 4173 of file Callback.h.
Callback& operator= | ( | const Callback< R(A0, A1)> & | that ) | [inherited] |
Assign a callback.
Definition at line 2055 of file Callback.h.
Callback& operator= | ( | const Callback< R(A0, A1, A2, A3)> & | that ) | [inherited] |
Assign a callback.
Definition at line 3467 of file Callback.h.
Callback& operator= | ( | const Callback< R(A0, A1, A2)> & | that ) | [inherited] |
Assign a callback.
Definition at line 2761 of file Callback.h.
Callback& operator= | ( | const Callback< R(A0)> & | that ) | [inherited] |
Assign a callback.
Definition at line 1349 of file Callback.h.
bool pop | ( | T & | data ) | [inherited] |
Pop the transaction from the buffer.
- Parameters:
-
data Data to be pushed to the buffer
- Returns:
- True if the buffer is not empty and data contains a transaction, false otherwise
Definition at line 62 of file CircularBuffer.h.
void push | ( | const T & | data ) | [inherited] |
Push the transaction to the buffer.
This overwrites the buffer if it's full
- Parameters:
-
data Data to be pushed to the buffer
Definition at line 43 of file CircularBuffer.h.
bool remove | ( | pFunctionPointer_t | f ) | [inherited] |
Remove a function object from the chain.
- f the function object to remove
- Returns:
- true if the function object was found and removed, false otherwise.
Definition at line 96 of file CallChain.cpp.
void reset | ( | ) | [inherited] |
Reset the buffer.
Definition at line 100 of file CircularBuffer.h.
void set_time | ( | time_t | t ) |
Implementation of the C time.h functions.
Provides mechanisms to set and read the current time, based on the microcontroller Real-Time Clock (RTC), plus some standard C manipulation and formating functions.
Example:
#include "mbed.h" int main() { set_time(1256729737); // Set RTC time to Wed, 28 Oct 2009 11:35:37 while(1) { time_t seconds = time(NULL); printf("Time as seconds since January 1, 1970 = %d\n", seconds); printf("Time as a basic string = %s", ctime(&seconds)); char buffer[32]; strftime(buffer, 32, "%I:%M %p\n", localtime(&seconds)); printf("Time as a custom formatted string = %s", buffer); wait(1); } }
Set the current time
Initialises and sets the time of the microcontroller Real-Time Clock (RTC) to the time represented by the number of seconds since January 1, 1970 (the UNIX timestamp).
- Parameters:
-
t Number of seconds since January 1, 1970 (the UNIX timestamp)
Synchronization level: Thread safe
Example:
#include "mbed.h" int main() { set_time(1256729737); // Set time to Wed, 28 Oct 2009 11:35:37 }
Definition at line 68 of file mbed_rtc_time.cpp.
static void singleton_lock | ( | void | ) | [static] |
Lock the singleton mutex.
This function is typically used to provide exclusive access when initializing a global object.
Definition at line 39 of file SingletonPtr.h.
static void singleton_unlock | ( | void | ) | [static] |
Unlock the singleton mutex.
This function is typically used to provide exclusive access when initializing a global object.
Definition at line 52 of file SingletonPtr.h.
static R thunk | ( | void * | func, |
A0 | a0 | ||
) | [static, inherited] |
Static thunk for passing as C-style function.
- Parameters:
-
func Callback to call passed as void pointer
Definition at line 1392 of file Callback.h.
static R thunk | ( | void * | func, |
A0 | a0, | ||
A1 | a1, | ||
A2 | a2 | ||
) | [static, inherited] |
Static thunk for passing as C-style function.
- Parameters:
-
func Callback to call passed as void pointer
Definition at line 2804 of file Callback.h.
static R thunk | ( | void * | func, |
A0 | a0, | ||
A1 | a1 | ||
) | [static, inherited] |
Static thunk for passing as C-style function.
- Parameters:
-
func Callback to call passed as void pointer
Definition at line 2098 of file Callback.h.
static R thunk | ( | void * | func, |
A0 | a0, | ||
A1 | a1, | ||
A2 | a2, | ||
A3 | a3 | ||
) | [static, inherited] |
Static thunk for passing as C-style function.
- Parameters:
-
func Callback to call passed as void pointer
Definition at line 3510 of file Callback.h.
static R thunk | ( | void * | func, |
A0 | a0, | ||
A1 | a1, | ||
A2 | a2, | ||
A3 | a3, | ||
A4 | a4 | ||
) | [static, inherited] |
Static thunk for passing as C-style function.
- Parameters:
-
func Callback to call passed as void pointer
Definition at line 4216 of file Callback.h.
static R thunk | ( | void * | func ) | [static, inherited] |
Static thunk for passing as C-style function.
- Parameters:
-
func Callback to call passed as void pointer
Definition at line 686 of file Callback.h.
~Callback | ( | ) | [inherited] |
Destroy a callback.
Definition at line 3167 of file Callback.h.
~Callback | ( | ) | [inherited] |
Destroy a callback.
Definition at line 1755 of file Callback.h.
~Callback | ( | ) | [inherited] |
Destroy a callback.
Definition at line 1049 of file Callback.h.
~Callback | ( | ) | [inherited] |
Destroy a callback.
Definition at line 343 of file Callback.h.
~Callback | ( | ) | [inherited] |
Destroy a callback.
Definition at line 3873 of file Callback.h.
~Callback | ( | ) | [inherited] |
Destroy a callback.
Definition at line 2461 of file Callback.h.
Variable Documentation
event_callback_t callback [inherited] |
User's callback.
Definition at line 34 of file Transaction.h.
uint32_t event [inherited] |
Event for a transaction.
Definition at line 33 of file Transaction.h.
void* rx_buffer [inherited] |
Rx buffer.
Definition at line 31 of file Transaction.h.
size_t rx_length [inherited] |
Length of Rx buffer.
Definition at line 32 of file Transaction.h.
size_t tx_length [inherited] |
Length of Tx buffer.
Definition at line 30 of file Transaction.h.
uint8_t width [inherited] |
Buffer's word width (8, 16, 32, 64)
Definition at line 35 of file Transaction.h.
Friends
bool operator!= | ( | const Callback< R()> & | l, |
const Callback< R()> & | r | ||
) | [friend, inherited] |
Test for inequality.
Definition at line 679 of file Callback.h.
bool operator!= | ( | const Callback< R(A0)> & | l, |
const Callback< R(A0)> & | r | ||
) | [friend, inherited] |
Test for inequality.
Definition at line 1385 of file Callback.h.
bool operator!= | ( | const Callback< R(A0, A1, A2)> & | l, |
const Callback< R(A0, A1, A2)> & | r | ||
) | [friend, inherited] |
Test for inequality.
Definition at line 2797 of file Callback.h.
bool operator!= | ( | const Callback< R(A0, A1, A2, A3)> & | l, |
const Callback< R(A0, A1, A2, A3)> & | r | ||
) | [friend, inherited] |
Test for inequality.
Definition at line 3503 of file Callback.h.
bool operator!= | ( | const Callback< R(A0, A1)> & | l, |
const Callback< R(A0, A1)> & | r | ||
) | [friend, inherited] |
Test for inequality.
Definition at line 2091 of file Callback.h.
bool operator!= | ( | const Callback< R(A0, A1, A2, A3, A4)> & | l, |
const Callback< R(A0, A1, A2, A3, A4)> & | r | ||
) | [friend, inherited] |
Test for inequality.
Definition at line 4209 of file Callback.h.
bool operator== | ( | const Callback< R(A0, A1, A2)> & | l, |
const Callback< R(A0, A1, A2)> & | r | ||
) | [friend, inherited] |
Test for equality.
Definition at line 2791 of file Callback.h.
bool operator== | ( | const Callback< R(A0, A1, A2, A3)> & | l, |
const Callback< R(A0, A1, A2, A3)> & | r | ||
) | [friend, inherited] |
Test for equality.
Definition at line 3497 of file Callback.h.
bool operator== | ( | const Callback< R(A0, A1, A2, A3, A4)> & | l, |
const Callback< R(A0, A1, A2, A3, A4)> & | r | ||
) | [friend, inherited] |
Test for equality.
Definition at line 4203 of file Callback.h.
bool operator== | ( | const Callback< R(A0)> & | l, |
const Callback< R(A0)> & | r | ||
) | [friend, inherited] |
Test for equality.
Definition at line 1379 of file Callback.h.
bool operator== | ( | const Callback< R()> & | l, |
const Callback< R()> & | r | ||
) | [friend, inherited] |
Test for equality.
Definition at line 673 of file Callback.h.
bool operator== | ( | const Callback< R(A0, A1)> & | l, |
const Callback< R(A0, A1)> & | r | ||
) | [friend, inherited] |
Test for equality.
Definition at line 2085 of file Callback.h.
Generated on Wed Jul 13 2022 02:23:49 by 1.7.2