libmsx
C library for MSX
|
Device interface for Konami SCC/SCC+ sound cartridge. More...
#include <stdint.h>
Go to the source code of this file.
Data Structures | |
struct | SCC_Waveform |
The structure of the SCC/SCC+ 32-byte waveform data register. More... | |
struct | SCC_Channel |
Device interface for a sound channel of SCC/SCC+ sound chip. More... | |
struct | SCC_Device |
Device interface for SCC/SCC+ sound chip. More... | |
struct | SCC |
SCC Handle. More... | |
Macros | |
#define | SCC_H_ |
Functions | |
uint8_t | SCC_inspect (uint8_t slot) |
MSX Inspect whether SCC/SCC+ is on the given slot. | |
uint8_t | SCC_find (struct SCC *scc) |
MSX Find SCC/SCC+ sound chip. | |
void | SCC_set_mode (struct SCC *scc, uint8_t mode) |
MSX Set the SCC handle to SCC compatible mode or SCC+ mode. | |
uint8_t | SCC_get_mode (struct SCC *scc) |
MSX Check which mode the SCC handle is set to. | |
void | SCC_enable (const struct SCC *scc) |
MSX Enable SCC/SCC+ sound chip. | |
void | SCC_disable (const struct SCC *scc) |
MSX Disable SCC/SCC+ sound chip. | |
Device interface for Konami SCC/SCC+ sound cartridge.
Example
The following code detects the Konami SCC/SCC+ sound chip and plays a triangular wave test tone if detected.
Definition in file scc.h.