BL4S200 User’s Manual
198
rn_reset
int rn_reset(int handle, int resettype);
FUNCTION DESCRIPTION
Sends a reset sequence to the specified peripheral card. The reset takes approximately
25 ms before the peripheral card will once again execute the application. Allow 1.5
seconds after the reset has completed before accessing the peripheral card. This func-
tion will check peripheral card information to determine that the peripheral card is con-
nected to a master.
PARAMETERS
handle
address index to device information. Use
rn_device()
or
rn_find()
to establish the handle.
resettype
describes the type of reset.
0 = hard reset—equivalent to power-up. All logic is reset.
1 = soft reset—only the microprocessor logic is reset.
RETURN VALUE
The status byte from the previous command. -1 means that device information indicates
the peripheral card is not connected to the master.
rn_sw_wdt
int rn_sw_wdt(int handle, float timeout);
FUNCTION DESCRIPTION
Sets software watchdog timeout period. Call this function prior to enabling the software
watchdog timer.
This function will
check device information to determine that the periph-
eral card is connected to a master.
PARAMETERS
handle
address index to device information. Use
rn_device()
or
rn_find()
to establish the handle.
timeout
timeout period from 0.025 to 6.375 seconds in increments of 0.025
seconds. Entering a zero value will disable the software watchdog
timer.
RETURN VALUE
The status byte from the previous command. -1 means that device information indicates
the peripheral card is not connected to the master.
electronic components distributor