General thunking class to allow C-style callbacks to C++ class members - including optional parameters.

Dependents:   cthunk_example

Committer:
meriac
Date:
Thu Aug 21 17:09:11 2014 +0000
Revision:
9:d3b51b06ac54
Added CThunkIRQ class

Who changed what in which revision?

UserRevisionLine numberNew contents of line
meriac 9:d3b51b06ac54 1 /* General C++ Object Thunking classes
meriac 9:d3b51b06ac54 2 *
meriac 9:d3b51b06ac54 3 * - allows direct callbacks to non-static C++ class functions
meriac 9:d3b51b06ac54 4 * - keeps track for the corresponding class instance
meriac 9:d3b51b06ac54 5 * - supports an optional context parameter for the called function
meriac 9:d3b51b06ac54 6 * - ideally suited for class object receiving interrupts (NVIC_SetVector)
meriac 9:d3b51b06ac54 7 *
meriac 9:d3b51b06ac54 8 * Copyright (c) 2014 ARM Limited
meriac 9:d3b51b06ac54 9 *
meriac 9:d3b51b06ac54 10 * Licensed under the Apache License, Version 2.0 (the "License");
meriac 9:d3b51b06ac54 11 * you may not use this file except in compliance with the License.
meriac 9:d3b51b06ac54 12 * You may obtain a copy of the License at
meriac 9:d3b51b06ac54 13 *
meriac 9:d3b51b06ac54 14 * http://www.apache.org/licenses/LICENSE-2.0
meriac 9:d3b51b06ac54 15 *
meriac 9:d3b51b06ac54 16 * Unless required by applicable law or agreed to in writing, software
meriac 9:d3b51b06ac54 17 * distributed under the License is distributed on an "AS IS" BASIS,
meriac 9:d3b51b06ac54 18 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
meriac 9:d3b51b06ac54 19 * See the License for the specific language governing permissions and
meriac 9:d3b51b06ac54 20 * limitations under the License.
meriac 9:d3b51b06ac54 21 */
meriac 9:d3b51b06ac54 22
meriac 9:d3b51b06ac54 23 #ifndef __THUNK_H__
meriac 9:d3b51b06ac54 24 #define __THUNK_H__
meriac 9:d3b51b06ac54 25
meriac 9:d3b51b06ac54 26 #include "CThunk.h"
meriac 9:d3b51b06ac54 27 #include "CThunkIRQ.h"
meriac 9:d3b51b06ac54 28
meriac 9:d3b51b06ac54 29 #endif/*__THUNK_H__*/