libdragon
Data Structures | Macros | Functions
mempak.h File Reference

Controller Pak Filesystem Routines. More...

Go to the source code of this file.

Data Structures

struct  entry_structure_t
 Structure representing a save entry on a Controller Pak. More...
 

Macros

#define MEMPAK_BLOCK_SIZE   256
 Size in bytes of a Controller Pak block.
 

Functions

int read_mempak_sector (int controller, int sector, uint8_t *sector_data)
 Read a sector from a Controller Pak. More...
 
int write_mempak_sector (int controller, int sector, uint8_t *sector_data)
 Write a sector to a Controller Pak. More...
 
int validate_mempak (int controller)
 Return whether a Controller Pak is valid. More...
 
int get_mempak_free_space (int controller)
 Return the number of free blocks on a Controller Pak. More...
 
int get_mempak_entry (int controller, int entry, entry_structure_t *entry_data)
 Read an entry on a Controller Pak. More...
 
int format_mempak (int controller)
 Format a Controller Pak. More...
 
int read_mempak_entry_data (int controller, entry_structure_t *entry, uint8_t *data)
 Read the data associated with an entry on a Controller Pak. More...
 
int write_mempak_entry_data (int controller, entry_structure_t *entry, uint8_t *data)
 Write associated data to a Controller Pak entry. More...
 
int delete_mempak_entry (int controller, entry_structure_t *entry)
 Delete a Controller Pak entry and associated data. More...
 

Detailed Description

Controller Pak Filesystem Routines.