⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 regctrl.h

📁 RC522完整源代码
💻 H
字号:
/* /////////////////////////////////////////////////////////////////////////////////////////////////
//                     Copyright (c) Philips Semiconductors
//
//                       (C)PHILIPS Electronics 2005
//         All rights are reserved. Reproduction in whole or in part is
//        prohibited without the written consent of the copyright owner.
//    Philips reserves the right to make changes without notice at any time.
//   Philips 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. Philips must not be liable for any loss or damage
//                            arising from its use.
///////////////////////////////////////////////////////////////////////////////////////////////// */

/*! \file RegCtrl.h
 *
 * Project: Project: Mifare reader with RC522
 *
 *  Source: RegCtrl.h
 * $Author: Bob Jiang $
 * $Revision: 0.1 $
 * $Date: Fri Jul 22 2005 $
 * $KeysEnd$
 *
 * Comment:
 *  Write, read, modify the register of RC522
 *
 * Functions:
 *
 *
 * History:
 *  Bob:    Generated Fri Jul 22 2005 $
 *
 */
 #ifdef __REGCTRL_H__
 #define __REGCTRL_H__

 /*************************************************
 Function:       RcSetReg
 Description:
      Write data to register of RC522
 Parameter:
      RegAddr       The address of the regitster
      RegVal        The value to be writen
 Return:
      None
 **************************************************/
 void RcSetReg(unsigned char RegAddr, unsigned char RegVal);

 /*************************************************
 Function:       RcGetReg
 Description:
      Write data to register of RC522
 Parameter:
      RegAddr       The address of the regitster to be readed
 Return:
      The value of the specify register
 **************************************************/
 unsigned char RcGetReg(unsigned char RegAddr);

/*************************************************
 Function:       RcModifyReg
 Description:
      Change some bits of the register
 Parameter:
      RegAddr       The address of the regitster
      ModifyVal        The value to change to
      MaskByte      Only the corresponding bit '1' is valid
 Return:
      None
 **************************************************/
 void RcModifyReg(unsigned char RegAddr, unsigned char ModifyVal, unsigned char MaskByte);


#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -