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_i2c.h 19 * \brief DAL I2C port implementation for linux 20 * 21 * Project: Trusted NFC Linux 22 * 23 */ 24 25 /**< Basic type definitions */ 26 #include <phNfcTypes.h> 27 /**< Generic Interface Layer Function Definitions */ 28 #include <phNfcInterface.h> 29 #include <phDal4Nfc.h> 30 31 void phDal4Nfc_i2c_initialize(void); 32 void phDal4Nfc_i2c_set_open_from_handle(phHal_sHwReference_t * pDalHwContext); 33 int phDal4Nfc_i2c_is_opened(void); 34 void phDal4Nfc_i2c_flush(void); 35 void phDal4Nfc_i2c_close(void); 36 NFCSTATUS phDal4Nfc_i2c_open_and_configure(pphDal4Nfc_sConfig_t pConfig, void ** pLinkHandle); 37 int phDal4Nfc_i2c_read(uint8_t * pBuffer, int nNbBytesToRead); 38 int phDal4Nfc_i2c_write(uint8_t * pBuffer, int nNbBytesToWrite); 39 int phDal4Nfc_i2c_reset(long level); 40