FAT16/FAT32 file with Print.  
 More...
#include <SdFat.h>
|  | 
|  | SdFile (const char *path, oflag_t oflag) | 
|  | 
| size_t | write (uint8_t b) | 
|  | 
FAT16/FAT32 file with Print. 
◆ SdFile()
  
  | 
        
          | SdFile::SdFile | ( | const char * | path, |  
          |  |  | oflag_t | oflag |  
          |  | ) |  |  |  | inline | 
 
Create an open SdFile. 
- Parameters
- 
  
    | [in] | path | path for file. |  | [in] | oflag | open flags. |  
 
 
 
◆ dateTimeCallback()
  
  | 
        
          | static void SdFile::dateTimeCallback | ( | void(*)(uint16_t *date, uint16_t *time) | dateTime | ) |  |  | inlinestatic | 
 
Set the date/time callback function
- Parameters
- 
  
    | [in] | dateTime | The user's call back function. The callback function is of the form: |  
 
void dateTime(uint16_t* date, uint16_t* time) {
  uint16_t year;
  uint8_t month, day, hour, minute, second;
  
  
  *date = FAT_DATE(year, month, day);
  
  *time = FAT_TIME(hour, minute, second);
}
Sets the function that is called when a file is created or when a file's directory entry is modified by sync(). All timestamps, access, creation, and modify, are set when a file is created. sync() maintains the last access date and last modify date/time. 
 
 
◆ dateTimeCallbackCancel()
  
  | 
        
          | static void SdFile::dateTimeCallbackCancel | ( |  | ) |  |  | inlinestatic | 
 
Cancel the date/time callback function. 
 
 
◆ write()
  
  | 
        
          | size_t PrintFile< SdBaseFile  >::write | ( | uint8_t | b | ) |  |  | inlineinherited | 
 
Write a single byte. 
- Parameters
- 
  
  
- Returns
- one for success. 
 
 
The documentation for this class was generated from the following file:
- ArduinoSdFat/libraries/SdFat/src/SdFat.h