/* * Copyright (C) 2010 NXP Semiconductors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ /* * \file phOsalNfc.h * \brief OSAL Implementation. * * Project: NFC-FRI 1.1 * $Date: Fri Jun 26 14:41:31 2009 $ * $Author: ing04880 $ * $Revision: 1.21 $ * $Aliases: NFC_FRI1.1_WK926_R28_1,NFC_FRI1.1_WK928_R29_1,NFC_FRI1.1_WK930_R30_1,NFC_FRI1.1_WK934_PREP_1,NFC_FRI1.1_WK934_R31_1,NFC_FRI1.1_WK941_PREP1,NFC_FRI1.1_WK941_PREP2,NFC_FRI1.1_WK941_1,NFC_FRI1.1_WK943_R32_1,NFC_FRI1.1_WK949_PREP1,NFC_FRI1.1_WK943_R32_10,NFC_FRI1.1_WK943_R32_13,NFC_FRI1.1_WK943_R32_14,NFC_FRI1.1_WK1007_R33_1,NFC_FRI1.1_WK1007_R33_4,NFC_FRI1.1_WK1017_PREP1,NFC_FRI1.1_WK1017_R34_1,NFC_FRI1.1_WK1017_R34_2,NFC_FRI1.1_WK1023_R35_1 $ * */ #ifndef PHOSALNFC_H #define PHOSALNFC_H /** \defgroup grp_osal_nfc OSAL Component * *\note: API listed here encompasses Operating System Abstraction Layer interfaces required to be mapped to underlying OS platforms. * */ #include #ifdef PH_NFC_CUSTOMINTEGRATION #include #else #include /**< OSAL Message Type */ #ifdef WIN32 //#define PH_OSALNFC_MESSAGE_BASE (WM_USER+0x3FF) #define PH_OSALNFC_MESSAGE_BASE PH_LIBNFC_MESSAGE_BASE #endif /*! * \ingroup grp_osal_nfc * * OSAL Message structure contains message specific details like * message type, message specific data block details, etc. */ //typedef struct phOsalNfc_Message //{ // uint32_t eMsgType;/**< Type of the message to be posted*/ // void * pMsgData;/**< Pointer to message specific data block in case any*/ // uint16_t Size;/**< Size of the datablock*/ //} phOsalNfc_Message_t,*pphOsalNfc_Message_t; typedef phLibNfc_Message_t phOsalNfc_Message_t; typedef pphLibNfc_Message_t pphOsalNfc_Message_t; /*! * \ingroup grp_osal_nfc * * Enum definition contains supported exception types */ typedef enum { phOsalNfc_e_NoMemory, /**