|
KallistiOS git master
Independent SDK for the Sega Dreamcast
|
API for features of the Memory Card Maple Function More...
Functions | |
| int | vmu_block_read (maple_device_t *dev, uint16_t blocknum, uint8_t *buffer) |
| Read a block from a memory card. | |
| int | vmu_block_write (maple_device_t *dev, uint16_t blocknum, const uint8_t *buffer) |
| Write a block to a memory card. | |
API for features of the Memory Card Maple Function
The Memory Card Maple function is for exposing a low-level, block-based API that allows you to read from and write to random blocks within the memory card's filesystem.
/vmu/ root directory to operate on VMU data. | int vmu_block_read | ( | maple_device_t * | dev, |
| uint16_t | blocknum, | ||
| uint8_t * | buffer ) |
Read a block from a memory card.
This function performs a low-level raw block read from a memory card.
| dev | The device to read from. |
| blocknum | The block number to read. |
| buffer | The buffer to read into (512 bytes). |
| MAPLE_EOK | On success. |
| MAPLE_ETIMEOUT | If the command timed out while blocking. |
| MAPLE_EFAIL | On errors other than timeout. |
| int vmu_block_write | ( | maple_device_t * | dev, |
| uint16_t | blocknum, | ||
| const uint8_t * | buffer ) |
Write a block to a memory card.
This function performs a low-level raw block write to a memory card.
| dev | The device to write to. |
| blocknum | The block number to write. |
| buffer | The buffer to write from (512 bytes). |
| MAPLE_EOK | On success. |
| MAPLE_ETIMEOUT | If the command timed out while blocking. |
| MAPLE_EFAIL | On errors other than timeout. |