Module gba::mmio

source ·
Expand description

Contains all the MMIO address definitions for the GBA’s components.

This module contains only the MMIO addresses. The data type definitions for each MMIO control value are stored in the appropriate other modules such as video, interrupts, etc.

In general, the docs for each address are quite short. If you want to understand how a subsystem of the GBA works, you should read the docs for that system’s module, and the data type used by the address.

The GBATEK names (and thus mGBA names) are used for the MMIO addresses by default. However, in some cases (eg: sound) the GBATEK naming is excessively cryptic, and so new names have been created. Whenever a new name is used, the GBATEK name is still listed as a doc alias for that address. If necessary you can just search the GBATEK name in the rustdoc search bar and the search results will show you the new name.

§Safety

The MMIO declarations and wrapper types in this module must not be used outside of a GBA. The read and write safety of each address are declared assuming that code is running on a GBA. On any other platform, the declarations are simply incorrect.

Structs§

Constants§

Functions§