#ifndef FILE_H #define FILE_H #define STATUS_ERROR 1 #define STATUS_EOF 2 #define STATUS_READY 4 #define COMMAND_OPEN 1 #define COMMAND_CLOSE 2 #define COMMAND_SELECT_IN 3 #define COMMAND_SELECT_OUT 4 #define COMMAND_READ 5 #define COMMAND_WRITE 6 #define COMMAND_RESET 7 int openFile(int fd, const char *path); int closeFile(int fd); int readByte(const int fd, int *data); int writeByte(const int fd, const int data); #endif // FILE_H