forked from dhansel/Altair8800
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfilesys.h
31 lines (20 loc) · 787 Bytes
/
filesys.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#ifndef FILESYS
#define FILESYS
#include <Arduino.h>
byte filesys_open_write(char nm1, char nm2);
byte filesys_open_read(char nm1, char nm2);
bool filesys_write_char(byte fid, byte c);
bool filesys_write_data(byte fid, const void *data, uint16_t len);
bool filesys_eof(byte fid);
bool filesys_is_write(byte fid);
bool filesys_is_read(byte fid);
bool filesys_read_char(byte fid, byte *c);
uint16_t filesys_read_data(byte fid, void *data, uint16_t len);
void filesys_close(byte fid);
void filesys_delete(char nm1, char nm2);
bool filesys_write_file(char nm1, char nm2, const void *data, uint16_t len);
uint16_t filesys_read_file(char nm1, char nm2, void *data, uint16_t len);
void filesys_print_dir();
void filesys_manage();
void filesys_setup();
#endif