-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathed64io_usb.h
executable file
·48 lines (33 loc) · 953 Bytes
/
ed64io_usb.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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
/*
* File: fifo.h
* Author: KRIK
*
* Created on 22 Àïðåëü 2011 ã., 20:46
*/
#ifndef _ED64IO_USB_H
#define _ED64IO_USB_H
#include <stdarg.h>
#include "ed64io_types.h"
int ed64AsyncLoggerFlush();
// for backwards compat
#define usbLoggerFlush ed64AsyncLoggerFlush
typedef struct UsbLoggerState {
int fifoWriteState;
int msgID;
int usbLoggerOffset;
int usbLoggerFlushing;
int usbLoggerOverflow;
int msgQSize;
int countDone;
int writeError;
} UsbLoggerState;
void usbLoggerGetState(UsbLoggerState* res);
int usbLoggerBufferRemaining();
void ed64Printf(const char* fmt, ...);
void ed64PrintfSync(const char* fmt, ...);
void ed64PrintfSync2(const char* fmt, ...);
void ed64VPrintfSync2(const char* fmt, va_list ap);
int ed64SendBinaryData(const void* data, u16 type, u16 length);
void* ed64PrintFuncImpl(void* str, register const char* buf, register int n);
void ed64ReplaceOSSyncPrintf(void);
#endif /* _ED64IO_USB_H */