Kenji Arai / mbed-os_TYBLE16

Dependents:   TYBLE16_simple_data_logger TYBLE16_MP3_Air

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers iso7816_app.c Source File

iso7816_app.c

Go to the documentation of this file.
00001 /*
00002  * Copyright (c) 2013-2018, ARM Limited, All Rights Reserved
00003  * SPDX-License-Identifier: Apache-2.0
00004  *
00005  * Licensed under the Apache License, Version 2.0 (the "License"); you may
00006  * not use this file except in compliance with the License.
00007  * You may obtain a copy of the License at
00008  *
00009  * http://www.apache.org/licenses/LICENSE-2.0
00010  *
00011  * Unless required by applicable law or agreed to in writing, software
00012  * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
00013  * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
00014  * See the License for the specific language governing permissions and
00015  * limitations under the License.
00016  */
00017 /**
00018  * \file iso7816_app.c
00019  * \copyright Copyright (c) ARM Ltd 2015-2018
00020  * \author Donatien Garnier
00021  */
00022 
00023 #include "iso7816_app.h"
00024 
00025 void nfc_tech_iso7816_app_init(nfc_tech_iso7816_app_t *pIso7816App,
00026                                nfc_tech_iso7816_t *pIso7816,
00027                                const uint8_t *aid, size_t aidSize,
00028                                nfc_tech_iso7816_app_cb selected,
00029                                nfc_tech_iso7816_app_cb deselected,
00030                                nfc_tech_iso7816_app_cb apdu,
00031                                void *pUserData
00032                               )
00033 {
00034     pIso7816App->pIso7816 = pIso7816;
00035     pIso7816App->aid = aid;
00036     pIso7816App->aidSize = aidSize;
00037     pIso7816App->selected = selected;
00038     pIso7816App->deselected = deselected;
00039     pIso7816App->apdu = apdu;
00040     pIso7816App->pUserData = pUserData;
00041     pIso7816App->pNext = NULL;
00042 }