Background related register definitions and bit defines. [詳細]
構成 | |
struct | bg_scroll |
register overlay for scroll registers [詳細] | |
struct | bg_transform |
register overlay for affine matrix registers [詳細] | |
struct | bg_attribute |
register overlay for background attribute registers [詳細] | |
モジュール | |
"Main Engine" | |
Main Engine Background registers. | |
"Sub Engine" | |
Sub Engine Background registers. | |
マクロ定義 | |
#define | MAP_BASE_SHIFT 8 |
The shift to apply to map base when storing it in a background control register. | |
#define | TILE_BASE_SHIFT 2 |
The shift to apply to tile base when storing it in a background control register. | |
#define | BG_TILE_BASE(base) ((base) << TILE_BASE_SHIFT) |
Macro to set the tile base in background control. | |
#define | BG_MAP_BASE(base) ((base) << MAP_BASE_SHIFT) |
Macro to set the map base in background control. | |
#define | BG_BMP_BASE(base) ((base) << MAP_BASE_SHIFT) |
Macro to set the graphics base in background control. | |
#define | BG_PRIORITY(n) (n) |
Macro to set the priority in background control. | |
#define | TILE_PALETTE(n) ((n)<<12) |
Macro to set the palette entry of a 16 bit tile index. | |
#define | TILE_FLIP_H BIT(10) |
The horizontal flip bit for a 16 bit tile index. | |
#define | TILE_FLIP_V BIT(11) |
The vertical flip bit for a 16 bit tile index. | |
型定義 | |
typedef struct bg_scroll | bg_scroll |
typedef struct bg_transform | bg_transform |
typedef struct bg_attribute | bg_attribute |
列挙型 | |
enum | BackgroundControl { BG_32x32 = (0 << 14), BG_64x32 = (1 << 14), BG_32x64 = (2 << 14), BG_64x64 = (3 << 14), BG_RS_16x16 = (0 << 14), BG_RS_32x32 = (1 << 14), BG_RS_64x64 = (2 << 14), BG_RS_128x128 = (3 << 14), BG_BMP8_128x128 = ((0 << 14) | BIT(7)), BG_BMP8_256x256 = ((1 << 14) | BIT(7)), BG_BMP8_512x256 = ((2 << 14) | BIT(7)), BG_BMP8_512x512 = ((3 << 14) | BIT(7)), BG_BMP8_1024x512 = BIT(14), BG_BMP8_512x1024 = 0, BG_BMP16_128x128 = ((0 << 14) | BIT(7) | BIT(2)), BG_BMP16_256x256 = ((1 << 14) | BIT(7) | BIT(2)), BG_BMP16_512x256 = ((2 << 14) | BIT(7) | BIT(2)), BG_BMP16_512x512 = ((3 << 14) | BIT(7) | BIT(2)), BG_MOSAIC_ON = (BIT(6)), BG_MOSAIC_OFF = (0), BG_PRIORITY_0 = (0), BG_PRIORITY_1 = (1), BG_PRIORITY_2 = (2), BG_PRIORITY_3 = (3), BG_WRAP_OFF = (0), BG_WRAP_ON = (1 << 13), BG_PALETTE_SLOT0 = 0, BG_PALETTE_SLOT1 = 0, BG_PALETTE_SLOT2 = BIT(13), BG_PALETTE_SLOT3 = BIT(13), BG_COLOR_256 = 0x80, BG_COLOR_16 = 0x00 } |
Bit defines for the background control registers. [詳細] |
Background related register definitions and bit defines.
enum BackgroundControl |
Bit defines for the background control registers.