COSA
An Object-Oriented Platform for Arduino Programming
FS.hh File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Enumerations

enum  {
  O_READ = 0X01, O_RDONLY = O_READ, O_WRITE = 0X02, O_WRONLY = O_WRITE,
  O_RDWR = O_READ | O_WRITE, O_APPEND = 0X04, O_SYNC = 0X08, O_CREAT = 0X10,
  O_EXCL = 0X20, O_TRUNC = 0X40
}
 
enum  { SEEK_SET = 0, SEEK_CUR = 1, SEEK_END = 2 }
 

Detailed Description

Version
1.0

License

Copyright (C) 2014-2015, Mikael Patel.

This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version.

This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.

This file is part of the Arduino Che Cosa project.

Definition in file FS.hh.

Enumeration Type Documentation

anonymous enum

File System file open modes; use one or many.

Enumerator
O_READ 

Open for reading.

O_RDONLY 

Same as O_READ.

O_WRITE 

Open for write.

O_WRONLY 

Same as O_WRITE.

O_RDWR 

Open for reading and writing.

O_APPEND 

The file offset shall be set to the end of the file prior to each write.

O_SYNC 

Synchronous writes.

O_CREAT 

Create the file if nonexistent.

O_EXCL 

If O_CREAT and O_EXCL are set, open() shall fail if the file exists.

O_TRUNC 

Truncate the file to zero length.

Definition at line 27 of file FS.hh.

anonymous enum

File System file seek mode; use one of.

Enumerator
SEEK_SET 

Absolute position.

SEEK_CUR 

Relative to current position.

SEEK_END 

Relative to end of file.

Definition at line 46 of file FS.hh.