Module vera

Module vera 

Source
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
ControlFlags
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
VersatileEmbeddedRetroAdapter
Versatile Embedded Retro Adapter (VERA) graphics chip
VideoFlags
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.

Unions§

DisplayComposer