AT-NFC 2.1 (win) AT-NFC kernel set

Data Structures | Macros | Typedefs | Functions
hal_init.h File Reference
`#include <emv_platform_set_align.h>`
`#include <emv_platform_restore_align.h>`

Go to the source code of this file.

## Data Structures
struct | tag_HAL_NOTIFY_DATA_AID
| KER_HAL_NOTIFY_SELECTED_AID related data struct More...

## Macros
#define | KER_HAL_INIT(ConfigID, ConfigIDLen, KernelBinary, KernelBinaryLen) hal_init(KER_CTX_INIT ConfigID, ConfigIDLen, KernelBinary, KernelBinaryLen)
#define | KER_HAL_DEINIT() hal_deinit(KER_CTX_SINGLE)
#define | KER_HAL_START_TRAN() hal_start_tran(KER_CTX_SINGLE)
#define | KER_HAL_END_TRAN() hal_end_tran(KER_CTX_SINGLE)
#define | KER_HAL_CALLBACK_HANDLE 0x00
#define | KER_HAL_CALLBACK_EMVL1_RESET_CARD 0x10
#define | KER_HAL_CALLBACK_EMVL1_EXCH_APDU 0x11
#define | KER_HAL_CALLBACK_EMVL1_IFD_SERIAL 0x12
#define | KER_HAL_CALLBACK_CV_CHECK_CUST_CVM_CONDITION 0x20
#define | KER_HAL_CALLBACK_CV_CHECK_CUST_CVM 0x21
#define | KER_HAL_NOTIFY_SELECTED_AID 0x01
#define | KER_HAL_NOTIFY_SELECTED_KERNEL_ID 0x02

## Typedefs
typedef struct tag_HAL_NOTIFY_DATA_AID | HAL_NOTIFY_DATA_AID
| KER_HAL_NOTIFY_SELECTED_AID related data struct

## Functions
KER_BOOL | hal_init (KER_CTX_INIT_PARAM const KER_VOID *pConfigID, KER_INT16U usConfigIDLen, const KER_CHAR *pchKernelModuleList, KER_INT16U usKernelModuleListLen)
| Performs HAL initialization. More...
KER_BOOL | hal_deinit (KER_CTX_SINGLE_PARAM)
| Performs HAL de-initialization. More...
KER_BOOL | hal_start_tran (KER_CTX_SINGLE_PARAM)
| Informs HAL about transaction start (to open new log, create new STAN, etc...) More...
KER_BOOL | hal_end_tran (KER_CTX_SINGLE_PARAM)
| Informs HAL about transaction end (to close curr log, etc...) More...
KER_BOOL | hal_calc_checksum (KER_CTX_PARAM KER_BYTE btType, KER_BYTE *pbtCheckSum, KER_INT16U *pusCheckSumLen, KER_INT16U usMaxSize)
| Pass checksums to the kernel. More...
KER_BOOL | hal_calc_checksum_ex (KER_CTX_PARAM KER_BYTE btType, const KER_CHAR *pchKernelModuleList, KER_INT16U usKernelModuleListLen, KER_BYTE *pbtCheckSum, KER_INT16U *pusCheckSumLen, KER_INT16U usMaxSize)
| Pass checksums to the kernel. More...
KER_BOOL | hal_register_callback (KER_CTX_PARAM KER_INT16U usCallbackType, KER_VOID *pCallback)
| Register callback to be used by HAL. At the moment use it only for backward compatibility to provide L1 interface as callback. More...
KER_BOOL | hal_notify (KER_CTX_PARAM KER_INT16U usNotifyType, const KER_VOID *pNotifyData, KER_INT16U usNotifyDataLen)
| Notifies HAL about some specific event. More...
KER_BOOL | hal_online_check (KER_CTX_SINGLE_PARAM)
| Checks HAL for unable to go online condition (for AmEx C-4). More...

## Detailed Description

HAL initialization interface definition