115 virtual int16
sysLog(floating_point sys_time,
const char* app,
const char* message, uint16 msg_size) {
return NO_ERROR;}
Wrapper to manage and convert time as timespce.
Definition Time.h:53
virtual ~OS()
Definition OS.h:54
virtual int16 delay(const clockwerk::Time &delay_time)
Delay the current task or thread.
Definition OS.h:89
virtual int16 yield()
Yield the current task or thread.
Definition OS.h:93
virtual uint32 readFile(int32 fd, char *buffer, int32 size)
Reads data from an open file.
Definition OS.h:152
virtual int32 openListenerSocket(const char *address, uint32 port)
Opens a listener socket to receive data.
Definition OS.h:187
virtual uint64 stopTimer()
Stop the system timer and return the result.
Definition OS.h:105
virtual int16 writeFile(int32 fd, const char *buffer, uint32 size)
Writes data to an open file.
Definition OS.h:144
virtual int32 openBroadcastSocket()
Opens a broadcast socket for sending data.
Definition OS.h:168
virtual int16 sysLog(floating_point sys_time, const char *app, const char *message, uint16 msg_size)
Write a system log (or terminal output, or file).
Definition OS.h:115
virtual int32 openFile(const char *filename, uint8 desc=file_descriptors_e::WRITE|file_descriptors_e::READ|file_descriptors_e::OPEN_ALWAYS)
Opens a file with the specified filename.
Definition OS.h:123
virtual int16 closeFile(int32 fd)
Close the file at the file descriptor.
Definition OS.h:136
virtual uint32 fileSize(int32 fd)
Opens a file with the specified filename, used for reading.
Definition OS.h:130
virtual int16 startup()
Initialize the os.
Definition OS.h:58
virtual clockwerk::Time systemTime()
Retrieves the system base time.
Definition OS.h:70
virtual uint32 readListenerSocket(int32 sock_fd, char *buffer, uint32 max_len)
Reads data from a listener socket.
Definition OS.h:196
virtual void startTimer()
Start a timer in the system.
Definition OS.h:101
virtual int16 flushFile(int32 fd)
Flushes any buffered data to the file associated with the given file descriptor.
Definition OS.h:157
virtual clockwerk::Time navigationTime()
Retrieves the system navigation time.
Definition OS.h:82
virtual int32 getSysLogFD()
Gets the file descriptor for the system log.
Definition OS.h:161
virtual int16 delayUntil(const clockwerk::Time &wake_time)
Delay the current task or thread until the specified time.
Definition OS.h:98
virtual int16 sendBroadcastSocket(int32 sock_fd, const char *address, uint32 port, const char *buffer, uint32 len)
Sends data over a broadcast socket.
Definition OS.h:179
#define NO_ERROR
Error code in the case where matrix math executed successfully.
Definition clockwerkerrors.h:34
#define ERROR_BUFFER_NOT_IMPLEMENTED
Variable to raise an error if an appropriate buffer is not in place.
Definition clockwerkerrors.h:126
Definition DeadReckon.cpp:20
file_descriptors_e
Options when opening files.
Definition OS.h:29
@ CREATE_ALWAYS
Create a new file, delete existing one if present.
Definition OS.h:34
@ OPEN_EXISTING
Open existing file, fails if doesn't exist.
Definition OS.h:32
@ OPEN_ALWAYS
Open file if exists, creates if not.
Definition OS.h:35
@ WRITE
Open file to Write.
Definition OS.h:30
@ CREATE_NEW
Create new file, fails if it exists.
Definition OS.h:33
@ OPEN_APPEND
Same as open always, writes at the end.
Definition OS.h:36
@ READ
Open file to Read.
Definition OS.h:31