📄 rccomm.c
字号:
#include "RcComm.h"
#include "Hardware.h"
#include "MfErrNo.h"
///////////////////////////////////////////////////////////////////////////////
// Module Definitions
///////////////////////////////////////////////////////////////////////////////
#ifndef GetRegPage
#define GetRegPage(adr) (0x80 | (adr>>3))///del
#endif
///////////////////////////////////////////////////////////////////////////////
// Open Reader Communication
///////////////////////////////////////////////////////////////////////////////
char OpenRC(void)
{
signed char status = MI_OK;
//READER_INIT_RESET;
return status;
}
///////////////////////////////////////////////////////////////////////////////
// Close Reader Communication
///////////////////////////////////////////////////////////////////////////////
void CloseRC(void)
{
}
///////////////////////////////////////////////////////////////////////////////
// G E N E R I C W R I T E
///////////////////////////////////////////////////////////////////////////////
void WriteRC(unsigned char Address, unsigned char value)
{
WriteRawRC(0x00,GetRegPage(Address)); // select appropriate page
WriteRawRC(Address,value); // write value at the specified
// address
}
///////////////////////////////////////////////////////////////////////////////
// G E N E R I C R E A D
///////////////////////////////////////////////////////////////////////////////
unsigned char ReadRC(unsigned char Address)
{
WriteRawRC(0x00,GetRegPage(Address)); // select appropriate page
return ReadRawRC( Address); // read value at the specified
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -