|
N64FlashcartMenu
|
Flashcart utility functions implementation. More...
Functions | |
| void | pi_dma_read_data (void *src, void *dst, size_t length) |
| Perform a DMA read operation from the PI (Peripheral Interface). | |
| void | pi_dma_write_data (void *src, void *dst, size_t length) |
| Perform a DMA write operation to the PI (Peripheral Interface). | |
| void | fatfs_fix_file_size (FIL *fil) |
| Align the file size to the SD sector size to prevent partial sector load. | |
| bool | fatfs_get_file_sectors (char *path, uint32_t *address, address_type_t type, uint32_t max_sectors) |
| Get the file sectors in the FAT filesystem. | |
Flashcart utility functions implementation.
| void pi_dma_read_data | ( | void * | src, |
| void * | dst, | ||
| size_t | length ) |
Perform a DMA read operation from the PI (Peripheral Interface).
| src | Source address. |
| dst | Destination address. |
| length | Length of data to read. |
| void pi_dma_write_data | ( | void * | src, |
| void * | dst, | ||
| size_t | length ) |
Perform a DMA write operation to the PI (Peripheral Interface).
| src | Source address. |
| dst | Destination address. |
| length | Length of data to write. |
| void fatfs_fix_file_size | ( | FIL * | fil | ) |
Align the file size to the SD sector size to prevent partial sector load.
Fix the file size in the FAT filesystem.
| fil | Pointer to the file object. |
| bool fatfs_get_file_sectors | ( | char * | path, |
| uint32_t * | address, | ||
| address_type_t | type, | ||
| uint32_t | max_sectors ) |
Get the file sectors in the FAT filesystem.
| path | Path to the file. |
| address | Pointer to store the address of the file sectors. |
| type | The type of address (memory or PI). |
| max_sectors | Maximum number of sectors. |