Intelligent Card Support

Check Hardware Initialization

lgo_CheckHardwareInitialization()

Check the success of a hardware reset of an intelligent board.

Syntax
#include "laygo.h"

LResult lgo_CheckHardwareInitialization
    (
        LDriverId    driver,
        LBoardId     board
    );
driverdriver controlling the board
boarddriver relative board id
Description

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.

Return Values

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:

See Also

lgo_InitializeHardware()

Example
LResult    result;

if ((result = lgo_InitializeHardware(0, 0)) < 0)
{
    return (FAILURE);
}
else
{
    Sleep((long) result * 1000);

    if (lgo_CheckHardwareInitialization(0, 0) < 0)
    {
        return (FAILURE);
    }
}