Data Structures | Defines | Functions

lib_ines.h File Reference

#include "unif_types.h"
#include <stdio.h>
Include dependency graph for lib_ines.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  ines_header_t

Defines

#define INES_MIRROR   0x01
#define INES_SRAM   0x02
#define INES_TRAINER   0x04
#define INES_4SCREEN   0x08

Functions

UNIF_RETURN_CODE open_INES (const char *filename, FILE **file, UNIF_OPEN_MODE mode)
UNIF_RETURN_CODE close_INES (FILE *file)
UNIF_RETURN_CODE read_header_INES (FILE *file, ines_header_t *header)
UNIF_RETURN_CODE write_header_INES (FILE *file, const ines_header_t *header)
UNIF_RETURN_CODE check_header_INES (const ines_header_t *header)
UNIF_RETURN_CODE read_data_INES (FILE *file, uint8_t **dst, size_t len)

Define Documentation

#define INES_4SCREEN   0x08

Definition at line 27 of file lib_ines.h.

#define INES_MIRROR   0x01

Definition at line 24 of file lib_ines.h.

#define INES_SRAM   0x02

Definition at line 25 of file lib_ines.h.

#define INES_TRAINER   0x04

Definition at line 26 of file lib_ines.h.


Function Documentation

UNIF_RETURN_CODE check_header_INES ( const ines_header_t header )

Definition at line 93 of file lib_ines.c.

Here is the caller graph for this function:

UNIF_RETURN_CODE close_INES ( FILE *  file )

Definition at line 38 of file lib_ines.c.

Here is the caller graph for this function:

UNIF_RETURN_CODE open_INES ( const char *  filename,
FILE **  file,
UNIF_OPEN_MODE  mode 
)

Definition at line 17 of file lib_ines.c.

Here is the caller graph for this function:

UNIF_RETURN_CODE read_data_INES ( FILE *  file,
uint8_t **  dst,
size_t  len 
)

Definition at line 111 of file lib_ines.c.

Here is the caller graph for this function:

UNIF_RETURN_CODE read_header_INES ( FILE *  file,
ines_header_t header 
)

Definition at line 54 of file lib_ines.c.

Here is the caller graph for this function:

UNIF_RETURN_CODE write_header_INES ( FILE *  file,
const ines_header_t header 
)

Definition at line 74 of file lib_ines.c.

Here is the caller graph for this function:

 All Data Structures Files Functions Variables Enumerations Enumerator Defines