llvm-mos-sdk
Public Attributes | List of all members
DMAAudioChannel Struct Reference

DMA audio channel structure. More...

#include <_dmagic.h>

Public Attributes

uint8_t enable
 Enable Audio DMA channel X (offset 0x00) More...
 
union {
   struct {
      uint8_t   baddr_lsb
 Base address LSB (offset 0x01) More...
 
      uint8_t   baddr_msb
 Base address MSB (offset 0x02) More...
 
      uint8_t   baddr_mb
 Base address middle byte (offset 0x03) More...
 
   } 
 
}; 
 
union {
   struct {
      uint8_t   freq_lsb
 Frequency LSB (offset 0x04) More...
 
      uint8_t   freq_mb
 Frequency middle byte (offset 0x05) More...
 
      uint8_t   freq_msb
 Frequency MSB (offset 0x06) More...
 
   } 
 
}; 
 
union {
   struct {
      uint8_t   taddr_lsb
 Top address LSB (offset 0x07) More...
 
      uint8_t   taddr_msb
 Top address MSB (offset 0x08) More...
 
   } 
 
}; 
 
uint8_t volume
 playback volume (offset 0x09) More...
 
union {
   struct {
      uint8_t   curaddr_lsb
 Current address LSB (offset 0x0a) More...
 
      uint8_t   curaddr_mb
 Current address middle byte (offset 0x0b) More...
 
      uint8_t   curaddr_msb
 Current address MSB (offset 0x0c) More...
 
   } 
 
}; 
 
union {
   struct {
      uint8_t   tmraddr_lsb
 Timing counter LSB (offset 0x0d) More...
 
      uint8_t   tmraddr_mb
 Timing counter middle byte (offset 0x0e) More...
 
      uint8_t   tmraddr_msb
 Timing counter MSB (offset 0x0f) More...
 
   } 
 
}; 
 

Detailed Description

DMA audio channel structure.

Member Data Documentation

◆ @140

union { ... }

◆ @142

union { ... }

◆ @144

union { ... }

◆ @146

union { ... }

◆ @148

union { ... }

◆ baddr_lsb

uint8_t DMAAudioChannel::baddr_lsb

Base address LSB (offset 0x01)

◆ baddr_mb

uint8_t DMAAudioChannel::baddr_mb

Base address middle byte (offset 0x03)

◆ baddr_msb

uint8_t DMAAudioChannel::baddr_msb

Base address MSB (offset 0x02)

◆ curaddr_lsb

uint8_t DMAAudioChannel::curaddr_lsb

Current address LSB (offset 0x0a)

◆ curaddr_mb

uint8_t DMAAudioChannel::curaddr_mb

Current address middle byte (offset 0x0b)

◆ curaddr_msb

uint8_t DMAAudioChannel::curaddr_msb

Current address MSB (offset 0x0c)

◆ enable

uint8_t DMAAudioChannel::enable

Enable Audio DMA channel X (offset 0x00)

◆ freq_lsb

uint8_t DMAAudioChannel::freq_lsb

Frequency LSB (offset 0x04)

◆ freq_mb

uint8_t DMAAudioChannel::freq_mb

Frequency middle byte (offset 0x05)

◆ freq_msb

uint8_t DMAAudioChannel::freq_msb

Frequency MSB (offset 0x06)

◆ taddr_lsb

uint8_t DMAAudioChannel::taddr_lsb

Top address LSB (offset 0x07)

◆ taddr_msb

uint8_t DMAAudioChannel::taddr_msb

Top address MSB (offset 0x08)

◆ tmraddr_lsb

uint8_t DMAAudioChannel::tmraddr_lsb

Timing counter LSB (offset 0x0d)

◆ tmraddr_mb

uint8_t DMAAudioChannel::tmraddr_mb

Timing counter middle byte (offset 0x0e)

◆ tmraddr_msb

uint8_t DMAAudioChannel::tmraddr_msb

Timing counter MSB (offset 0x0f)

◆ volume

uint8_t DMAAudioChannel::volume

playback volume (offset 0x09)


The documentation for this struct was generated from the following file: