NFC NDEF library

Dependents:   Nucleo_NFC_Example I2C_NFC_Master Print_Entire_Nucleo_NFC01A1_Memory

Fork of lib_NDEF by Enrico Gregoratto

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers lib_NDEF_MyApp.h Source File

lib_NDEF_MyApp.h

Go to the documentation of this file.
00001 /**
00002   ******************************************************************************
00003   * @file    lib_NDEF_MyApp.h
00004   * @author  MMY Application Team
00005   * @version V1.0.0
00006   * @date    20-November-2013
00007   * @brief   This file illustrate how to use M24SR with a proprietary protocol.
00008   ******************************************************************************
00009   * @attention
00010   *
00011   * <h2><center>&copy; COPYRIGHT 2014 STMicroelectronics</center></h2>
00012   *
00013   * Licensed under MMY-ST Liberty SW License Agreement V2, (the "License");
00014   * You may not use this file except in compliance with the License.
00015   * You may obtain a copy of the License at:
00016   *
00017   *        http://www.st.com/software_license_agreement_liberty_v2
00018   *
00019   * Unless required by applicable law or agreed to in writing, software 
00020   * distributed under the License is distributed on an "AS IS" BASIS, 
00021   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
00022   * See the License for the specific language governing permissions and
00023   * limitations under the License.
00024   *
00025   ******************************************************************************
00026   */
00027 
00028 /* Define to prevent recursive inclusion -------------------------------------*/
00029 #ifndef __LIB_NDEF_MYAPP_H
00030 #define __LIB_NDEF_MYAPP_H
00031 
00032 #ifdef __cplusplus
00033  extern "C" {
00034 #endif
00035 
00036 /* Includes ------------------------------------------------------------------*/
00037 #include "lib_NDEF.h"
00038      
00039 #define BLINK_CONFIG                                        "<BLINK_CONFIG>"
00040 #define BLINK_CONFIG_STRING_SIZE            14  
00041 #define BLINK_CONFIG_END                                "<\\BLINK_CONFIG>"
00042 #define BLINK_CONFIG_END_STRING_SIZE    15
00043      
00044 #define LINE_DESCR                                          "<LINE_DESCR>"
00045 #define LINE_DESCR_STRING_SIZE                  12
00046 #define LINE_DESCR_END                                  "<\\LINE_DESCR>"
00047 #define LINE_DESCR_END_STRING_SIZE          13
00048      
00049 #define BLINKING_NONE                                       0x00
00050 #define BLINKING_SLOW                                       0x01
00051 #define BLINKING_MEDIUM                                 0x02
00052 #define BLINKING_FAST                                       0x03
00053      
00054 
00055 typedef struct 
00056 {
00057     uint8_t LedConf[4];
00058     uint8_t Speed;
00059 }sLedBlinkConfig;
00060 
00061 typedef struct 
00062 {
00063     uint8_t LineNb;
00064     uint16_t BackGroundColor;
00065     uint16_t FontColor;
00066     char String[20];
00067 }sLineConfig;
00068 
00069 typedef struct 
00070 {
00071     sLedBlinkConfig LedBlinkConf;
00072     sLineConfig LineX[8];
00073 }sMyAppInfo;
00074 
00075          
00076 uint16_t NDEF_ReadMyApp(sRecordInfo *pRecordStruct, sMyAppInfo *pMyAppStruct);
00077 uint16_t NDEF_WriteMyApp(sMyAppInfo *pMyAppStruct);
00078 
00079 #ifdef __cplusplus
00080 }
00081 #endif
00082      
00083 #endif /* __LIB_NDEF_MYAPP_H */
00084 
00085 /******************* (C) COPYRIGHT 2013 STMicroelectronics *****END OF FILE****/