📄 prd_config.h
字号:
//=============================================================================
// Copyright (C) INSIDE Contactless 1998-2005
//
// INSIDE Contactless reserves the right to make changes, without notice,
// to any product (including application note) herein to improve
// reliability, functionality, or design. INSIDE Contactless advises its
// customers to obtain the latest version of device data sheets to verify,
// before placing orders, that the information being relied upon by the
// customer is current.
//
// INSIDE Contactless makes no warranty that the use will not infringe any
// third party patent, copyright or trademark.
//
// Information furnished by INSIDE Contactless is believed to be accurate
// and reliable. However, INSIDE Contactless does not assume any liability
// resulting from the application or use of any product described within.
//
// All rights are reserved. Reproduction in whole or in part is prohibited
// without the written consent of the copyright owner.
//
// Bat 11a,
// Parc Club du Golf,
// Z.A.C. du Pichaury Tel : +33 (0)4.42.39.33.00
// 13856 Aix-en-Provence Cedex 3 Fax : +33 (0)4.42.39.63.19
// FRANCE Email : info@insidefr.com
//
//-----------------------------------------------------------------------------
// Project Code : PICOREAD_RF C LIBRARY
// Project Name : PICOREAD_RF C LIBRARY
// Module Name : PRD_CONFIG.H
// Platform dev : WINDOWS (CCS Compiler)
// Target : PIC18FXX2 (MICROCHIP)
// Language : C + ASM
// Revision : 1.1
// Description : Reader configuration functions.
//-----------------------------------------------------------------------------
//
//=============================================================================
// When Who Ver What
// 06-04-24 MCY 1.1 Added #ifndef __CONFIG_READER_H
//=============================================================================
#ifndef __PRD_CONFIG_H__
#define __PRD_CONFIG_H__
//=====================================
// CONFIGURATION TYPE
//=====================================
#define CONFIG_ANALOG 0x00
#define CONFIG_DEFAULT 0x01
#define CONFIG_PROTOCOL 0x02
#define CONFIG_PARAMETERS 0x03
#define CONFIG_ANTICOLLISION 0x04
#define CONFIG_BITRATE 0x05
#define CONFIG_TIMEOUT 0x06
typedef struct
{
// Reader parameters
unsigned char s_bRProtocol;
unsigned char s_bRFrameSizeMax;
unsigned char s_bRTimeoutDefault;
unsigned char s_bReaderSupportedSpeed;
// Communication parameters
unsigned char s_bRFrameSizeUsed;
unsigned char s_bCommunicationSupportedSpeed;
// Configuration parameters
unsigned long s_bRTimeoutUsed;
unsigned char s_bRSpeedConfig;
// Anticollision options
unsigned char s_bRAnticolOpt0;
unsigned char s_bRAnticolOpt1;
unsigned char s_bRAnticolOpt2;
} StructReader;
extern StructReader g_sPicoReadStructReader;
extern void v_fnConfigAnalog(unsigned char* p_abPage6);
extern void v_fnConfigTimeout(unsigned long p_bTimeout,StructReader* p_pStructReader);
extern void v_fnConfigBitRate(unsigned char p_bSpeed,unsigned char* p_pbRFReceiveEOF,StructReader* p_pStructReader);
extern void v_fnConfigProtocol(unsigned char p_bProtocol,unsigned char* p_pbRFReceiveEOF,StructReader* p_pStructReader);
extern void v_fnConfigParameters(unsigned char* p_abParameters,StructReader* p_pStructReader);
extern void v_fnConfigAnticollision(unsigned char* p_abAnticolOptions,StructReader* p_pStructReader);
extern void v_fnConfigDefault(unsigned char p_bProtocol,unsigned char* p_pbRFReceiveEOF, StructReader* p_pStructReader);
extern void v_fnConfigReader(unsigned char p_bType, unsigned char* p_abData,unsigned char* p_pbRFReceiveEOF,StructReader* p_pStructReader);
extern void v_fnPicoReadReadBank(unsigned char p_bBankNumber,unsigned char* p_pbBankBuffer);
extern unsigned char v_fnGetPicoReadVersion();
#endif //
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -