河北水利局项目
This commit is contained in:
46
yw/isreport.c
Normal file
46
yw/isreport.c
Normal file
@@ -0,0 +1,46 @@
|
||||
#include "stdafx.h"
|
||||
#include "isreport.h"
|
||||
|
||||
/*
|
||||
ÉĎą¨ÍŁÖš
|
||||
*/
|
||||
|
||||
static u8 isreport = 0xAA;
|
||||
|
||||
bool isreport_get()
|
||||
{
|
||||
if(isreport == 0x55)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
u8 isreport_getval()
|
||||
{
|
||||
return isreport;
|
||||
}
|
||||
|
||||
void isreport_set(bool isrp)
|
||||
{
|
||||
if(isrp)
|
||||
{
|
||||
isreport = 0x55;
|
||||
}
|
||||
else
|
||||
{
|
||||
isreport = 0xAA;
|
||||
}
|
||||
}
|
||||
|
||||
void isreport_write()
|
||||
{
|
||||
isrp_writefile((u8*)&isreport,sizeof(isreport));
|
||||
}
|
||||
|
||||
void isreport_read()
|
||||
{
|
||||
isrp_readfile((u8*)&isreport,sizeof(isreport));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user