PancakeNESEmu
A homebrewed NES Emulator written in C
Loading...
Searching...
No Matches
types.h
Go to the documentation of this file.
1#ifndef types_h
2#define types_h
3
4#include <stdint.h>
5
6typedef uint8_t byte;
7typedef uint16_t two_bytes_word;
8typedef uint32_t four_bytes_word;
9typedef uint64_t eight_bytes_word;
10
11typedef byte data;
13
14typedef int16_t sbuffer_t;
15typedef byte errcode_t;
16
17typedef float duty_cycle_t;
18
19typedef enum : byte {
20 SQUARE = 0,
24} wave_t;
25
26#endif // !types_h
two_bytes_word address
Definition of the address format used by the CPU.
Definition types.h:12
uint16_t two_bytes_word
Nickname for uint16_t.
Definition types.h:7
byte errcode_t
Definition of the error code type used by some function.
Definition types.h:15
uint64_t eight_bytes_word
Nickname for uint64_t.
Definition types.h:9
uint32_t four_bytes_word
Nickname for uint32_t.
Definition types.h:8
float duty_cycle_t
Definition of the duty cycle used by the APU.
Definition types.h:17
byte data
Definition of the data format used by the CPU.
Definition types.h:11
uint8_t byte
Nickname for uint8_t.
Definition types.h:6
int16_t sbuffer_t
Definition of the sound buffer type used by the APU.
Definition types.h:14
wave_t
Definition types.h:19
@ TRIANGLE
Triangle waveform.
Definition types.h:21
@ SQUARE
Rectangle/Square waveform (based on duty cycle)
Definition types.h:20
@ WHITE_NOISE
White noise waveform.
Definition types.h:22
@ METAL_NOISE
Metal noise waveform.
Definition types.h:23