Fork for the GitHub

Committer:
DiegoOstuni
Date:
Thu Nov 14 10:34:11 2019 +0000
Revision:
0:de13951f30f6
Add files

Who changed what in which revision?

UserRevisionLine numberNew contents of line
DiegoOstuni 0:de13951f30f6 1 /**
DiegoOstuni 0:de13951f30f6 2 ******************************************************************************
DiegoOstuni 0:de13951f30f6 3 * @file lib_NDEF_Geo.h
DiegoOstuni 0:de13951f30f6 4 * @author MMY Application Team
DiegoOstuni 0:de13951f30f6 5 * @version $Revision: 2475 $
DiegoOstuni 0:de13951f30f6 6 * @date $Date: 2016-06-24 12:11:59 +0200 (Fri, 24 Jun 2016) $
DiegoOstuni 0:de13951f30f6 7 * @brief This file help to manage Geolocation NDEF file.
DiegoOstuni 0:de13951f30f6 8 ******************************************************************************
DiegoOstuni 0:de13951f30f6 9 * @attention
DiegoOstuni 0:de13951f30f6 10 *
DiegoOstuni 0:de13951f30f6 11 * <h2><center>&copy; COPYRIGHT 2015 STMicroelectronics</center></h2>
DiegoOstuni 0:de13951f30f6 12 *
DiegoOstuni 0:de13951f30f6 13 * Licensed under ST MYLIBERTY SOFTWARE LICENSE AGREEMENT (the "License");
DiegoOstuni 0:de13951f30f6 14 * You may not use this file except in compliance with the License.
DiegoOstuni 0:de13951f30f6 15 * You may obtain a copy of the License at:
DiegoOstuni 0:de13951f30f6 16 *
DiegoOstuni 0:de13951f30f6 17 * http://www.st.com/myliberty
DiegoOstuni 0:de13951f30f6 18 *
DiegoOstuni 0:de13951f30f6 19 * Unless required by applicable law or agreed to in writing, software
DiegoOstuni 0:de13951f30f6 20 * distributed under the License is distributed on an "AS IS" BASIS,
DiegoOstuni 0:de13951f30f6 21 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied,
DiegoOstuni 0:de13951f30f6 22 * AND SPECIFICALLY DISCLAIMING THE IMPLIED WARRANTIES OF MERCHANTABILITY,
DiegoOstuni 0:de13951f30f6 23 * FITNESS FOR A PARTICULAR PURPOSE, AND NON-INFRINGEMENT.
DiegoOstuni 0:de13951f30f6 24 * See the License for the specific language governing permissions and
DiegoOstuni 0:de13951f30f6 25 * limitations under the License.
DiegoOstuni 0:de13951f30f6 26 *
DiegoOstuni 0:de13951f30f6 27 ******************************************************************************
DiegoOstuni 0:de13951f30f6 28 */
DiegoOstuni 0:de13951f30f6 29
DiegoOstuni 0:de13951f30f6 30 /* Define to prevent recursive inclusion -------------------------------------*/
DiegoOstuni 0:de13951f30f6 31 #ifndef __LIB_NDEF_GEO_H
DiegoOstuni 0:de13951f30f6 32 #define __LIB_NDEF_GEO_H
DiegoOstuni 0:de13951f30f6 33
DiegoOstuni 0:de13951f30f6 34
DiegoOstuni 0:de13951f30f6 35 /* Includes ------------------------------------------------------------------*/
DiegoOstuni 0:de13951f30f6 36 #include "lib_NDEF.h"
DiegoOstuni 0:de13951f30f6 37
DiegoOstuni 0:de13951f30f6 38 typedef struct
DiegoOstuni 0:de13951f30f6 39 {
DiegoOstuni 0:de13951f30f6 40 char Latitude[20];
DiegoOstuni 0:de13951f30f6 41 char Longitude[20];
DiegoOstuni 0:de13951f30f6 42 char Information[100];
DiegoOstuni 0:de13951f30f6 43 }sGeoInfo;
DiegoOstuni 0:de13951f30f6 44
DiegoOstuni 0:de13951f30f6 45 uint16_t NDEF_ReadGeo( sRecordInfo_t *pRecordStruct, sGeoInfo *pGeoStruct );
DiegoOstuni 0:de13951f30f6 46 uint16_t NDEF_WriteGeo( sGeoInfo *pGeoStruct, I2C* mi2cChannel );
DiegoOstuni 0:de13951f30f6 47 void NDEF_PrepareGeoMessage( sGeoInfo *pGeoStruct, uint8_t *pNDEFMessage, uint16_t *size );
DiegoOstuni 0:de13951f30f6 48
DiegoOstuni 0:de13951f30f6 49
DiegoOstuni 0:de13951f30f6 50 #endif /* __LIB_NDEF_GEO_H */
DiegoOstuni 0:de13951f30f6 51
DiegoOstuni 0:de13951f30f6 52 /******************* (C) COPYRIGHT 2015 STMicroelectronics *****END OF FILE****/