SdBaseFile class.
More...
Go to the source code of this file.
|
static uint16_t | FAT_DATE (uint16_t year, uint8_t month, uint8_t day) |
|
static uint16_t | FAT_YEAR (uint16_t fatDate) |
|
static uint8_t | FAT_MONTH (uint16_t fatDate) |
|
static uint8_t | FAT_DAY (uint16_t fatDate) |
|
static uint16_t | FAT_TIME (uint8_t hour, uint8_t minute, uint8_t second) |
|
static uint8_t | FAT_HOUR (uint16_t fatTime) |
|
static uint8_t | FAT_MINUTE (uint16_t fatTime) |
|
static uint8_t | FAT_SECOND (uint16_t fatTime) |
|
◆ FAT_DATE()
static uint16_t FAT_DATE |
( |
uint16_t |
year, |
|
|
uint8_t |
month, |
|
|
uint8_t |
day |
|
) |
| |
|
inlinestatic |
date field for FAT directory entry
- Parameters
-
[in] | year | [1980,2107] |
[in] | month | [1,12] |
[in] | day | [1,31] |
- Returns
- Packed date for dir_t entry.
◆ FAT_DAY()
static uint8_t FAT_DAY |
( |
uint16_t |
fatDate | ) |
|
|
inlinestatic |
day part of FAT directory date field
- Parameters
-
[in] | fatDate | Date in packed dir format. |
- Returns
- Extracted day [1,31]
◆ FAT_HOUR()
static uint8_t FAT_HOUR |
( |
uint16_t |
fatTime | ) |
|
|
inlinestatic |
hour part of FAT directory time field
- Parameters
-
[in] | fatTime | Time in packed dir format. |
- Returns
- Extracted hour [0,23]
◆ FAT_MINUTE()
static uint8_t FAT_MINUTE |
( |
uint16_t |
fatTime | ) |
|
|
inlinestatic |
minute part of FAT directory time field
- Parameters
-
[in] | fatTime | Time in packed dir format. |
- Returns
- Extracted minute [0,59]
◆ FAT_MONTH()
static uint8_t FAT_MONTH |
( |
uint16_t |
fatDate | ) |
|
|
inlinestatic |
month part of FAT directory date field
- Parameters
-
[in] | fatDate | Date in packed dir format. |
- Returns
- Extracted month [1,12]
◆ FAT_SECOND()
static uint8_t FAT_SECOND |
( |
uint16_t |
fatTime | ) |
|
|
inlinestatic |
second part of FAT directory time field Note second/2 is stored in packed time.
- Parameters
-
[in] | fatTime | Time in packed dir format. |
- Returns
- Extracted second [0,58]
◆ FAT_TIME()
static uint16_t FAT_TIME |
( |
uint8_t |
hour, |
|
|
uint8_t |
minute, |
|
|
uint8_t |
second |
|
) |
| |
|
inlinestatic |
time field for FAT directory entry
- Parameters
-
[in] | hour | [0,23] |
[in] | minute | [0,59] |
[in] | second | [0,59] |
- Returns
- Packed time for dir_t entry.
◆ FAT_YEAR()
static uint16_t FAT_YEAR |
( |
uint16_t |
fatDate | ) |
|
|
inlinestatic |
year part of FAT directory date field
- Parameters
-
[in] | fatDate | Date in packed dir format. |
- Returns
- Extracted year [1980,2107]
◆ FAT_DEFAULT_DATE
uint16_t const FAT_DEFAULT_DATE = ((2000 - 1980) << 9) | (1 << 5) | 1 |
Default date for file timestamps is 1 Jan 2000
◆ FAT_DEFAULT_TIME
uint16_t const FAT_DEFAULT_TIME = (1 << 11) |
Default time for file timestamp is 1 am
◆ FAT_FILE_TYPE_CLOSED
uint8_t const FAT_FILE_TYPE_CLOSED = 0 |
This file has not been opened.
◆ FAT_FILE_TYPE_MIN_DIR
Test value for directory type
◆ FAT_FILE_TYPE_NORMAL
uint8_t const FAT_FILE_TYPE_NORMAL = 1 |
◆ FAT_FILE_TYPE_ROOT32
uint8_t const FAT_FILE_TYPE_ROOT32 = 3 |
◆ FAT_FILE_TYPE_ROOT_FIXED
uint8_t const FAT_FILE_TYPE_ROOT_FIXED = 2 |
A FAT12 or FAT16 root directory
◆ FAT_FILE_TYPE_SUBDIR
uint8_t const FAT_FILE_TYPE_SUBDIR = 4 |
◆ LS_DATE
uint8_t const LS_DATE = 1 |
ls() flag to print modify date
◆ LS_R
ls() flag for recursive list of subdirectories
◆ LS_SIZE
uint8_t const LS_SIZE = 2 |
ls() flag to print file size
◆ O_ACCMODE
open() oflag mask for access modes
◆ O_APPEND
uint8_t const O_APPEND = 0X04 |
The file offset shall be set to the end of the file prior to each write.
◆ O_AT_END
uint8_t const O_AT_END = 0X20 |
set the initial position at the end of the file
◆ O_CREAT
uint8_t const O_CREAT = 0X40 |
create the file if nonexistent
◆ O_EXCL
uint8_t const O_EXCL = 0X80 |
If O_CREAT and O_EXCL are set, open() shall fail if the file exists
◆ O_RDONLY
uint8_t const O_RDONLY = O_READ |
open() oflag - same as O_IN
◆ O_RDWR
open() oflag for reading and writing
◆ O_READ
uint8_t const O_READ = 0X01 |
◆ O_SYNC
uint8_t const O_SYNC = 0X08 |
synchronous writes - call sync() after each write
◆ O_TRUNC
uint8_t const O_TRUNC = 0X10 |
truncate the file to zero length
◆ O_WRITE
uint8_t const O_WRITE = 0X02 |
◆ O_WRONLY
open() oflag - same as O_WRITE
◆ T_ACCESS
uint8_t const T_ACCESS = 1 |
set the file's last access date
◆ T_CREATE
uint8_t const T_CREATE = 2 |
set the file's creation date and time
◆ T_WRITE
uint8_t const T_WRITE = 4 |
Set the file's write date and time