|
Tizen HAL API
1.0
|
The Nfc provides functions to enable and disable the NFC interface.
#include <hal-nfc.h>
The Nfc provides to get/put backend and enable/disable Nfc interface.
For more information on the Nfc features and the macros, see HAL Nfc programming guides and tutorials.
Typedefs | |
| typedef enum _net_nfc_message_service_e | net_nfc_message_service_e |
| Enumeration for different types of NFC service messages. | |
| typedef enum _client_state_e | net_nfc_client_state_e |
| Enumeration for different states of NFC clients. | |
| typedef enum _net_nfc_launch_popup_check_e | net_nfc_launch_popup_check_e |
| Enumeration for different types of launch popup checks. | |
| typedef enum _net_nfc_launch_popup_state_e | net_nfc_launch_popup_state_e |
| Enumeration for different states of launch popup selection. | |
| typedef enum _net_nfc_privilege_e | net_nfc_privilege_e |
| Enumeration for different types of NFC privileges. | |
| typedef enum _net_nfc_discovery_mode_e | net_nfc_discovery_mode_e |
| Enumeration for different types of discovery modes. | |
| typedef enum _net_nfc_secure_element_type_e | net_nfc_secure_element_type_e |
| Enumeration for different types of secure element (SE) types. | |
| typedef enum _net_nfc_secure_element_state_e | net_nfc_secure_element_state_e |
| Enumeration for different states of secure element (SE). | |
| typedef enum _net_nfc_secure_element_mode_e | net_nfc_secure_element_mode_e |
| Enumeration for different modes of secure element (SE). | |
| typedef enum _net_nfc_connection_type_e | net_nfc_connection_type_e |
| Enumeration for different types of NFC connection types. | |
| typedef enum _llcp_event_e | net_nfc_llcp_event_e |
| Enumeration for different types of LLCP events. | |
| typedef struct _net_nfc_data_s * | net_nfc_data_h |
| Handle for data structure. | |
| typedef struct _net_nfc_ndef_record_s * | net_nfc_ndef_record_h |
| Handle for NDEF record structure. | |
| typedef struct _net_nfc_ndef_message_s * | net_nfc_ndef_message_h |
| Handle for NDEF message structure. | |
| typedef struct _net_nfc_target_info_s * | net_nfc_target_info_h |
| Handle for NFC target information structure. | |
| typedef struct _net_nfc_llcp_config_info_s * | net_nfc_llcp_config_info_h |
| Handle for LLCP configuration information structure. | |
| typedef struct _net_nfc_llcp_socket_option_s * | net_nfc_llcp_socket_option_h |
| Handle for LLCP socket option structure. | |
| typedef struct _net_nfc_target_handle_s * | net_nfc_target_handle_h |
| Handle for NFC target handle structure. | |
| typedef struct _net_nfc_connection_handover_info_s * | net_nfc_connection_handover_info_h |
| Handle for connection handover information structure. | |
| typedef uint8_t | net_nfc_sap_t |
| Typedef for Service Access Point (SAP) type. | |
| typedef uint32_t | net_nfc_llcp_socket_t |
| Typedef for LLCP socket type. | |
| typedef void(* | net_nfc_llcp_socket_cb )(net_nfc_llcp_message_e message, int result, void *data, void *user_data, void *trans_data) |
| Callback function for LLCP socket events. | |
| typedef void(* | net_nfc_target_detection_listener_cb )(void *data, void *user_param) |
| Callback function for target detection events. | |
| typedef void(* | net_nfc_se_transaction_listener_cb )(void *data, void *user_param) |
| Callback function for secure element (SE) transaction events. | |
| typedef void(* | net_nfc_llcp_event_listener_cb )(void *data, void *user_param) |
| Callback function for LLCP event events. | |
| typedef void(* | net_nfc_hce_apdu_listener_cb )(void *data, void *user_param) |
| Callback function for HCE APDU events. | |
| typedef struct _net_nfc_data_t | net_nfc_data_s |
| Structure for NFC data containing a buffer and its length. | |
| typedef struct _net_nfc_internal_data_t | net_nfc_internal_data_s |
| Structure for NFC internal data containing a buffer and its length. | |
| typedef struct _net_nfc_target_handle_s | net_nfc_target_handle_s |
| Structure for NFC target handle containing connection information. | |
| typedef struct _net_nfc_current_target_info_s | net_nfc_current_target_info_s |
| Structure for current NFC target information containing handle and other details. | |
| typedef struct _net_nfc_llcp_config_info_s | net_nfc_llcp_config_info_s |
| Structure for LLCP configuration information containing various parameters. | |
| typedef struct _net_nfc_llcp_socket_option_s | net_nfc_llcp_socket_option_s |
| Structure for LLCP socket option containing various parameters. | |
| typedef struct _net_nfc_llcp_internal_socket_s | net_nfc_llcp_internal_socket_s |
| Structure for internal LLCP socket containing various parameters. | |
| typedef struct _net_nfc_ndef_record_s | net_nfc_ndef_record_s |
| Structure for NDEF record containing various fields. | |
| typedef struct _net_nfc_ndef_message_s | net_nfc_ndef_message_s |
| Structure for NDEF message containing records. | |
| typedef struct _net_nfc_tag_info_s | net_nfc_tag_info_s |
| Structure for NFC tag information containing key-value pairs. | |
| typedef struct _net_nfc_target_info_s | net_nfc_target_info_s |
| Structure for NFC target information containing various details. | |
| typedef struct _net_nfc_se_event_info_s | net_nfc_se_event_info_s |
| Structure for secure element event information containing AID and parameter. | |
| typedef struct _net_nfc_transceive_info_s | net_nfc_transceive_info_s |
| Structure for transceive information containing device type and data. | |
| typedef struct _net_nfc_connection_handover_info_s | net_nfc_connection_handover_info_s |
| Structure for connection handover information containing type and data. | |
| typedef struct _net_nfc_request_msg_t | net_nfc_request_msg_t |
| Structure for NFC request message containing various parameters. | |
| typedef struct _net_nfc_request_target_detected_t | net_nfc_request_target_detected_t |
| Structure for NFC request target detected containing various parameters. | |
| typedef struct _net_nfc_request_se_event_t | net_nfc_request_se_event_t |
| Structure for NFC request secure element event containing various parameters. | |
| typedef struct _net_nfc_request_llcp_msg_t | net_nfc_request_llcp_msg_t |
| Structure for NFC request LLCP message containing various parameters. | |
| typedef struct _net_nfc_request_hce_apdu_t | net_nfc_request_hce_apdu_t |
| Structure for NFC request HCE APDU containing various parameters. | |
| typedef struct _net_nfc_request_listen_socket_t | net_nfc_request_listen_socket_t |
| Structure for NFC request listen socket containing various parameters. | |
| typedef struct _net_nfc_request_receive_socket_t | net_nfc_request_receive_socket_t |
| Structure for NFC request receive socket containing various parameters. | |
| typedef struct _net_nfc_request_receive_from_socket_t | net_nfc_request_receive_from_socket_t |
| Structure for NFC request receive from socket containing various parameters. | |
| typedef struct _net_nfc_stack_information_s | net_nfc_stack_information_s |
| Structure for NFC stack information containing various parameters. | |
| typedef struct _secure_element_info_s | net_nfc_secure_element_info_s |
| Structure for secure element information containing various parameters. | |
| typedef struct _hal_backend_nfc_funcs | hal_backend_nfc_funcs |
| Structure for nfc functions. | |
| struct _net_nfc_data_t |
Structure for NFC data containing a buffer and its length.
This structure defines an NFC data structure containing a buffer and its length.
Data Fields | |
| uint8_t * | buffer |
| uint32_t | length |
| uint8_t* _net_nfc_data_t::buffer |
Buffer array.
| uint32_t _net_nfc_data_t::length |
Length of the buffer.
| struct _net_nfc_internal_data_t |
Structure for NFC internal data containing a buffer and its length.
This structure defines an NFC data structure containing a buffer and its length.
Data Fields | |
| uint32_t | length |
| uint8_t | buffer [0] |
| uint8_t _net_nfc_internal_data_t::buffer[0] |
Buffer array.
| uint32_t _net_nfc_internal_data_t::length |
Length of the buffer.
| struct _net_nfc_target_handle_s |
Structure for NFC target handle containing connection information.
This structure defines an NFC target handle structure containing connection information.
Data Fields | |
| uint32_t | connection_id |
| net_nfc_connection_type_e | connection_type |
| net_nfc_target_type_e | target_type |
| net_nfc_llcp_app_protocol_e | app_type |
Application protocol type.
Connection ID.
Connection type.
| struct _net_nfc_current_target_info_s |
Structure for current NFC target information containing handle and other details.
This structure defines a current NFC target information structure containing handle and other details.
Data Fields | |
| net_nfc_target_handle_s * | handle |
| uint32_t | devType |
| int | number_of_keys |
| net_nfc_data_s | target_info_values |
Device type.
NFC target handle.
Number of keys.
Target information values.
| struct _net_nfc_llcp_config_info_s |
Structure for LLCP configuration information containing various parameters.
This structure defines an LLCP configuration information structure containing various parameters.
Data Fields | |
| uint16_t | miu |
| uint16_t | wks |
| uint8_t | lto |
| uint8_t | option |
| uint8_t _net_nfc_llcp_config_info_s::lto |
Link Time Out.
| uint16_t _net_nfc_llcp_config_info_s::miu |
Maximum Information Unit.
Option.
| uint16_t _net_nfc_llcp_config_info_s::wks |
Well-Known Services.
| struct _net_nfc_llcp_socket_option_s |
Structure for LLCP socket option containing various parameters.
This structure defines an LLCP socket option structure containing various parameters.
Data Fields | |
| uint16_t | miu |
| uint8_t | rw |
| net_nfc_socket_type_e | type |
| uint16_t _net_nfc_llcp_socket_option_s::miu |
Maximum Information Unit.
Receive Window Size.
Socket type.
| struct _net_nfc_llcp_internal_socket_s |
Structure for internal LLCP socket containing various parameters.
This structure defines an internal LLCP socket structure containing various parameters.
Data Fields | |
| uint16_t | miu |
| uint8_t | rw |
| net_nfc_socket_type_e | type |
| net_nfc_llcp_socket_t | oal_socket |
| net_nfc_llcp_socket_t | client_socket |
| net_nfc_sap_t | sap |
| uint8_t * | service_name |
| net_nfc_target_handle_s * | device_id |
| net_nfc_llcp_socket_cb | cb |
| bool | close_requested |
| void * | register_param |
Callback function.
Close requested flag.
| uint16_t _net_nfc_llcp_internal_socket_s::miu |
Maximum Information Unit.
Register parameter.
Receive Window Size.
Service Access Point.
Service name.
| struct _net_nfc_ndef_record_s |
Structure for NDEF record containing various fields.
This structure defines an NDEF record structure containing various fields.
Data Fields | |
| uint8_t | MB:1 |
| uint8_t | ME:1 |
| uint8_t | CF:1 |
| uint8_t | SR:1 |
| uint8_t | IL:1 |
| uint8_t | TNF:3 |
| net_nfc_data_s | type_s |
| net_nfc_data_s | id_s |
| net_nfc_data_s | payload_s |
| struct _net_nfc_ndef_record_s * | next |
| uint8_t _net_nfc_ndef_record_s::CF |
Chunk Flag bit.
ID field.
| uint8_t _net_nfc_ndef_record_s::IL |
ID Length Present bit.
| uint8_t _net_nfc_ndef_record_s::MB |
Message Begin bit.
| uint8_t _net_nfc_ndef_record_s::ME |
Message End bit.
Pointer to next record.
Payload field.
| uint8_t _net_nfc_ndef_record_s::SR |
Short Record bit.
| uint8_t _net_nfc_ndef_record_s::TNF |
Type Name Format bits.
Type field.
| struct _net_nfc_ndef_message_s |
Structure for NDEF message containing records.
This structure defines an NDEF message structure containing records.
Data Fields | |
| uint32_t | recordCount |
| net_nfc_ndef_record_s * | records |
| uint32_t _net_nfc_ndef_message_s::recordCount |
Number of records.
Pointer to records.
| struct _net_nfc_tag_info_s |
Structure for NFC tag information containing key-value pairs.
This structure defines an NFC tag information structure containing key-value pairs.
Data Fields | |
| char * | key |
| net_nfc_data_h | value |
| char* _net_nfc_tag_info_s::key |
Key.
| struct _net_nfc_target_info_s |
Structure for NFC target information containing various details.
This structure defines an NFC target information structure containing various details.
Data Fields | |
| net_nfc_target_handle_s * | handle |
| net_nfc_target_type_e | devType |
| uint8_t | is_ndef_supported |
| uint8_t | ndef_card_state |
| uint32_t | max_data_size |
| uint32_t | actual_data_size |
| int | number_of_keys |
| net_nfc_tag_info_s * | tag_info_list |
| char ** | keylist |
| net_nfc_data_s | raw_data |
Actual data size.
Device type.
NFC target handle.
NDEF support flag.
Key list.
Maximum data size.
NDEF card state.
Number of keys.
Tag information list.
| struct _net_nfc_se_event_info_s |
Structure for secure element event information containing AID and parameter.
This structure defines a secure element event information structure containing AID and parameter.
Data Fields | |
| net_nfc_data_s | aid |
| net_nfc_data_s | param |
Parameter.
| struct _net_nfc_transceive_info_s |
Structure for transceive information containing device type and data.
This structure defines a transceive information structure containing device type and data.
Data Fields | |
| uint32_t | dev_type |
| net_nfc_data_s | trans_data |
| uint32_t _net_nfc_transceive_info_s::dev_type |
Device type.
Transceive data.
| struct _net_nfc_connection_handover_info_s |
Structure for connection handover information containing type and data.
This structure defines a connection handover information structure containing type and data.
Data Fields | |
| net_nfc_conn_handover_carrier_type_e | type |
| net_nfc_data_s | data |
Connection handover carrier type.
| struct _net_nfc_request_msg_t |
Structure for NFC request message containing various parameters.
This structure defines an NFC request message structure containing various parameters.
Data Fields | |
| uint32_t | length |
| uint32_t | request_type |
| uint32_t | client_fd |
| uint32_t | flags |
| void * | user_param |
| uint32_t _net_nfc_request_msg_t::client_fd |
Client file descriptor.
| uint32_t _net_nfc_request_msg_t::flags |
Flags.
| uint32_t _net_nfc_request_msg_t::length |
Length of the message.
| uint32_t _net_nfc_request_msg_t::request_type |
Request type.
User parameter.
| struct _net_nfc_request_target_detected_t |
Structure for NFC request target detected containing various parameters.
This structure defines an NFC request target detected structure containing various parameters.
Data Fields | |
| uint32_t | length |
| uint32_t | request_type |
| uint32_t | client_fd |
| uint32_t | flags |
| void * | user_param |
| net_nfc_target_handle_s * | handle |
| uint32_t | dev_type |
| int | number_of_keys |
| net_nfc_internal_data_s | target_info_values |
Client file descriptor.
Device type.
Flags.
NFC target handle.
Length of the message.
Number of keys.
Request type.
Target information values.
User parameter.
| struct _net_nfc_request_se_event_t |
Structure for NFC request secure element event containing various parameters.
This structure defines an NFC request secure element event structure containing various parameters.
Data Fields | |
| uint32_t | length |
| uint32_t | request_type |
| uint32_t | client_fd |
| uint32_t | flags |
| void * | user_param |
| net_nfc_data_s | aid |
| net_nfc_data_s | param |
Client file descriptor.
| uint32_t _net_nfc_request_se_event_t::flags |
Flags.
| uint32_t _net_nfc_request_se_event_t::length |
Length of the message.
Parameter.
Request type.
User parameter.
| struct _net_nfc_request_llcp_msg_t |
Structure for NFC request LLCP message containing various parameters.
This structure defines an NFC request LLCP message structure containing various parameters.
Data Fields | |
| uint32_t | length |
| uint32_t | request_type |
| uint32_t | client_fd |
| uint32_t | flags |
| void * | user_param |
| uint32_t | result |
| net_nfc_llcp_socket_t | llcp_socket |
Client file descriptor.
| uint32_t _net_nfc_request_llcp_msg_t::flags |
Flags.
| uint32_t _net_nfc_request_llcp_msg_t::length |
Length of the message.
Request type.
| uint32_t _net_nfc_request_llcp_msg_t::result |
Result.
User parameter.
| struct _net_nfc_request_hce_apdu_t |
Structure for NFC request HCE APDU containing various parameters.
This structure defines an NFC request HCE APDU structure containing various parameters.
Data Fields | |
| uint32_t | length |
| uint32_t | request_type |
| uint32_t | client_fd |
| uint32_t | flags |
| void * | user_param |
| net_nfc_data_s | apdu |
Client file descriptor.
| uint32_t _net_nfc_request_hce_apdu_t::flags |
Flags.
| uint32_t _net_nfc_request_hce_apdu_t::length |
Length of the message.
Request type.
User parameter.
| struct _net_nfc_request_listen_socket_t |
Structure for NFC request listen socket containing various parameters.
This structure defines an NFC request listen socket structure containing various parameters.
Data Fields | |
| uint32_t | length |
| uint32_t | request_type |
| uint32_t | client_fd |
| uint32_t | flags |
| void * | user_param |
| uint32_t | result |
| net_nfc_target_handle_s * | handle |
| net_nfc_llcp_socket_t | client_socket |
| uint16_t | miu |
| uint8_t | rw |
| net_nfc_socket_type_e | type |
| net_nfc_llcp_socket_t | oal_socket |
| net_nfc_sap_t | sap |
| void * | trans_param |
| net_nfc_internal_data_s | service_name |
Client file descriptor.
Flags.
NFC target handle.
Length of the message.
Maximum Information Unit.
Request type.
Result.
Receive Window Size.
Service Access Point.
Transaction parameter.
User parameter.
| struct _net_nfc_request_receive_socket_t |
Structure for NFC request receive socket containing various parameters.
This structure defines an NFC request receive socket structure containing various parameters.
Data Fields | |
| uint32_t | length |
| uint32_t | request_type |
| uint32_t | client_fd |
| uint32_t | flags |
| void * | user_param |
| uint32_t | result |
| net_nfc_target_handle_s * | handle |
| net_nfc_llcp_socket_t | client_socket |
| net_nfc_llcp_socket_t | oal_socket |
| size_t | req_length |
| void * | trans_param |
| net_nfc_internal_data_s | data |
Client file descriptor.
Flags.
NFC target handle.
Length of the message.
Request length.
Request type.
Result.
Transaction parameter.
User parameter.
| struct _net_nfc_request_receive_from_socket_t |
Structure for NFC request receive from socket containing various parameters.
This structure defines an NFC request receive from socket structure containing various parameters.
Data Fields | |
| uint32_t | length |
| uint32_t | request_type |
| uint32_t | client_fd |
| uint32_t | flags |
| void * | user_param |
| uint32_t | result |
| net_nfc_target_handle_s * | handle |
| net_nfc_llcp_socket_t | client_socket |
| net_nfc_llcp_socket_t | oal_socket |
| size_t | req_length |
| net_nfc_sap_t | sap |
| void * | trans_param |
| net_nfc_internal_data_s | data |
Client file descriptor.
Flags.
NFC target handle.
Length of the message.
Request length.
Request type.
Result.
Service Access Point.
Transaction parameter.
User parameter.
| struct _net_nfc_stack_information_s |
Structure for NFC stack information containing various parameters.
This structure defines an NFC stack information structure containing various parameters.
Data Fields | |
| uint32_t | net_nfc_supported_target_type |
| uint32_t | net_nfc_fw_version |
Firmware version.
Supported target type.
| struct _secure_element_info_s |
Structure for secure element information containing various parameters.
This structure defines a secure element information structure containing various parameters.
Data Fields | |
| net_nfc_target_handle_s * | handle |
| net_nfc_secure_element_type_e | secure_element_type |
| net_nfc_secure_element_state_e | secure_element_state |
NFC target handle.
Secure element state.
Secure element type.
| struct _hal_backend_nfc_funcs |
Structure for nfc functions.
| int(* _hal_backend_nfc_funcs::check_firmware_version)(void) |
Updates the firmware of the NFC module
| int(* _hal_backend_nfc_funcs::check_ndef)(net_nfc_target_handle_s *handle, uint8_t *ndef_card_state, int *max_data_size, int *real_data_size) |
Reads an NDEF message
| int(* _hal_backend_nfc_funcs::check_target_presence)(net_nfc_target_handle_s *handle) |
Connects to a target
| int(* _hal_backend_nfc_funcs::configure_discovery)(net_nfc_discovery_mode_e mode, net_nfc_event_filter_e config) |
Checks whether a target is present
| int(* _hal_backend_nfc_funcs::connect)(net_nfc_target_handle_s *handle) |
Disconnects from a target
| int(* _hal_backend_nfc_funcs::disconnect)(net_nfc_target_handle_s *handle) |
Checks whether an NDEF message is supported
| int(* _hal_backend_nfc_funcs::exception_handler)(void) |
Checks whether the NFC module is ready
| int(* _hal_backend_nfc_funcs::format_ndef)(net_nfc_target_handle_s *handle, net_nfc_data_s *secure_key) |
Transceives data with a target
| int(* _hal_backend_nfc_funcs::get_firmware_version)(net_nfc_data_s **data) |
Checks whether the NFC module is supported
| int(* _hal_backend_nfc_funcs::get_secure_element_list)(net_nfc_secure_element_info_s *list, int *count) |
Sets the mode of a secure element
| int(* _hal_backend_nfc_funcs::get_stack_information)(net_nfc_stack_information_s *stack_info) |
Configures the discovery mode and settings
| int(* _hal_backend_nfc_funcs::hce_response_apdu)(net_nfc_target_handle_s *handle, net_nfc_data_s *response) |
Routes an AID to a secure element
| int(* _hal_backend_nfc_funcs::is_ready)(void) |
Configures LLCP settings
| int(* _hal_backend_nfc_funcs::llcp_accept)(net_nfc_llcp_socket_t socket, void *user_param) |
Connects using a URL
| int(* _hal_backend_nfc_funcs::llcp_activate_llcp)(net_nfc_target_handle_s *handle) |
Creates a socket
| int(* _hal_backend_nfc_funcs::llcp_bind)(net_nfc_llcp_socket_t socket, uint8_t service_access_point) |
Listens on a socket
| int(* _hal_backend_nfc_funcs::llcp_check_llcp)(net_nfc_target_handle_s *handle) |
Activates LLCP
| int(* _hal_backend_nfc_funcs::llcp_config)(net_nfc_llcp_config_info_s *config) |
Checks whether LLCP is supported
| int(* _hal_backend_nfc_funcs::llcp_connect)(net_nfc_target_handle_s *handle, net_nfc_llcp_socket_t socket, uint8_t service_access_point, void *user_param) |
Disconnects from a socket
| int(* _hal_backend_nfc_funcs::llcp_connect_by_url)(net_nfc_target_handle_s *handle, net_nfc_llcp_socket_t socket, uint8_t *service_access_name, void *user_param) |
Connects using a service access point
| int(* _hal_backend_nfc_funcs::llcp_create_socket)(net_nfc_llcp_socket_t *socket, net_nfc_socket_type_e type, uint16_t miu, uint8_t rw, void *user_param) |
Binds a socket
| int(* _hal_backend_nfc_funcs::llcp_disconnect)(net_nfc_target_handle_s *handle, net_nfc_llcp_socket_t socket, void *user_param) |
Closes a socket
| int(* _hal_backend_nfc_funcs::llcp_get_remote_config)(net_nfc_target_handle_s *handle, net_nfc_llcp_config_info_s *config) |
Gets the remote socket information
| int(* _hal_backend_nfc_funcs::llcp_get_remote_socket_info)(net_nfc_target_handle_s *handle, net_nfc_llcp_socket_t socket, net_nfc_llcp_socket_option_s *option) |
Opens a secure element
| int(* _hal_backend_nfc_funcs::llcp_listen)(net_nfc_target_handle_s *handle, uint8_t *service_access_name, net_nfc_llcp_socket_t socket, void *user_param) |
Accepts a connection request
| int(* _hal_backend_nfc_funcs::llcp_recv)(net_nfc_target_handle_s *handle, net_nfc_llcp_socket_t socket, net_nfc_data_s *data, void *user_param) |
Sends data on a socket
| int(* _hal_backend_nfc_funcs::llcp_recv_from)(net_nfc_target_handle_s *handle, net_nfc_llcp_socket_t socket, net_nfc_data_s *data, void *user_param) |
Sends data on a socket
| int(* _hal_backend_nfc_funcs::llcp_reject)(net_nfc_target_handle_s *handle, net_nfc_llcp_socket_t socket) |
Gets the remote LLCP configuration
| int(* _hal_backend_nfc_funcs::llcp_send)(net_nfc_target_handle_s *handle, net_nfc_llcp_socket_t socket, net_nfc_data_s *data, void *user_param) |
Receives data on a socket
| int(* _hal_backend_nfc_funcs::llcp_send_to)(net_nfc_target_handle_s *handle, net_nfc_llcp_socket_t socket, net_nfc_data_s *data, uint8_t service_access_point, void *user_param) |
Rejects a connection request
| int(* _hal_backend_nfc_funcs::llcp_socket_close)(net_nfc_llcp_socket_t socket) |
Receives data on a socket
| int(* _hal_backend_nfc_funcs::make_read_only_ndef)(net_nfc_target_handle_s *handle) |
Formats an NDEF message
| int(* _hal_backend_nfc_funcs::read_ndef)(net_nfc_target_handle_s *handle, net_nfc_data_s **data) |
Writes an NDEF message
| int(* _hal_backend_nfc_funcs::register_listener)(net_nfc_target_detection_listener_cb target_detection_listener, net_nfc_se_transaction_listener_cb se_transaction_listener, net_nfc_llcp_event_listener_cb llcp_event_listener, net_nfc_hce_apdu_listener_cb hce_apdu_listener) |
Unregisters the registered listener
Gets the size of the AID table
Sets the technology mask for listening
| int(* _hal_backend_nfc_funcs::secure_element_close)(net_nfc_target_handle_s *handle) |
Gets the list of secure elements
Sets the default route for different states
| int(* _hal_backend_nfc_funcs::secure_element_get_aid_table_size)(int *table_size) |
Sets a routing entry
| int(* _hal_backend_nfc_funcs::secure_element_get_atr)(net_nfc_target_handle_s *handle, net_nfc_data_s **atr) |
Sends an APDU command to a secure element
| int(* _hal_backend_nfc_funcs::secure_element_open)(net_nfc_secure_element_type_e element_type, net_nfc_target_handle_s **handle) |
Gets the ATR information of a secure element
| int(* _hal_backend_nfc_funcs::secure_element_route_aid)(net_nfc_data_s *aid, net_nfc_se_type_e se_type, int power) |
Unroutes an AID from a secure element
| int(* _hal_backend_nfc_funcs::secure_element_send_apdu)(net_nfc_target_handle_s *handle, net_nfc_data_s *command, net_nfc_data_s **response) |
Closes a secure element
| int(* _hal_backend_nfc_funcs::secure_element_set_default_route)(net_nfc_se_type_e switch_on, net_nfc_se_type_e switch_off, net_nfc_se_type_e battery_off) |
Clears the AID table
| int(* _hal_backend_nfc_funcs::secure_element_set_listen_tech_mask)(net_nfc_se_tech_protocol_type_e screen_state) |
Sets the screen state
| int(* _hal_backend_nfc_funcs::secure_element_set_route_entry)(net_nfc_se_entry_type_e type, net_nfc_se_tech_protocol_type_e value, net_nfc_se_type_e route, int power) |
Clears a routing entry
Commits the routing table
| int(* _hal_backend_nfc_funcs::set_secure_element_mode)(net_nfc_secure_element_type_e element_type, net_nfc_secure_element_mode_e mode) |
Enables test mode
| int(* _hal_backend_nfc_funcs::start)(void) |
< Starts the NFC module Stops the NFC module
| int(* _hal_backend_nfc_funcs::stop)(void) |
Registers listeners for specific events
| int(* _hal_backend_nfc_funcs::support_nfc)(void) |
Checks the firmware version of the NFC module
| int(* _hal_backend_nfc_funcs::test_mode_off)(void) |
Sends a response APDU in HCE mode
| int(* _hal_backend_nfc_funcs::test_mode_on)(void) |
Disables test mode
| int(* _hal_backend_nfc_funcs::transceive)(net_nfc_target_handle_s *handle, net_nfc_transceive_info_s *info, net_nfc_data_s **data) |
Handles exceptions
| int(* _hal_backend_nfc_funcs::unregister_listener)(void) |
Gets the firmware version of the NFC module
| int(* _hal_backend_nfc_funcs::update_firmware)(void) |
Gets the stack information of the NFC module
| int(* _hal_backend_nfc_funcs::write_ndef)(net_nfc_target_handle_s *handle, net_nfc_data_s *data) |
Makes an NDEF message read-only
| typedef struct _hal_backend_nfc_funcs hal_backend_nfc_funcs |
Structure for nfc functions.
| typedef enum _client_state_e net_nfc_client_state_e |
Enumeration for different states of NFC clients.
This enumeration defines different states of NFC clients that can be encountered.
Handle for connection handover information structure.
This typedef defines a handle for a connection handover information structure.
Structure for connection handover information containing type and data.
This structure defines a connection handover information structure containing type and data.
| typedef enum _net_nfc_connection_type_e net_nfc_connection_type_e |
Enumeration for different types of NFC connection types.
This enumeration defines different types of NFC connection types that can be used in NFC communication.
| typedef struct _net_nfc_current_target_info_s net_nfc_current_target_info_s |
Structure for current NFC target information containing handle and other details.
This structure defines a current NFC target information structure containing handle and other details.
| typedef struct _net_nfc_data_s* net_nfc_data_h |
Handle for data structure.
This typedef defines a handle for a data structure.
| typedef struct _net_nfc_data_t net_nfc_data_s |
Structure for NFC data containing a buffer and its length.
This structure defines an NFC data structure containing a buffer and its length.
| typedef enum _net_nfc_discovery_mode_e net_nfc_discovery_mode_e |
Enumeration for different types of discovery modes.
This enumeration defines different types of discovery modes that can be used in NFC communication.
| typedef void(* net_nfc_hce_apdu_listener_cb)(void *data, void *user_param) |
Callback function for HCE APDU events.
This typedef defines a callback function for HCE APDU events.
| [in] | data | The data associated with the event. |
| [in] | user_param | The user parameter passed to the callback function. |
| typedef struct _net_nfc_internal_data_t net_nfc_internal_data_s |
Structure for NFC internal data containing a buffer and its length.
This structure defines an NFC data structure containing a buffer and its length.
Enumeration for different types of launch popup checks.
This enumeration defines different types of launch popup checks that can be used in NFC communication.
Enumeration for different states of launch popup selection.
This enumeration defines different states of launch popup selection that can be encountered.
| typedef struct _net_nfc_llcp_config_info_s* net_nfc_llcp_config_info_h |
Handle for LLCP configuration information structure.
This typedef defines a handle for an LLCP configuration information structure.
| typedef struct _net_nfc_llcp_config_info_s net_nfc_llcp_config_info_s |
Structure for LLCP configuration information containing various parameters.
This structure defines an LLCP configuration information structure containing various parameters.
| typedef enum _llcp_event_e net_nfc_llcp_event_e |
Enumeration for different types of LLCP events.
This enumeration defines different types of LLCP events that can be received.
| typedef void(* net_nfc_llcp_event_listener_cb)(void *data, void *user_param) |
Callback function for LLCP event events.
This typedef defines a callback function for LLCP event events.
| [in] | data | The data associated with the event. |
| [in] | user_param | The user parameter passed to the callback function. |
| typedef struct _net_nfc_llcp_internal_socket_s net_nfc_llcp_internal_socket_s |
Structure for internal LLCP socket containing various parameters.
This structure defines an internal LLCP socket structure containing various parameters.
| typedef void(* net_nfc_llcp_socket_cb)(net_nfc_llcp_message_e message, int result, void *data, void *user_data, void *trans_data) |
Callback function for LLCP socket events.
This typedef defines a callback function for LLCP socket events.
| [in] | message | The type of LLCP message. |
| [in] | result | The result of the operation. |
| [in] | data | The data associated with the message. |
| [in] | user_data | The user data passed to the callback function. |
| [in] | trans_data | The transaction data associated with the message. |
| typedef struct _net_nfc_llcp_socket_option_s* net_nfc_llcp_socket_option_h |
Handle for LLCP socket option structure.
This typedef defines a handle for an LLCP socket option structure.
| typedef struct _net_nfc_llcp_socket_option_s net_nfc_llcp_socket_option_s |
Structure for LLCP socket option containing various parameters.
This structure defines an LLCP socket option structure containing various parameters.
| typedef uint32_t net_nfc_llcp_socket_t |
Typedef for LLCP socket type.
This typedef defines a type for LLCP socket.
| typedef enum _net_nfc_message_service_e net_nfc_message_service_e |
Enumeration for different types of NFC service messages.
This enumeration defines different types of NFC service messages that can be received.
| typedef struct _net_nfc_ndef_message_s* net_nfc_ndef_message_h |
Handle for NDEF message structure.
This typedef defines a handle for an NDEF message structure.
| typedef struct _net_nfc_ndef_message_s net_nfc_ndef_message_s |
Structure for NDEF message containing records.
This structure defines an NDEF message structure containing records.
| typedef struct _net_nfc_ndef_record_s* net_nfc_ndef_record_h |
Handle for NDEF record structure.
This typedef defines a handle for an NDEF record structure.
| typedef struct _net_nfc_ndef_record_s net_nfc_ndef_record_s |
Structure for NDEF record containing various fields.
This structure defines an NDEF record structure containing various fields.
| typedef enum _net_nfc_privilege_e net_nfc_privilege_e |
Enumeration for different types of NFC privileges.
This enumeration defines different types of NFC privileges that can be used in NFC communication.
| typedef struct _net_nfc_request_hce_apdu_t net_nfc_request_hce_apdu_t |
Structure for NFC request HCE APDU containing various parameters.
This structure defines an NFC request HCE APDU structure containing various parameters.
| typedef struct _net_nfc_request_listen_socket_t net_nfc_request_listen_socket_t |
Structure for NFC request listen socket containing various parameters.
This structure defines an NFC request listen socket structure containing various parameters.
| typedef struct _net_nfc_request_llcp_msg_t net_nfc_request_llcp_msg_t |
Structure for NFC request LLCP message containing various parameters.
This structure defines an NFC request LLCP message structure containing various parameters.
| typedef struct _net_nfc_request_msg_t net_nfc_request_msg_t |
Structure for NFC request message containing various parameters.
This structure defines an NFC request message structure containing various parameters.
Structure for NFC request receive from socket containing various parameters.
This structure defines an NFC request receive from socket structure containing various parameters.
Structure for NFC request receive socket containing various parameters.
This structure defines an NFC request receive socket structure containing various parameters.
| typedef struct _net_nfc_request_se_event_t net_nfc_request_se_event_t |
Structure for NFC request secure element event containing various parameters.
This structure defines an NFC request secure element event structure containing various parameters.
Structure for NFC request target detected containing various parameters.
This structure defines an NFC request target detected structure containing various parameters.
| typedef uint8_t net_nfc_sap_t |
Typedef for Service Access Point (SAP) type.
This typedef defines a type for Service Access Point (SAP).
| typedef struct _net_nfc_se_event_info_s net_nfc_se_event_info_s |
Structure for secure element event information containing AID and parameter.
This structure defines a secure element event information structure containing AID and parameter.
| typedef void(* net_nfc_se_transaction_listener_cb)(void *data, void *user_param) |
Callback function for secure element (SE) transaction events.
This typedef defines a callback function for secure element (SE) transaction events.
| [in] | data | The data associated with the event. |
| [in] | user_param | The user parameter passed to the callback function. |
| typedef struct _secure_element_info_s net_nfc_secure_element_info_s |
Structure for secure element information containing various parameters.
This structure defines a secure element information structure containing various parameters.
Enumeration for different modes of secure element (SE).
This enumeration defines different modes of secure element (SE) that can be used in NFC communication.
Enumeration for different states of secure element (SE).
This enumeration defines different states of secure element (SE) that can be encountered.
Enumeration for different types of secure element (SE) types.
This enumeration defines different types of secure element (SE) types that can be used in NFC communication.
| typedef struct _net_nfc_stack_information_s net_nfc_stack_information_s |
Structure for NFC stack information containing various parameters.
This structure defines an NFC stack information structure containing various parameters.
| typedef struct _net_nfc_tag_info_s net_nfc_tag_info_s |
Structure for NFC tag information containing key-value pairs.
This structure defines an NFC tag information structure containing key-value pairs.
| typedef void(* net_nfc_target_detection_listener_cb)(void *data, void *user_param) |
Callback function for target detection events.
This typedef defines a callback function for target detection events.
| [in] | data | The data associated with the event. |
| [in] | user_param | The user parameter passed to the callback function. |
| typedef struct _net_nfc_target_handle_s* net_nfc_target_handle_h |
Handle for NFC target handle structure.
This typedef defines a handle for an NFC target handle structure.
| typedef struct _net_nfc_target_handle_s net_nfc_target_handle_s |
Structure for NFC target handle containing connection information.
This structure defines an NFC target handle structure containing connection information.
| typedef struct _net_nfc_target_info_s* net_nfc_target_info_h |
Handle for NFC target information structure.
This typedef defines a handle for an NFC target information structure.
| typedef struct _net_nfc_target_info_s net_nfc_target_info_s |
Structure for NFC target information containing various details.
This structure defines an NFC target information structure containing various details.
| typedef struct _net_nfc_transceive_info_s net_nfc_transceive_info_s |
Structure for transceive information containing device type and data.
This structure defines a transceive information structure containing device type and data.
| enum _client_state_e |
| enum _llcp_event_e |
Enumeration for different types of LLCP events.
This enumeration defines different types of LLCP events that can be received.
Enumeration for different types of NFC connection types.
This enumeration defines different types of NFC connection types that can be used in NFC communication.
Enumeration for different types of discovery modes.
This enumeration defines different types of discovery modes that can be used in NFC communication.
Enumeration for different types of NFC service messages.
This enumeration defines different types of NFC service messages that can be received.
| enum _net_nfc_privilege_e |
Enumeration for different types of NFC privileges.
This enumeration defines different types of NFC privileges that can be used in NFC communication.
Enumeration for different modes of secure element (SE).
This enumeration defines different modes of secure element (SE) that can be used in NFC communication.
Enumeration for different types of secure element (SE) types.
This enumeration defines different types of secure element (SE) types that can be used in NFC communication.
Enumeration for different types of connection handover carriers.
This enumeration defines different types of connection handover carriers that can be used in NFC communication.
| enum net_nfc_error_e |
Structure for nfc error.
Enumeration for different event filters for NFC events.
This enumeration defines different event filters that can be used to control which NFC events are received.
Enumeration for different types of application protocols supported by LLCP.
This enumeration defines different types of application protocols that can be used in LLCP communication.
Enumeration for different types of LLCP messages.
This enumeration defines different types of LLCP messages that can be received.
| enum net_nfc_message_e |
Enumeration for different types of NFC messages.
This enumeration defines different types of NFC messages that can be received.
Enumeration for different states of NFC NDEF cards.
This enumeration defines different states of NFC NDEF cards that can be encountered.
| enum net_nfc_record_tnf_e |
Enumeration for different types of NFC records.
This enumeration defines different types of NFC records that can be encountered.
| NET_NFC_RECORD_EMPTY |
Empty record type. |
| NET_NFC_RECORD_WELL_KNOWN_TYPE |
Well-known type record. |
| NET_NFC_RECORD_MIME_TYPE |
Media type record (e.g., image/jpeg). |
| NET_NFC_RECORD_URI |
URI record (e.g., http://example.com). |
| NET_NFC_RECORD_EXTERNAL_RTD |
External RTD record. |
| NET_NFC_RECORD_UNKNOWN |
Unknown record type. |
| NET_NFC_RECORD_UNCHANGED |
Unchanged record type. |
Enumeration for different types of URI schemes.
This enumeration defines different types of URI schemes that can be used in NFC communication.
Enumeration for different types of screen state types.
This enumeration defines different types of screen state types that can be used in NFC communication.
Enumeration for different types of SE entry types.
This enumeration defines different types of SE entry types that can be used in NFC communication.
Enumeration for different types of SE technology and protocol types.
This enumeration defines different types of SE technology and protocol types that can be used in NFC communication.
| enum net_nfc_se_type_e |
Enumeration for different types of Secure Element (SE) types.
This enumeration defines different types of Secure Element (SE) types that can be used in NFC communication.
Enumeration for different types of socket types in LLCP.
This enumeration defines different types of socket types that can be used in LLCP communication.
Enumeration for different types of NFC target types.
This enumeration defines different types of NFC targets that can be detected.