Files
HBshuiwuConcentrator/yw/isreport.c
2025-12-15 16:07:49 +08:00

47 lines
477 B
C

#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));
}