The ARM7's services

src/nds/hle/pxi.c is the ARM7's side of the FIFO, ported from melonDS's high-level ARM7. A word the game sends names a service in its low five bits, and each service answers with a word of its own:

ServiceAnswered with
The handshake over IPCSYNCeach count with the next, as the two sides start
Firmwarea flash image the board makes, with the user's settings and the three Wi-Fi connections in it: reads, the write-enable latch and writes, kept for the run. The first connection is set to the WFC service nds_wfc names (WFC)
Clockthe host's local date and time
Touch screenthe pen from the window, a sample at a time or by the line, at the place in main memory the SDK reads
SoundSound
Powerthe power chip's registers, which light nothing
Microphonedone, with no samples
Save memorythe save's file: reads, writes and verifies of the block the request names
Wirelessno answer, as with the radio off

The keys the ARM9 has no register for (X, Y and the hinge) are kept where the ARM7 keeps them in main memory, a line at a time.

WFC

A DS game goes online through the firmware's Wi-Fi connections: the first one that works, and the DNS server it names. The original WFC service is closed; the community's replacements each run a DNS server that answers the service's names (nas.nintendowifi.net, conntest.nintendowifi.net, the GameSpy names) with their own servers, and a player sets that server in the connection by hand. The board's firmware has its first connection set that way: the network ScarletNX, open, its address from DHCP, both DNS servers the service's that nds_wfc picks (Settings), from src/common/online's list, or with auto the one whose server answers first as the game starts; off, the default, leaves the three connections unset. The run's log names the server. A game's Wi-Fi settings show the connection; the game cannot connect through it, as the wireless service has no answer yet.


Made from docs/platforms/nds/README.md at 69237645142c. GPL-3.0-or-later.