MakeCecTitleId

nn::cec::CTR::MakeCecTitleId Function

Syntax

nn::cec::CTR::TitleId MakeCecTitleId(
     bit32 id,
     bit8 variation = 0x0
);

Parameters

Name Description
in id Be sure to specify the same value as the 20-bit CecUniqueId set for BSF.
To communicate between several titles using shared boxes, specify the CecUniqueId of one of the titles as a shared value.
in variation Not used.

Return Values

Returns the StreetPass ID (CecTitleId).

Description

Generates a 32-bit StreetPass ID (CecTitleId) used in StreetPass communications from a 20-bit unique ID.

Specify the CecUniqueId set by BSF in the id argument.
Use the value generated by this function in cases where you must specify a StreetPass ID (TitleId) such as when using MessageBox::CreateMessageBox or MessageBox::OpenMessageBox.
The StreetPass box is created for this title ID. Use the ID specified for your particular application as the base ID.
StreetPass searches for partners who have registered boxes or messages bearing the same StreetPass ID. (It is possible to communicate even if the regions are different, because the search conditions do not include region information.)

Revision History

2010/11/10
Initial version.

CONFIDENTIAL