Function

    nuContGBPakOpen

    Syntax:

    s32 nuContGBPakOpen(NUContPakFile* handle, s32 contNo)

    Arguments:

    handle	GB Pak control structure (shared with Controller Pak structure)
    contNo	Controller number

    Return Value:

    Error

    Explanation:

Opens the GB Pak

Calls the osGbpakInit function to perform initialization related to GB Pak control, and initializes the hardware. Then the Controller Pak structure is stored in the handle. The return value is the value returned by the osGbpakInit function.

Errors:

PFS_ERR_NOPACK | Nothing is inserted in the specified Controller.
PFS_ERR_DEVICE | Some device other than a GB Pak is inserted in the Controller.
PFS_ERR_CONTRFAIL | Data transfer with Controller has failed. Either the Controller is not connected properly, or there may be some problem with the GB Pak or the Controller connector.