PancakeNESEmu
A homebrewed NES Emulator written in C
Loading...
Searching...
No Matches
types.h File Reference
#include <stdint.h>
Include dependency graph for types.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Typedefs

typedef uint8_t byte
 Nickname for uint8_t.
 
typedef uint16_t two_bytes_word
 Nickname for uint16_t.
 
typedef uint32_t four_bytes_word
 Nickname for uint32_t.
 
typedef uint64_t eight_bytes_word
 Nickname for uint64_t.
 
typedef byte data
 Definition of the data format used by the CPU.
 
typedef two_bytes_word address
 Definition of the address format used by the CPU.
 
typedef int16_t sbuffer_t
 Definition of the sound buffer type used by the APU.
 
typedef byte errcode_t
 Definition of the error code type used by some function.
 
typedef float duty_cycle_t
 Definition of the duty cycle used by the APU.
 

Enumerations

enum  wave_t : byte { SQUARE = 0 , TRIANGLE = 1 , WHITE_NOISE = 2 , METAL_NOISE = 3 }
 

Typedef Documentation

◆ address

Definition of the address format used by the CPU.

Definition at line 12 of file types.h.

◆ byte

typedef uint8_t byte

Nickname for uint8_t.

Definition at line 6 of file types.h.

◆ data

typedef byte data

Definition of the data format used by the CPU.

Definition at line 11 of file types.h.

◆ duty_cycle_t

typedef float duty_cycle_t

Definition of the duty cycle used by the APU.

Definition at line 17 of file types.h.

◆ eight_bytes_word

typedef uint64_t eight_bytes_word

Nickname for uint64_t.

Definition at line 9 of file types.h.

◆ errcode_t

typedef byte errcode_t

Definition of the error code type used by some function.

Definition at line 15 of file types.h.

◆ four_bytes_word

typedef uint32_t four_bytes_word

Nickname for uint32_t.

Definition at line 8 of file types.h.

◆ sbuffer_t

typedef int16_t sbuffer_t

Definition of the sound buffer type used by the APU.

Definition at line 14 of file types.h.

◆ two_bytes_word

typedef uint16_t two_bytes_word

Nickname for uint16_t.

Definition at line 7 of file types.h.

Enumeration Type Documentation

◆ wave_t

enum wave_t : byte
Enumerator
SQUARE 

Rectangle/Square waveform (based on duty cycle)

TRIANGLE 

Triangle waveform.

WHITE_NOISE 

White noise waveform.

METAL_NOISE 

Metal noise waveform.

Definition at line 19 of file types.h.

19 : byte {
20 SQUARE = 0,
21 TRIANGLE = 1,
22 WHITE_NOISE = 2,
23 METAL_NOISE = 3,
24} wave_t;
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