Intelligent Card Support

Initialize Hardware

lgo_InitializeHardware()

Initiates a hardware reset of an intelligent board.

Syntax
#include "laygo.h"

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

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.

Return Values

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:

See Also

lgo_CheckHardwareInitialization()

Example
LResult    result;

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