Home | History | Annotate | Download | only in Linux_x86
      1 /*
      2  * Copyright (C) 2010 NXP Semiconductors
      3  *
      4  * Licensed under the Apache License, Version 2.0 (the "License");
      5  * you may not use this file except in compliance with the License.
      6  * You may obtain a copy of the License at
      7  *
      8  *      http://www.apache.org/licenses/LICENSE-2.0
      9  *
     10  * Unless required by applicable law or agreed to in writing, software
     11  * distributed under the License is distributed on an "AS IS" BASIS,
     12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
     13  * See the License for the specific language governing permissions and
     14  * limitations under the License.
     15  */
     16 
     17 /**
     18  * \file phDalNfc_uart.h
     19  * \brief DAL com port implementation for linux
     20  *
     21  * Project: Trusted NFC Linux Lignt
     22  *
     23  * $Date: 07 aug 2009
     24  * $Author: Jonathan roux
     25  * $Revision: 1.0 $
     26  *
     27  */
     28 
     29 /**< Basic type definitions */
     30 #include <phNfcTypes.h>
     31 /**< Generic Interface Layer Function Definitions */
     32 #include <phNfcInterface.h>
     33 #include <phDal4Nfc.h>
     34 
     35 void phDal4Nfc_uart_initialize(void);
     36 void phDal4Nfc_uart_set_open_from_handle(phHal_sHwReference_t * pDalHwContext);
     37 int phDal4Nfc_uart_is_opened(void);
     38 void phDal4Nfc_uart_flush(void);
     39 void phDal4Nfc_uart_close(void);
     40 NFCSTATUS phDal4Nfc_uart_open_and_configure(pphDal4Nfc_sConfig_t pConfig, void ** pLinkHandle);
     41 int phDal4Nfc_uart_read(uint8_t * pBuffer, int nNbBytesToRead);
     42 int phDal4Nfc_uart_write(uint8_t * pBuffer, int nNbBytesToWrite);
     43 int phDal4Nfc_uart_reset();
     44 int phDal4Nfc_uart_download();
     45