SD.readSector

Name
SD.readSector - Read Partial Sector

Description

 * DRESULT SD.readSector( u8 *buff, u32 lba , u16 ofs , u16 cnt )


 * Read a partial sector from SD card

Syntax
SD.readSector( *buff, lba, ofs, cnt );


 * Parameters
 * buff - Pointer to the read buffer (NULL:Read bytes are forwarded to the stream)
 * lba - Sector number (LBA)
 * ofs - Byte offset to read from (0..511)
 * cnt - Number of bytes to read (ofs + cnt must be <= 512)


 * Returns/Output
 * DRESULT -
 * RES_OK - 0: Function succeeded
 * RES_ERROR - 1: Disk error
 * RES_NOTRDY - 2: Not ready
 * RES_PARER - 3: Invalid parameter