# modules/genesis/genesis.h File Reference

## Data Structures
union | opn2_operator_t
union | opn2_channel_t
union | opn2_chip_t
union | psg_square_t
union | psg_noise_t
union | psg_chip_t
union | genesis_board_t
union | genesis_t
## Defines
#define | GENESIS_COUNT 1
#define | GENESIS_OPN2_WRITETIMEOUT 160
#define | GENESIS_PSG_WRITETIMEOUT 12
#define | GENESIS_RESETTIMEOUTUS 1000
## Functions
void | Genesis_Init (void)
void | Genesis_OPN2Write (u8 board, u8 addrhi, u8 address, u8 data)
void | Genesis_PSGWrite (u8 board, u8 data)
bool | Genesis_CheckOPN2Busy (u8 board)
bool | Genesis_CheckPSGBusy (u8 board)
void | Genesis_Reset (u8 board)
void | Genesis_WriteBoardBits (u8 board)
## Variables
genesis_t | genesis [GENESIS_COUNT]

## Define Documentation

#define GENESIS_COUNT 1

#define GENESIS_OPN2_WRITETIMEOUT 160

#define GENESIS_PSG_WRITETIMEOUT 12

#define GENESIS_RESETTIMEOUTUS 1000

## Function Documentation

bool Genesis_CheckOPN2Busy | ( | u8 | board | ) |

Here is the call graph for this function:

bool Genesis_CheckPSGBusy | ( | u8 | board | ) |

Here is the call graph for this function:

void Genesis_Init | ( | void |  | ) |

Here is the call graph for this function:

void Genesis_OPN2Write | ( | u8 | board,
|  | u8 | addrhi,
|  | u8 | address,
|  | u8 | data |
| ) |  |  |

Here is the call graph for this function:

void Genesis_PSGWrite | ( | u8 | board,
|  | u8 | data |
| ) |  |  |

Here is the call graph for this function:

void Genesis_Reset | ( | u8 | board | ) |

Here is the call graph for this function:

void Genesis_WriteBoardBits | ( | u8 | board | ) |

Here is the call graph for this function:

## Variable Documentation

genesis_t genesis[GENESIS_COUNT]