nn::cec::CTR::MakeCecTitleId Function

Syntax

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

Arguments

Name Description
in id A 20-bit unique ID. To communicate between several titles using shared boxes, specify one of the unique IDs.
in variation Not used.

Return Values

Returns the StreetPass ID (CecTitleId).

Description

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

Where you must specify a TitleId (e.g. MessageBox::CreateMessageBox or MessageBox::OpenMessageBox), use the value generated by this function.
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