Expand description
Registers for the Versatile Embedded Retro Adapter (VERA) graphics chip.
VERA consists of:
- Video generator featuring:
- Multiple output formats (VGA, NTSC Composite, NTSC S-Video, RGB video) at a fixed resolution of 640x480 at 60Hz
- Support for two layers, both supporting either tile or bitmap mode.
- Support for up to 128 sprites.
- Embedded video RAM of 128kB.
- Palette with 256 colors selected from a total range of 4096 colors.
- 16-channel Programmable Sound Generator with multiple waveforms (Pulse, Sawtooth, Triangle, Noise)
- High quality PCM audio playback from 4 kB FIFO buffer with up to 48kHz 16-bit stereo sound.
- SPI controller for SecureDigital storage.
- VERA Reference Guide
Structs§
- Audio
- VERA audio
- Control
Flags - Flags for the
VersatileEmbeddedRetroAdapter::control(CTRL) register at offset 0x05 - Display0
- Active when Display Composer (DC) SEL=0
- Display1
- Active when Display Composer (DC)
SEL=1 - Layer
- Video layer registers
- SPIController
- SPI controller connected to the SD card connector
- Versatile
Embedded Retro Adapter - Versatile Embedded Retro Adapter (VERA) graphics chip
- Video
Flags - Flags for Display Composer (DC) VIDEO at offset 0x09
Constants§
- DEC_0
- DEC_2
- DEC_4
- DEC_8
- DEC_16
- DEC_32
- DEC_40
- DEC_64
- DEC_80
- DEC_128
- DEC_160
- DEC_256
- DEC_320
- DEC_512
- DEC_640
- INC_0
- INC_2
- INC_4
- INC_8
- INC_16
- INC_32
- INC_40
- INC_64
- INC_80
- INC_128
- INC_160
- INC_256
- INC_320
- INC_512
- INC_640
- IRQ_
AUDIO_ LOW - IRQ_
RASTER - IRQ_
SPR_ COLL - IRQ_
VSYNC - PALETTE
- Palette, 0x1FA00 - 0x1FBFF
- PSG_
REGISTERS - PSG registers, 0x1F9C0 - 0x1F9FF
- SPRITE_
ATTRIBUTES - Sprite attributes, 0x1FC00 - 0x1FFFF
- VIDEOMODE_
20X15 - VIDEOMODE_
20X30 - VIDEOMODE_
40COL - VIDEOMODE_
40X15 - VIDEOMODE_
40X30 - VIDEOMODE_
40X60 - VIDEOMODE_
80COL - VIDEOMODE_
80X30 - VIDEOMODE_
80X60 - VIDEOMODE_
320X240 - VIDEOMODE_
SWAP - VIDEO_
RAM - VRAM, 0x00000 - 0x1F9BF
Functions§
- convert_
stride - Convert stride to register value.