Intelligent Card Support
lgo_CheckHardwareInitialization()
Check the success of a hardware reset of an intelligent board.
#include "laygo.h"
LResult lgo_CheckHardwareInitialization
(
LDriverId driver,
LBoardId board
);
| driver | driver controlling the board |
| board | driver relative board id |
lgo_CheckHardwareInitialization() checks the success of a hardware reset of an intelligent board. If the hardware reset was successful, the intelligent board is ready to receive a driver module.
lgo_CheckHardwareInitialization() should be called only after a successful call to lgo_InitializeHardware() and the number of seconds indicated by the return value of that call has elapsed.
If successful, lgo_CheckHardwareInitialization() returns a non-negative value. 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);
if (lgo_CheckHardwareInitialization(0, 0) < 0)
{
return (FAILURE);
}
}