Samsung Internal API reference  2.0
Teesl_NFC

Typedefs

typedef struct TEES_NFCHandlerTEES_NFCHandler
 

Functions

TEE_Result TEES_NFCInit (TEES_NFCHandler *handler)
 Initialize NFC device and set transfer parameters to handler. More...
 
void TEES_NFCExit (TEES_NFCHandler handler)
 Terminate connection to NFC device. More...
 
TEE_Result TEES_NFCWrite (TEES_NFCHandler handler, void *tx_buf, size_t len)
 Write data buffer tx to initialized NFC device. More...
 
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. More...
 
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. More...
 
TEE_Result TEES_NFCSetMode (TEES_NFCHandler handler, unsigned long mode)
 Set NFC device mode. More...
 
TEE_Result TEES_NFCWakeUp (TEES_NFCHandler handler)
 Send wake up command to initialized NFC device. More...
 
TEE_Result TEES_NFCSleep (TEES_NFCHandler handler)
 Send sleep command to initialized NFC device. More...
 

Detailed Description

Typedef Documentation

#include <tee_nfc.h>

Handler for NFC device.

Function Documentation

void TEES_NFCExit ( TEES_NFCHandler  handler)

#include <tee_nfc.h>

Terminate connection to NFC device.

Parameters
[in]handlerinitialized parameters.
TEE_Result TEES_NFCInit ( TEES_NFCHandler handler)

#include <tee_nfc.h>

Initialize NFC device and set transfer parameters to handler.

Parameters
[out]handlerPointer to structure which contains set up parameters.
Return values
TEE_SUCCESSin case of success.
TEE_ERROR_xxxin case of errors.
TEE_Result TEES_NFCRead ( TEES_NFCHandler  handler,
char *  rx_buf,
size_t  rx_buf_len,
size_t *  rsp_len 
)

#include <tee_nfc.h>

Read data buffer rx from initialized NFC device.

Parameters
[in]handlerinitialized parameters.
[out]rx_bufis pointer to buffer to receive.
[in]rx_buf_lenis length of storage buffer for receiving.
[out]rsp_lenis pointer to store length of response data.
Return values
TEE_SUCCESSin case of success.
TEE_ERROR_xxxin case of errors.
TEE_Result TEES_NFCReadWait ( TEES_NFCHandler  handler,
char *  rx_buf,
size_t  rx_buf_len,
size_t *  rsp_len,
int  ms_timeout 
)

#include <tee_nfc.h>

Read data buffer rx from initialized NFC device.

Parameters
[in]handlerinitialized parameters.
[out]rx_bufis pointer to buffer to receive.
[in]rx_buf_lenis length of storage buffer for receiving.
[out]rsp_lenis pointer to store length of response data.
[in]ms_timeouttime in millisecond during which data from nfc is expected.
Return values
TEE_SUCCESSin case of success.
TEE_ERROR_xxxin case of errors.
TEE_Result TEES_NFCSetMode ( TEES_NFCHandler  handler,
unsigned long  mode 
)

#include <tee_nfc.h>

Set NFC device mode.

Parameters
[in]handlerinitialized parameters.
[in]modeto set on NFC.
Return values
TEE_SUCCESSin case of success.
TEE_ERROR_xxxin case of errors.
TEE_Result TEES_NFCSleep ( TEES_NFCHandler  handler)

#include <tee_nfc.h>

Send sleep command to initialized NFC device.

Parameters
[in]handlerinitialized parameters.
Return values
TEE_SUCCESSin case of success.
TEE_ERROR_xxxin case of errors.
TEE_Result TEES_NFCWakeUp ( TEES_NFCHandler  handler)

#include <tee_nfc.h>

Send wake up command to initialized NFC device.

Parameters
[in]handlerinitialized parameters.
Return values
TEE_SUCCESSin case of success.
TEE_ERROR_xxxin case of errors.
TEE_Result TEES_NFCWrite ( TEES_NFCHandler  handler,
void *  tx_buf,
size_t  len 
)

#include <tee_nfc.h>

Write data buffer tx to initialized NFC device.

Parameters
[in]handlerinitialized parameters.
[in]tx_bufis pointer to buffer to transfer.
[in]lenof buffer.
Return values
TEE_SUCCESSin case of success.
TEE_ERROR_xxxin case of errors.