Cyclone Automated Control Package
31
4.4.7 pro_set_active_security_code
function pro_set_active_security_code(cyclonepromaxhandle:
longword; buffer : pointer) : boolean;
bool pro_set_active_security_code(unsigned long
cyclonepromaxhandle, char *buffer);
bool pro_set_active_security_code(UInt32 cyclonepromaxhandle,
byte [ ] buffer);
Sets the security code used by the Cyclone Pro to enter monitor mode for
HC908 targets. Once a blank HC908 device is programmed, this security
code must be known in order to enter monitor mode without erasing the
device.
This function can be useful if testing needs to be performed after
programming (requiring the HC908 device to be powered off and powered
back on), and later you need to program a serial number, for example.
@param
cyclonepromaxhandle
The handle of the Cyclone unit that will
have its HC908 security code set.
@param buffer
A pointer to a character array which
contains the security code. Note that the
character array should not include the
dashes between bytes.
For
example, a security code of “01-02-03-
04-05-06-07-
08” should be represented as
“0102030405060708” in the array.
@returnvalue
True if no error occurred
False otherwise