Programming Guide

### Operating System (OS)

  [Full List/Function List /Overview]

| Initialization
| Reset
| System State
| TCM
| Protection Unit
| Exceptions
| Interrupts
| Timer
| Alarms
| V-Count Alarms
| Time
| Thread
| Exclusion Control
| Context
| Messages
| Events
| Cache
| Arena
| Memory Allocation
| System Information
| Boot Information
| Operating Environment

Debug

| String Display
| Assert
| Function Call Trace
| Function Cost Measurement
| Stack Overflow Check
| Arguments

### Graphics (GX/G2/G3/G3X)

  [Full List/Function List]

General 2D/3D Graphics (GX)

Common to the 2D Graphics Engines
| Power Control
| Initialization
| VRAM Bank Allocation
| VRAM Bank Acquisition
| Switching to LCDC
| Releasing Allocation
| Interrupts and Miscellaneous

Main 2D Graphics Engine
| Display Mode
| Show/Hide
| Offset
| OBJ Mapping Mode
| Loading Resources (2D)
| Loading Resources (3D)
| Other

Sub 2D Graphics Engine
| Display Mode
| Show/Hide
| OBJ Mapping Mode
| Loading Resources
| Other

2D Graphics (G2)

  [Full List/Function List]

Common to the 2D Graphics Engines
| OAM

Main 2D Graphics Engine
| BG Control
| Setting BG Display Priority Levels
| BG Mosaic
| Acquiring Pointers
| BG Plane Offset
| BG Plane Affine Conversion
| Setting Windows
| Mosaic
| Color Special Effects

Sub 2D Graphics Engine
| Background Control
| Setting Background Display Priority Levels
| Background Mosaic
| Getting Pointers
| Background Plane Offset
| Background Plane Affine Conversion
| Setting Windows
| Mosaic
| Color Special Effects

3D Geometry (G3*)

  [Full List/Function List]

| Geometry Command Cycle List
| Geometry and Vertices
| Matrix and Viewport
| Lighting
| Textures
| Control
| Geometry Visibility Determination
| Direct Write
| Utilities
| Dynamic Creation of Display Lists

3D Graphics Control (G3X)

  [Full List/Function List]

| Initialization
| Enabling and Disabling Each Function
| Toon/Highlighting
| Edge Color
| Fog
| Offset Settings
| Clear Color
| Test Results and Calculation Results
| Other
| Main Types And Macros

### Memory Interface (MI)

  [Full List/Function List /Overview]

| Initialization
| CPU Memory Operations
| DMA Memory Operations
| External Memory Control
| Work RAM Settings
| Memory Swap
| Expanding Compressed Data
| Byte Access
| Endian-Aware Memory Access
| Types and Structures

### Fixed Decimal (FX)

  [Full List/Function List]

Data Type

| Fixed Decimal Type

Initialization

| Initialization

Calculation

| Calculation of Fixed Decimal
| Calculation of Fixed Decimal (Asynchronous)

Macro

| fx16 Type Macros
| fx32 Type Macros
| fx64 Type Macros
| fx64c Type Macros

Constant

| fx16 Type Constant Macros
| fx32 Type Constant Macros
| fx64c Type Constant Macros

Matrix (MTX)

Data Type

| Matrix Type

Matrix Calculation

| 2x2 Matrix Calculation
| 3x3 Matrix Calculation
| 4x3 Matrix Calculation
| 4x4 Matrix Calculation

Vector (VEC)

Data Type

| Vector Type

<Vector Calculation>

| Vector Calculation

### Co-Processor (CP)

  [Full List/Function List /Overview]

| Divider
| Square Root Calculator
| Context Operations

### Mathematical Functions (MATH)

  [Full List/Function List /Overview]

| Utility Functions
| Integer Operations
| Bit Operations
| Random Number-Related Features
| Sort-Related Functions
| Fast Fourier Transforms
| Hash Value-Related Functions
| Message Digest Functions

### Controller (PAD)

  [Full List/Function List]

| Pad

### ARM7 Processor Peripheral Device (SPI)

  [Full List/Function List /Overview]

Touch Panel (TP)

| Initialization
| Sampling with Request
| Auto-Sampling
| Calibration
| Pass/Fail Determination
| Types and Structures

Microphone (MIC)

| Initialization
| Sampling
| Auto-Sampling
| Types and Structures

Power Management (PM)

| PMIC Operation
| PMIC Status
| Battery
| Sleep
| Hardware Reset and Shutdown

### Pattern Recognition (PRC)

  [Full List/Function List]

| Initialization
| Input Point Processing
| Sample Pattern DB Operations
| Input Pattern Operations
| Pattern Recognition
| Types and Structures

### Real-Time Clock (RTC)

  [Full List/Function List]

| Initialization
| Date, Time
| Alarms
| Conversions
| Types and Structures

### Sound (SND, SNDEX)

  [Full List/Function List /Overview]

| Initialization
| ARM7 Command Processes
| Sequence Commands
| Channel Commands
| Capture Commands
| Alarm Commands
| Timer Commands
| Global Settings Commands
| Data Invalidation Commands
| Driver Information Commands
| Bank
| Getting Information
| Utilities
| Extended Features (SNDEX)

### File System (FS)

  [Full List/Function List /Overview]

| Initialization
| File Access
| Directory Access
| Overlay
| Archives
| Constants
| Types and Structures

### Supervisor Call (SVC)

  [Full List/Function List]

| Wait for Interrupt
| Waiting
| Memory Operations
| Expanding Compressed Data
| Arithmetic Operations
| CRC
| Signature
| Hash

### CARD Module (CARD)

  [Full List/Function List /Overview]

| Initialization
| Common
| General Backup
| Backup: EEPROM device
| Backup: FLASH Device
| ROM Access
| Removal Detection
| Constants
| Structures

### Game Pak Module (CTRDG)

  [Full List/Function List]

| Initialization
| Removal Detection
| Types of Game Paks
| AGB Game Pak Information
| Data Transfer
| AGB Backup Overview
| FLASH Device
| SRAM Device
| PHI Output Terminal

### Rumble Pak (VIB)

  [Full List/Function List /Overview]

| Functions
| Structures
| Constants

### Wireless Driver Operation Control Library (WVR)

  [Full List/Function List]

| Driver Operation Control
| Constants and Types

### Wireless Manager (WM)

  [Full List/Function List]

| Initialization
| Initial Settings
| MP Communication
| Infrastructure Mode Communications
| Other
| Constants
| Types and Structures
| Figures and Information

### WM Block Transfer Library (WBT)

  [Full List/Function List /Overview]

| Initialization
| Common
| Parent Device Settings
| Child Device Settings
| Commands
| Constants and Macros
| Structures

### Wireless File System (WFS) Library

  [Full List/Function List /Overview]

| Parent (Server)
| Child (Client)
| Types and Structures

### Multiboot Library (MB)

  [Full List/Function List /Overview]

| Initialization
| Child (After Multiboot)
| Parent
| Fake Multiboot Child
| Constants and Structures

### PictoChat Library (CHT)

  [Full List/Function List]

| PictoChat Search

### Other Libraries (EXT)

  [Full List/Function List]

| Auto-Test

### Environment Resource Management (ENV) Library

  [Full List/Function List /Overview]

| Initialization
| Resource Set Configuration
| Resource Acquisition
| Class Configuration
| Conditional Searches

### Standard Library (STD)

  [Full List/Function List]

| Charstring Functions
| Encoding Conversion Functions
| Types and Structures
| Constants

### System Configuration Library (SCFG)

  [Full List/Function List /Overview]

| Configuration

### AES Cipher Library (AES)

  [Full List/Function List /Overview]

  Basic API
  High-Level API

### ELF Loader (EL)

  [Full List/Function List /Overview]

  Initialization
  Dynamic Module Registration
  Link Processing
  Other
  Constants
  Types and Structures

### Camera Library (CAMERA)

  [Full List/Function List /Overview]

  Initialization
  Capture-Related
  Camera Settings
  Utility Functions
  Macros
  Constants and Structures

### DSP Library (DSP)

  [Full List/Function List /Overview]

  G.711 Encoding and Decoding
  Graphics
  Common

### Software Encryption Library (CRYPTO)

  [Full List/Function List /Overview]

  Digital Signatures
  RC4 Encryption
  RSA Encryption
  Other

### NAND Application (NA)

  [Full List/Function List /Overview]

  Archives
  Internal Fonts
  Sub-Banners

### SSP Library (SSP)

  [Full List/Function List]

  JPEG Encoding
  JPEG Decoding

### Host I/O Library

  Supported in the MCS library of the NITRO-SYSTEM package

### Sample Demos

  OS Sample Demos
  Graphics Sample Demos
  MI Sample Demos
  FX Sample Demos
  CP Sample Demos
  MATH Sample Demos
  PAD Sample Demos
  SPI Sample Demos
  PRC Sample Demos
  RTC Sample Demos
  SND Sample Demos
  FS Sample Demos
  Card Sample Demos
  CTRDG Sample Demos
  VIB Sample Demos
  WVR Sample Demos
  WM Sample Demos
  WBT Sample Demos
  WFS Sample Demos
  MB Sample Demos
  CHT Demos
  ENV Sample Demos
  STD Sample Demos
  AES Sample Demos
  EL Sample Demos
  CAMERA Sample Demos
  DSP Sample Demos
  CRYPTO Sample Demos
  NAND Application Sample Demos
  SPP Sample Demos
  Miscellaneous Sample Demos

### Tools and Commands

  [Full List/Function List /Overview]

  Tools Related to ROM Images
  Data Conversion Tools
  Demo Tools

### Compiled Programs

  [Full List/Function List]

  Wireless-Related
  NAND Application-Related

### Related Information

  Description of Header Files
  Description of Compile Targets
  Description of Resource Data

CONFIDENTIAL