Kenji Arai / mbed-os_TYBLE16

Dependents:   TYBLE16_simple_data_logger TYBLE16_MP3_Air

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers nfc_transport.c Source File

nfc_transport.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 nfc_transport.c
00019  * \copyright Copyright (c) ARM Ltd 2013-2018
00020  * \author Donatien Garnier
00021  * \details Transport layer
00022  */
00023 
00024 /** \addtogroup Implementation
00025  *  @{
00026  *  \name Transport
00027  *  @{
00028  */
00029 
00030 #include "stack/nfc_errors.h"
00031 #include "nfc_transport.h"
00032 
00033 /** Initialize transport with a specific implementation
00034  * \param pTransport pointer to a nfc_transport_t structure to initialize
00035  * \param write transport write function
00036  * \param read transport read function
00037  * \param pUser parameter that will be passed to any of the above functions
00038  */
00039 void nfc_transport_init(nfc_transport_t *pTransport, nfc_transport_write_fn_t write, nfc_transport_read_fn_t read, void *pUser)
00040 {
00041     pTransport->write = write;
00042     pTransport->read = read;
00043     pTransport->pUser = pUser;
00044 }
00045 
00046 
00047 
00048 
00049 /**
00050  * @}
00051  * @}
00052  * */
00053