Fork for the GitHub
lib_NDEF_SMS.h@0:de13951f30f6, 2019-11-14 (annotated)
- Committer:
- DiegoOstuni
- Date:
- Thu Nov 14 10:34:11 2019 +0000
- Revision:
- 0:de13951f30f6
Add files
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
DiegoOstuni | 0:de13951f30f6 | 1 | /** |
DiegoOstuni | 0:de13951f30f6 | 2 | ****************************************************************************** |
DiegoOstuni | 0:de13951f30f6 | 3 | * @file lib_NDEF_SMS.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 SMS NDEF file. |
DiegoOstuni | 0:de13951f30f6 | 8 | ****************************************************************************** |
DiegoOstuni | 0:de13951f30f6 | 9 | * @attention |
DiegoOstuni | 0:de13951f30f6 | 10 | * |
DiegoOstuni | 0:de13951f30f6 | 11 | * <h2><center>© 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_SMS_H |
DiegoOstuni | 0:de13951f30f6 | 32 | #define __LIB_NDEF_SMS_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 | |
DiegoOstuni | 0:de13951f30f6 | 39 | typedef struct |
DiegoOstuni | 0:de13951f30f6 | 40 | { |
DiegoOstuni | 0:de13951f30f6 | 41 | char PhoneNumber[16]; |
DiegoOstuni | 0:de13951f30f6 | 42 | char Message[400]; |
DiegoOstuni | 0:de13951f30f6 | 43 | char Information[400]; |
DiegoOstuni | 0:de13951f30f6 | 44 | }sSMSInfo; |
DiegoOstuni | 0:de13951f30f6 | 45 | |
DiegoOstuni | 0:de13951f30f6 | 46 | uint16_t NDEF_ReadSMS( sRecordInfo_t *pRecordStruct, sSMSInfo *pSMSStruct ); |
DiegoOstuni | 0:de13951f30f6 | 47 | uint16_t NDEF_WriteSMS( sSMSInfo *pSMSStruct, I2C* mi2cChannel ); |
DiegoOstuni | 0:de13951f30f6 | 48 | void NDEF_PrepareSMSMessage( sSMSInfo *pSMSStruct, uint8_t *pNDEFMessage, uint16_t *size ); |
DiegoOstuni | 0:de13951f30f6 | 49 | |
DiegoOstuni | 0:de13951f30f6 | 50 | |
DiegoOstuni | 0:de13951f30f6 | 51 | #endif /* __LIB_NDEF_SMS_H */ |
DiegoOstuni | 0:de13951f30f6 | 52 | |
DiegoOstuni | 0:de13951f30f6 | 53 | /******************* (C) COPYRIGHT 2015 STMicroelectronics *****END OF FILE****/ |