diff options
author | Andrew Duggan <aduggan@synaptics.com> | 2014-04-29 13:34:42 -0700 |
---|---|---|
committer | Andrew Duggan <aduggan@synaptics.com> | 2014-04-29 13:34:42 -0700 |
commit | e9a5cd0172ce96168a9431531d259b677f331aa6 (patch) | |
tree | b210ba77d0deacecd5288d661de20e6c7efe51af /rmidevice/rmidevice.h | |
parent | d02a0b030911951257e354fa82ce967bc4e51f9f (diff) | |
download | rmi4utils-e9a5cd0172ce96168a9431531d259b677f331aa6.tar.gz |
Add additional commands to rmihidtool and allow them to be set from the command line.
Diffstat (limited to 'rmidevice/rmidevice.h')
-rw-r--r-- | rmidevice/rmidevice.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/rmidevice/rmidevice.h b/rmidevice/rmidevice.h index 5191790..e347f80 100644 --- a/rmidevice/rmidevice.h +++ b/rmidevice/rmidevice.h @@ -39,7 +39,7 @@ public: virtual int SetMode(int mode) { return -1; /* Unsupported */ } virtual int WaitForAttention(struct timeval * timeout = NULL, int *sources = NULL) = 0; virtual int GetAttentionReport(struct timeval * timeout, int *sources, unsigned char *buf, - int *len) + unsigned int *len) { return -1; /* Unsupported */ } virtual void Close() = 0; virtual void Cancel() { m_bCancel = true; } @@ -54,6 +54,7 @@ public: int Reset(); bool GetFunction(RMIFunction &func, int functionNumber); + void PrintFunctions(); void SetBytesPerReadRequest(int bytes) { m_bytesPerReadRequest = bytes; } @@ -87,7 +88,8 @@ protected: int m_page; }; +/* Utility Functions */ long long diff_time(struct timespec *start, struct timespec *end); int Sleep(int ms); - +void print_buffer(const unsigned char *buf, unsigned int len); #endif /* _RMIDEVICE_H_ */
\ No newline at end of file |