Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: mbed-os-nfc04a1 Wiagro-Lanza34-XDot
x_nucleo_nfc04a1.h
00001 /** 00002 ****************************************************************************** 00003 * @file x_nucleo_nfc04a1.h 00004 * @author MMY Application Team 00005 * @version $Revision: 3351 $ 00006 * @date $Date: 2017-01-25 17:28:08 +0100 (Wed, 25 Jan 2017) $ 00007 * @brief This file contains definitions for the x_nucleo_nfc04a1.c 00008 * board specific functions. 00009 ****************************************************************************** 00010 * @attention 00011 * 00012 * <h2><center>© COPYRIGHT 2017 STMicroelectronics</center></h2> 00013 * 00014 * Licensed under ST MYLIBERTY SOFTWARE LICENSE AGREEMENT (the "License"); 00015 * You may not use this file except in compliance with the License. 00016 * You may obtain a copy of the License at: 00017 * 00018 * http://www.st.com/myliberty 00019 * 00020 * Unless required by applicable law or agreed to in writing, software 00021 * distributed under the License is distributed on an "AS IS" BASIS, 00022 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, 00023 * AND SPECIFICALLY DISCLAIMING THE IMPLIED WARRANTIES OF MERCHANTABILITY, 00024 * FITNESS FOR A PARTICULAR PURPOSE, AND NON-INFRINGEMENT. 00025 * See the License for the specific language governing permissions and 00026 * limitations under the License. 00027 * 00028 ****************************************************************************** 00029 */ 00030 00031 #include "x_nucleo_nfc04a1_nfctag.h" 00032 #include "x_nucleo_nfc04.h" 00033 #include "mbed.h" 00034 //#include "PinNames.h" 00035 00036 /* Define to prevent recursive inclusion -------------------------------------*/ 00037 #ifndef __X_NUCLEO_NFC04A1_H 00038 #define __X_NUCLEO_NFC04A1_H 00039 00040 00041 00042 /* Includes ------------------------------------------------------------------*/ 00043 //#include "ST25DV/st25dv.h" 00044 00045 /** @addtogroup BSP 00046 * @{ 00047 */ 00048 00049 /** @addtogroup X_NUCLEO_NFC04A1 00050 * @{ 00051 */ 00052 00053 /* Exported types ------------------------------------------------------------*/ 00054 /** @defgroup X_NUCLEO_NFC04A1_Exported_Types 00055 * @{ 00056 */ 00057 /** 00058 * @brief NFC04A1 Led enumerator definition 00059 */ 00060 typedef enum 00061 { 00062 GREEN_LED = 0, 00063 BLUE_LED , 00064 YELLOW_LED 00065 }NFC04A1_Led_E; 00066 00067 /** 00068 * @brief NFC04A1 Ack Nack enumerator definition 00069 */ 00070 typedef enum 00071 { 00072 I2CANSW_ACK = 0, 00073 I2CANSW_NACK 00074 }NFC04A1_I2CANSW_E; 00075 00076 00077 00078 /** 00079 * @brief NFC04A1 Led structure definition 00080 */ 00081 00082 typedef struct 00083 { 00084 uint16_t NFC04A1_LED_PIN; 00085 }NFC04A1_Led_TypeDef; 00086 00087 /** 00088 * @} 00089 */ 00090 /* Exported constants --------------------------------------------------------*/ 00091 /** @defgroup X_NUCLEO_NFC04A1_Exported_Constants 00092 * @{ 00093 */ 00094 #define ST25DV_I2C_SPEED NFC04A1_ST25DV_I2C_SPEED_1M 00095 #define NFC04A1_I2C_TIMEOUT ST25DV_I2C_TIMEOUT 00096 /** 00097 * @} 00098 */ 00099 00100 /* External variables --------------------------------------------------------*/ 00101 /* Exported macro ------------------------------------------------------------*/ 00102 /* Exported functions ------------------------------------------------------- */ 00103 /** @defgroup ST25DV_NUCLEO_Exported_Functions 00104 * @{ 00105 */ 00106 void NFC04A1_LED_Toggle( DigitalOut* led); 00107 DigitalOut NFC04A1_GPO_ReadPin( DigitalOut *mMISO ); 00108 void NFC04A1_LPD_Init( DigitalOut *mLPD ); 00109 uint8_t NFC04A1_LPD_ReadPin( void ); 00110 void NFC04A1_LPD_WritePin( uint8_t LpdPinState, DigitalOut *mLPD ); 00111 void NFC04A1_SelectI2cSpeed( uint8_t i2cspeedchoice, I2C* mi2cChannel); 00112 /** 00113 * @} 00114 */ 00115 00116 /** 00117 * @} 00118 */ 00119 00120 /** 00121 * @} 00122 */ 00123 00124 00125 00126 #endif /* __X_NUCLEO_NFC04A1_H */ 00127 00128 /******************* (C) COPYRIGHT 2017 STMicroelectronics *****END OF FILE****/
Generated on Thu Jul 14 2022 09:16:13 by
1.7.2