Intelligent Card Support
lgo_InitializeHardware()
Initiates a hardware reset of an intelligent board.
#include "laygo.h"
LResult lgo_InitializeHardware
(
LDriverId driver,
LBoardId board
);
| driver | driver controlling the board |
| board | driver relative board id |
lgo_InitializeHardware() initiates a hardware reset of an intelligent board in preparation for downloading a driver module. This function should be call after lgo_ConfigureStack() but before lgo_InitializeStack(). The LBoardId parameter must be in the range 0 to N-1 where N is the number of boards for which the driver is configured.
If successful, lgo_InitializeHardware() returns a non-negative value indicating the minimum number of seconds to wait for a successful initialization. Otherwise, it returns a negative value indicating the reason it failed. Possible unsuccessful return values are:
LResult result;
if ((result = lgo_InitializeHardware(0, 0)) < 0)
{
return (FAILURE);
}
else
{
Sleep((long) result * 1000);
}