Acrosser AR-B1673 User Manual

Page 42

Advertising
background image

AR-B1673 User’s Guide

Picture 3.2

Picture below show an example how to use Protect-U library functions. As can be seen in boxes below, The first
function to call is InitSecuritySystem(), than we can use CheckId() function. ReadStatus() function is
called after we have value return by CheckId(). The last call is to CloseSecuritySystem() which will return
the resources.

Note: In example below, InitSecuritySystem(), CheckId(), and CloseSecuritySystem() all are
executed in every button-click (ProcessGoButton()) to show a simple example of the Protect-U process. But in
a real-world application, the InitSecuritySystem() is to be called once when the application first start, and
the CloseSecuritySystem() is to be called once when the application about to shutdown for more effective
and correct approach.

42

Advertising