libmsx
C library for MSX
Loading...
Searching...
No Matches
OPLL_Device Struct Reference

Device interface for OPLL sound chip. More...

#include <opll.h>

Data Fields

void(*const write )(uint8_t reg, uint8_t value)
 MSX Function pointer to write data to a OPLL register.
 

Detailed Description

Device interface for OPLL sound chip.

Definition at line 49 of file opll.h.

Field Documentation

◆ write

void(*const OPLL_Device::write) (uint8_t reg, uint8_t value)

MSX Function pointer to write data to a OPLL register.

Parameters
regOPLL register number
  • 0x00..0x07 : INSTURUMENT DATA registers
  • 0x0e : RHYTHM control register
  • 0x0f : TEST register
  • 0x10..0x18 : F-Number (LSB 8 bits) registers
  • 0x20..0x28 : SUS/KEY/BLOCK/F-Number (MSB) registers
  • 0x30..0x38 : INSTRUMENT/VOLUME registers
valuea value to be written.
Postcondition
Interrupt is disabled.

Definition at line 64 of file opll.h.


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