| Samsung Internal API reference 2.0

- Main Page
- Related Pages
- Modules
- Data Structures
- Files

- File List
- Globals

tee_nfc.h
Go to the documentation of this file.
1
9 #pragma once
10
11 #include <stdint.h>
12 #include <tee_internal_api.h>
13 #include <driver/nfc/nfc.h>
14
18 typedef struct TEES_NFCHandler *TEES_NFCHandler;
19
26 DSO_EXPORT TEE_Result TEES_NFCInit(TEES_NFCHandler *handler);
27
32 DSO_EXPORT void TEES_NFCExit(TEES_NFCHandler handler);
33
42 DSO_EXPORT TEE_Result TEES_NFCWrite(TEES_NFCHandler handler, void *tx_buf, size_t len);
43
53 DSO_EXPORT TEE_Result TEES_NFCRead(TEES_NFCHandler handler, char *rx_buf,
54 size_t rx_buf_len, size_t *rsp_len);
55
66 DSO_EXPORT TEE_Result TEES_NFCReadWait(TEES_NFCHandler handler, char *rx_buf,
67 size_t rx_buf_len, size_t *rsp_len, int ms_timeout);
68
76 DSO_EXPORT TEE_Result TEES_NFCSetMode(TEES_NFCHandler handler, unsigned long mode);
77
84 DSO_EXPORT TEE_Result TEES_NFCWakeUp(TEES_NFCHandler handler);
85
92 DSO_EXPORT TEE_Result TEES_NFCSleep(TEES_NFCHandler handler);
93
TEES_NFCWakeUp
TEE_Result TEES_NFCWakeUp(TEES_NFCHandler handler)
Send wake up command to initialized NFC device.
TEES_NFCHandler
struct TEES_NFCHandler * TEES_NFCHandler
Definition: tee_nfc.h:18
TEES_NFCWrite
TEE_Result TEES_NFCWrite(TEES_NFCHandler handler, void *tx_buf, size_t len)
Write data buffer tx to initialized NFC device.
TEES_NFCRead
TEE_Result TEES_NFCRead(TEES_NFCHandler handler, char *rx_buf, size_t rx_buf_len, size_t *rsp_len)
Read data buffer rx from initialized NFC device.
TEES_NFCExit
void TEES_NFCExit(TEES_NFCHandler handler)
Terminate connection to NFC device.
TEES_NFCSetMode
TEE_Result TEES_NFCSetMode(TEES_NFCHandler handler, unsigned long mode)
Set NFC device mode.
TEES_NFCReadWait
TEE_Result TEES_NFCReadWait(TEES_NFCHandler handler, char *rx_buf, size_t rx_buf_len, size_t *rsp_len, int ms_timeout)
Read data buffer rx from initialized NFC device.
TEES_NFCInit
TEE_Result TEES_NFCInit(TEES_NFCHandler *handler)
Initialize NFC device and set transfer parameters to handler.
TEES_NFCSleep
TEE_Result TEES_NFCSleep(TEES_NFCHandler handler)
Send sleep command to initialized NFC device.