Home | History | Annotate | Download | only in src
      1 #ifndef __NFC_OSAL_DEFERRED_CALL_H_
      2 #define __NFC_OSAL_DEFERRED_CALL_H_
      3 
      4 /**
      5  * \ingroup grp_osal_nfc
      6  *\brief Deferred call declaration.
      7  * This type of API is called from ClientApplication ( main thread) to notify
      8  * specific callback.
      9  */
     10 typedef  pphLibNfc_DeferredCallback_t nfc_osal_def_call_t;
     11 
     12 /**
     13  * \ingroup grp_osal_nfc
     14  *\brief Deferred message specific info declaration.
     15  * This type information packed as WPARAM  when \ref PHOSALNFC_MESSAGE_BASE type
     16  *windows message is posted to main thread.
     17  */
     18 typedef phLibNfc_DeferredCall_t nfc_osal_def_call_msg_t;
     19 
     20 /**
     21  * \ingroup grp_osal_nfc
     22  *\brief Deferred call declaration.
     23  * This Deferred call post message of type \ref PH_OSALNFC_TIMER_MSG along with
     24  * timer specific details.ain thread,which is responsible for timer callback notification
     25  * consumes of this message and notifies respctive timer callback.
     26  *\note: This API packs upper timer specific callback notification  information and post
     27  *ref\PHOSALNFC_MESSAGE_BASE to main thread via windows post messaging mechanism.
     28  */
     29 
     30 void nfc_osal_deferred_call(nfc_osal_def_call_t func, void *param);
     31 
     32 #endif