Files of the Fat32Fs filesystem
Constructor
- Parameters
-
parent | the filesystem to which this file belongs |
miosix::Fat32File::~Fat32File |
( |
| ) |
|
FIL* miosix::Fat32File::fil |
( |
| ) |
|
|
inline |
- Returns
- the FatFs FIL object
int miosix::Fat32File::fstat |
( |
struct stat * |
pstat | ) |
const |
|
virtual |
Return file information.
- Parameters
-
pstat | pointer to stat struct |
- Returns
- 0 on success, or a negative number on failure
Implements miosix::FileBase.
int miosix::Fat32File::ioctl |
( |
int |
cmd, |
|
|
void * |
arg |
|
) |
| |
|
virtual |
Perform various operations on a file descriptor
- Parameters
-
cmd | specifies the operation to perform |
arg | optional argument that some operation require |
- Returns
- the exact return value depends on CMD, -1 is returned on error
Reimplemented from miosix::FileBase.
off_t miosix::Fat32File::lseek |
( |
off_t |
pos, |
|
|
int |
whence |
|
) |
| |
|
virtual |
Move file pointer, if the file supports random-access.
- Parameters
-
pos | offset to sum to the beginning of the file, current position or end of file, depending on whence |
whence | SEEK_SET, SEEK_CUR or SEEK_END |
- Returns
- the offset from the beginning of the file if the operation completed, or a negative number in case of errors
Implements miosix::FileBase.
ssize_t miosix::Fat32File::read |
( |
void * |
data, |
|
|
size_t |
len |
|
) |
| |
|
virtual |
Read data from the file, if the file supports reading.
- Parameters
-
data | buffer to store read data |
len | the number of bytes to read |
- Returns
- the number of read characters, or a negative number in case of errors
Implements miosix::FileBase.
void miosix::Fat32File::setInode |
( |
int |
inode | ) |
|
|
inline |
ssize_t miosix::Fat32File::write |
( |
const void * |
data, |
|
|
size_t |
len |
|
) |
| |
|
virtual |
Write data to the file, if the file supports writing.
- Parameters
-
data | the data to write |
len | the number of bytes to write |
- Returns
- the number of written characters, or a negative number in case of errors
Implements miosix::FileBase.
The documentation for this class was generated from the following file: