# List of Single-Card Play (MB) functions

### Initialization

MB_Init |  | Initializes the library.
MB_End |  | Closes the library. The wireless library reverts to the state before initialization.
MB_EndToIdle |  | Closes the library. The wireless library changes to the `IDLE` state.
MB_GetParentSystemBufSize |  | Obtains the size of the work memory used by MB.
MB_GetTgid |  | Obtains the TGID value specified at the time of initialization.

### Child (after multiboot)

MB_IsMultiBootChild |  | Determines whether the application itself is a multiboot child.
MB_GetMultiBootParentBssDesc |  | Obtains multiboot parent information.
MB_GetMultiBootDownloadParameter |  | Obtains the user-defined extended parameters during download.
MB_ReadMultiBootParentBssDesc |  | Obtains the information for the `WM_StartConnect` function based on the multiboot parent information.
MB_GetUserVolatData |  | Extracts the user data in `MBGameInfoVolatile` from the MB parent beacon.

### Parent

MB_SetParentCommSize |  | Sets the communication data size of the parent.
MB_SetParentCommParam |  | Sets the communication data size of the parent and the maximum number of children to be connected.
MB_SetPowerSaveMode |  | Sets the parent's wireless energy-saving mode.
MB_SetLifeTime |  | Sets lifetimes for the parent's wireless communication.
MB_StartParent |  | Starts processing as a multiboot parent.
MB_StartParentFromIdle |  | Starts processing as a multiboot parent with the wireless library in the `IDLE` state.
MB_CommGetChildrenNumber |  | Obtains the total number of connected children.
MB_CommGetChildUser |  | Obtains the connection information for the specified child.
MB_CommGetParentState |  | Obtains the state of the current parent.
MB_CommSetParentStateCallback |  | Sets the callback function, which notifies you of changes to the parent state.
MB_GetSegmentLength |  | Gets the segment length for the specified program.
MB_ReadSegment |  | Gets the segment information from the specified program.
MB_RegisterFile |  | Registers the specified program in the download process.
MB_UnregisterFile |  | Specifies a registered application and releases it from the download list.
MB_CommResponseRequest |  | Sends a response to the child that requested the connection.
MB_CommStartSending |  | Sends a download start notice to the child that has been granted the connection request.
MB_CommStartSendingAll |  | Sends the download start notification to all children that have been granted the connection request.
MB_CommIsBootable |  | Determines whether the specific child is bootable.
MB_CommBootRequest |  | Sends the boot request to a specific bootable child.
MB_CommBootRequestAll |  | Sends the boot request to all bootable children.
MB_DisconnectChild |  | Forcibly disconnects a child device.
MB_GetGameEntryBitmap |  | Obtains all AID bitmaps that are entered for the specified game information.
MB_SetSendVolatCallback |  | Sets the callback used when sending `MBGameInfoVolatile` as a beacon.
MB_SetUserVolatData |  | Sets the user info in `MBGameInfoVolatile`.

### Fake Multiboot Child

MB_FakeInit |  | Initializes a fake multiboot child.
MB_FakeEnd |  | Ends a fake multiboot child process. Use this function to terminate the process when download is successful or when canceling.
MB_FakeGetWorkSize |  | Obtains the buffer size required for a fake multiboot child.
MB_FakeStartScanParent |  | Starts scanning for a multiboot parent.
MB_FakeEndScan |  | Ends scanning for a multiboot parent.
MB_FakeSetCStateCallback |  | Sets a callback function that broadcasts the entry state to a multiboot parent.
MB_FakeEntryToParent |  | Makes an entry to a multiboot parent.
MB_FakeGetParentGameInfo |  | Obtains a scanned multiboot parent's game information.
MB_FakeGetParentBssDesc |  | Obtains a scanned multiboot parent's connection information.
MB_FakeReadParentBssDesc |  | Obtains a scanned multiboot parent's connection information, including flag or packet size settings.
MB_FakeSetVerboseScanCallback |  | Sets a callback for acquiring the live beacons received while scanning for a multiboot parent.
MB_FakeSetCompareGGIDCallback |  | Sets a callback for filtering when scanning for a multiboot parent.

### Constants and Structures

MB_COMM_PARENT_* |  | Constant that shows the range of sizes that can be set for the communication by a multiboot parent.
MB_SEGMENT_BUFFER_MIN |  | Constant that indicates the minimum buffer size required for the `MB_ReadSegment` function.
MB_ICON_* |  | Constants that define the format of multiboot icons.
MB_GAME_* |  | Constants that define the format of multiboot game information.
MB_USER_* |  | Constants that define the format of multiboot user information.
MB_TGID_AUTO |  | Constant that specifies automatic generation of TGID.
MB_FAKE_WORK_SIZE |  | Constant that expresses the work buffer size needed by the fake multiboot child.
MBErrorStatus |  | Structure that is passed as an argument of the `MB_COMM_PSTATE_ERROR` callback.
MBErrCode |  | Enumerator type that defines the error codes of the MB library.
MBCommPState |  | Enumerator that shows the parent state.
MBCommCState |  | Enumerated value that indicates the child state when using a fake child.
MBCommResponseRequestType |  | Enumerated value for indicating the type of response to the child connection request.
MBCommPStateCallback |  | The format of the callback function, which notifies you of changes to the parent state.
MBCommCStateCallbackFunc |  | Callback function format that indicates update of a fake child state.
MBGameRegistry |  | Structure showing game information registered in the download process.
MBIconInfo |  | Structure showing the format of user icons.
MBUserInfo |  | Structure showing user information.
MBParentBssDesc |  | Structure showing connection information for the multiboot parent.
MBGameInfo |  | Structure showing multiboot parent game information.
MBFakeScanCallback |  | Structure showing parent information that can be obtained with a parent scan callback.
MBFakeScanCallbackFunc |  | Callback function that notifies of the parent scan callback.
MBFakeCompareGGIDCallbackFunc |  | The callback function for filtering the parent scan.
MBFakeScanErrorCallback |  | Error information structure passed as a callback argument if an error occurs during a parent scan.

CONFIDENTIAL