dRonin  adbada4
dRonin firmware
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
pios_streamfs.h
Go to the documentation of this file.
1 
11 /*
12  * This program is free software; you can redistribute it and/or modify
13  * it under the terms of the GNU General Public License as published by
14  * the Free Software Foundation; either version 3 of the License, or
15  * (at your option) any later version.
16  *
17  * This program is distributed in the hope that it will be useful, but
18  * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
19  * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
20  * for more details.
21  *
22  * You should have received a copy of the GNU General Public License along
23  * with this program; if not, see <http://www.gnu.org/licenses/>
24  */
25 
26 #ifndef PIOS_FLASHFS_STREAMFS_H_
27 #define PIOS_FLASHFS_STREAMFS_H_
28 
29 #include <stdint.h>
30 
31 /* fs_id here is actually the com driver ID, to avoid having to do too
32  * much bookkeepin' */
33 int32_t PIOS_STREAMFS_Format(uintptr_t fs_id);
34 int32_t PIOS_STREAMFS_OpenWrite(uintptr_t fs_id);
35 int32_t PIOS_STREAMFS_OpenRead(uintptr_t fs_id, uint32_t file_id);
36 int32_t PIOS_STREAMFS_MinFileId(uintptr_t fs_id);
37 int32_t PIOS_STREAMFS_MaxFileId(uintptr_t fs_id);
38 int32_t PIOS_STREAMFS_Close(uintptr_t fs_id);
39 int32_t PIOS_STREAMFS_Read(uintptr_t fs_id, uint8_t *data, uint32_t len);
40 
41 
42 #endif /* PIOS_FLASHFS_STREAMFS_H_ */
int32_t PIOS_STREAMFS_OpenRead(uintptr_t fs_id, uint32_t file_id)
int32_t PIOS_STREAMFS_Close(uintptr_t fs_id)
int32_t PIOS_STREAMFS_MinFileId(uintptr_t fs_id)
uint8_t data[XFER_BYTES_PER_PACKET]
Definition: bl_messages.h:129
int32_t PIOS_STREAMFS_OpenWrite(uintptr_t fs_id)
int32_t PIOS_STREAMFS_Read(uintptr_t fs_id, uint8_t *data, uint32_t len)
uint32_t file_id
int32_t PIOS_STREAMFS_Format(uintptr_t fs_id)
Erases all filesystem arenas and activate the first arena.
int32_t PIOS_STREAMFS_MaxFileId(uintptr_t fs_id)