User's Manual

-26
4. bool SUNLITRFID_IsOpen(void);
SUNLITRFID_IsOpen can check the comport status that is opened or not.
Parameters
:
No parameter needed.
Return Values
:
The function will return a boolean value. If comport was opened,it will return true,otherwise false.
For example
:
if(SUNLITRFID_IsOpen())
{} //Comport is open
else //Comport is closed
{}
5. bool SUNLITRFID_Close(void);
SUNLITRFID_Close is used for close comport.
Parameters
:
No parameter needed.
Return Values
:
The function will return a boolean value,If the function executed successfully, it will return true,otherwise false.
For example
:
if(SUNLITRFID_Close())
{} //Comport was closed successfully
else //Close comport fail
{}