Function FS Next Sector

From Uzebox Wiki
Jump to navigation Jump to search
Prototype

uint8_t FS_Next_Sector(sdc_struct_t* sds);

Description

Moves sector pointer forwards one sector.

Parameters
  • sds: SD data structure. The bufp field must point to a valid 512 byte buffer.
Returns

Zero on success, error code on failure.

Video Modes

All

Since

V.5.x.x bootloaders

Notes

Accesses the SD card. Supports fragmentation.

The error codes returned by this function:

  • 1: End of file or other error.

The function accesses the SD card on cluster boundaries to read the FAT, supporting fragmentation. It requires the buffer for this, so it could be overridden (when crossing a cluster boundary).