资源简介
代码主要是用STM32和CLRC663芯片实现15693协议读写。亲测可用!因为是截取的部分代码,所以有很多变量没有删掉,从主函数看看起,可以看到15693协议的具体配置。
代码片段和文件信息
/*
* Copyright (c) NXP Semiconductors Gratkorn / Austria
*
* (C)NXP Semiconductors
* All rights are reserved. Reproduction in whole or in part is
* prohibited without the written consent of the copyright owner.
* NXP reserves the right to make changes without notice at any time.
* NXP makes no warranty expressed implied or statutory including but
* not limited to any implied warranty of merchantability or fitness for any
*particular purpose or that the use will not infringe any third party patent
* copyright or trademark. NXP must not be liable for any loss or damage
* arising from its use.
*/
/** \file
* Generic ISO 15693 Application Component of Reader Library framework.
* $Author: jayaprakash.desai $
* $Revision: 1.9 $
* $Date: Tue Oct 23 15:51:47 2012 $
*
* History:
* CHu: Generated 10. November 2009
*
*/
#include
#include
#include
#ifdef NXPBUILD__PHAL_I15693_SW
#include “Sw/phalI15693_Sw.h“
#endif /* NXPBUILD__PHAL_I15693_SW */
#ifdef NXPBUILD__PHAL_I15693
phStatus_t phalI15693_ReadSingleBlock (
void * pDataParams
uint8_t bOption
uint8_t bBlockNo
uint8_t ** ppRxBuffer
uint16_t * pRxLength
)
{
phStatus_t PH_MEMLOC_REM status;
PH_LOG_HELPER_ALLOCATE_TEXT(bFunctionName “phalI15693_ReadSingleBlock“);
/*PH_LOG_HELPER_ALLOCATE_PARAMNAME(pDataParams);*/
PH_LOG_HELPER_ALLOCATE_PARAMNAME(bOption);
PH_LOG_HELPER_ALLOCATE_PARAMNAME(bBlockNo);
PH_LOG_HELPER_ALLOCATE_PARAMNAME(ppRxBuffer);
PH_LOG_HELPER_ALLOCATE_PARAMNAME(status);
PH_LOG_HELPER_ADDSTRING(PH_LOG_LOGTYPE_INFO bFunctionName);
PH_LOG_HELPER_ADDPARAM_UINT8(PH_LOG_LOGTYPE_INFO bOption_log &bOption);
PH_LOG_HELPER_ADDPARAM_UINT8(PH_LOG_LOGTYPE_INFO bBlockNo_log &bBlockNo);
PH_LOG_HELPER_EXECUTE(PH_LOG_OPTION_CATEGORY_ENTER);
PH_ASSERT_NULL (pDataParams);
PH_ASSERT_NULL (ppRxBuffer);
PH_ASSERT_NULL (pRxLength);
if (PH_GET_COMPCODE(pDataParams) != PH_COMP_AL_I15693)
{
status = PH_ADD_COMPCODE(PH_ERR_INVALID_DATA_PARAMS PH_COMP_AL_I15693);
PH_LOG_HELPER_ADDSTRING(PH_LOG_LOGTYPE_INFO bFunctionName);
PH_LOG_HELPER_ADDPARAM_UINT16(PH_LOG_LOGTYPE_INFO status_log &status);
PH_LOG_HELPER_EXECUTE(PH_LOG_OPTION_CATEGORY_LEAVE);
return status;
}
/* perform operation on active layer */
switch (PH_GET_COMPID(pDataParams))
{
#ifdef NXPBUILD__PHAL_I15693_SW
case PHAL_I15693_SW_ID:
status = phalI15693_Sw_ReadSingleBlock((phalI15693_Sw_DataParams_t *)pDataParams bOption bBlockNo ppRxBuffer pRxLength);
break;
#endif /* NXPBU
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2017-09-20 11:59 CLRC663读写\
目录 0 2017-09-24 17:52 CLRC663读写\CLRC663\
目录 0 2017-09-20 11:59 CLRC663读写\CLRC663\comps\
目录 0 2017-09-20 11:59 CLRC663读写\CLRC663\comps\phalI15693\
目录 0 2017-09-20 11:59 CLRC663读写\CLRC663\comps\phalI15693\src\
文件 25001 2017-09-13 15:28 CLRC663读写\CLRC663\comps\phalI15693\src\phalI15693.c
目录 0 2017-09-24 18:09 CLRC663读写\CLRC663\comps\phalI15693\src\Sw\
文件 22258 2017-09-24 18:09 CLRC663读写\CLRC663\comps\phalI15693\src\Sw\phalI15693_Sw.c
文件 3462 2017-09-05 14:20 CLRC663读写\CLRC663\comps\phalI15693\src\Sw\phalI15693_Sw.h
文件 3554 2017-09-05 14:20 CLRC663读写\CLRC663\comps\phalI15693\src\Sw\phalI15693_Sw_Int.h
目录 0 2017-09-20 11:59 CLRC663读写\CLRC663\comps\phalMfc\
目录 0 2017-09-20 11:59 CLRC663读写\CLRC663\comps\phalMfc\src\
文件 26984 2017-09-05 14:20 CLRC663读写\CLRC663\comps\phalMfc\src\phalMfc.c
文件 5709 2017-09-05 14:20 CLRC663读写\CLRC663\comps\phalMfc\src\phalMfc_Int.c
文件 4754 2017-09-05 14:20 CLRC663读写\CLRC663\comps\phalMfc\src\phalMfc_Int.h
目录 0 2017-09-20 11:59 CLRC663读写\CLRC663\comps\phalMfc\src\Sw\
文件 12320 2017-09-05 14:20 CLRC663读写\CLRC663\comps\phalMfc\src\Sw\phalMfc_Sw.c
文件 4642 2017-09-05 14:20 CLRC663读写\CLRC663\comps\phalMfc\src\Sw\phalMfc_Sw.h
目录 0 2017-09-20 11:59 CLRC663读写\CLRC663\comps\phalMful\
目录 0 2017-09-20 11:59 CLRC663读写\CLRC663\comps\phalMful\src\
文件 8983 2017-09-05 14:20 CLRC663读写\CLRC663\comps\phalMful\src\phalMful.c
文件 4452 2017-09-05 14:20 CLRC663读写\CLRC663\comps\phalMful\src\phalMful_Int.c
文件 2811 2017-09-05 14:20 CLRC663读写\CLRC663\comps\phalMful\src\phalMful_Int.h
目录 0 2017-09-20 11:59 CLRC663读写\CLRC663\comps\phalMful\src\Sw\
文件 3794 2017-09-05 14:20 CLRC663读写\CLRC663\comps\phalMful\src\Sw\phalMful_Sw.c
文件 1921 2017-09-05 14:20 CLRC663读写\CLRC663\comps\phalMful\src\Sw\phalMful_Sw.h
目录 0 2017-09-20 11:59 CLRC663读写\CLRC663\comps\phalSli\
目录 0 2017-09-20 11:59 CLRC663读写\CLRC663\comps\phalSli\src\
文件 31062 2017-09-05 14:20 CLRC663读写\CLRC663\comps\phalSli\src\phalSli.c
文件 3251 2017-09-05 14:20 CLRC663读写\CLRC663\comps\phalSli\src\phalSli_Int.h
目录 0 2017-09-20 11:59 CLRC663读写\CLRC663\comps\phalSli\src\Sw\
............此处省略596个文件信息
- 上一篇:任天堂游戏编程探密.PDF
- 下一篇:排队论 基础与应用
评论
共有 条评论