Low level disk interface.
More...
Low level disk interface.
|
| void | copy_al2un (unsigned char *dst, const unsigned long *src, int count) |
| | Copy aligned to unaligned. More...
|
| |
| void | copy_un2al (unsigned long *dst, const unsigned char *src, int count) |
| | Copy unaligned to aligned. More...
|
| |
|
|
#define | CTRL_SYNC 0 |
| | Flush disk cache (for write functions)
|
| |
|
#define | GET_SECTOR_COUNT 1 |
| | Get media size (for only f_mkfs())
|
| |
|
#define | GET_SECTOR_SIZE 2 |
| | Get sector size (for multiple sector size (_MAX_SS >= 1024))
|
| |
|
#define | GET_BLOCK_SIZE 3 |
| | Get erase block size (for only f_mkfs())
|
| |
|
#define | CTRL_ERASE_SECTOR 4 |
| | Force erased a block of sectors (for only _USE_ERASE)
|
| |
◆ diskio_result_t
Results of Disk Functions.
| Enumerator |
|---|
| DISKIO_RES_OK | 0: Successful
|
| DISKIO_RES_ERROR | 1: R/W Error
|
| DISKIO_RES_WRPRT | 2: Write Protected
|
| DISKIO_RES_NOTRDY | 3: Not Ready
|
| DISKIO_RES_PARERR | 4: Invalid Parameter
|
Definition at line 51 of file diskio.h.
◆ diskio_sta_t
Disk Status Bits.
| Enumerator |
|---|
| DISKIO_STA_NOINIT | Drive not initialized.
|
| DISKIO_STA_NODISK | No medium in the drive.
|
| DISKIO_STA_PROTECT | Write protected.
|
Definition at line 62 of file diskio.h.
◆ copy_al2un()
| void copy_al2un |
( |
unsigned char * |
dst, |
|
|
const unsigned long * |
src, |
|
|
int |
count |
|
) |
| |
Copy aligned to unaligned.
- Parameters
-
| [out] | dst | Pointer to unaligned destination address |
| [in] | src | Pointer to aligned source address |
| [in] | count | Number of bytes to copy |
◆ copy_un2al()
| void copy_un2al |
( |
unsigned long * |
dst, |
|
|
const unsigned char * |
src, |
|
|
int |
count |
|
) |
| |
Copy unaligned to aligned.
- Parameters
-
| [out] | dst | Pointer to unaligned destination address |
| [in] | src | Pointer to aligned source address |
| [in] | count | Number of bytes to copy |