summaryrefslogtreecommitdiff
path: root/include/usbh_hubbed.h
diff options
context:
space:
mode:
authorAmir Hammad <amir.hammad@hotmail.com>2015-04-01 18:29:32 +0200
committerAmir Hammad <amir.hammad@hotmail.com>2015-04-01 18:29:32 +0200
commite35c1e9fc68dbbf870cbfd1213f0194869bcb14d (patch)
tree3507c158aad04b9da60a3c5e617fa7984341a5c8 /include/usbh_hubbed.h
parente9c2632a199e26e9dac54984bf5e2b25bf13738c (diff)
downloadsecure-hid-e35c1e9fc68dbbf870cbfd1213f0194869bcb14d.tar.gz
secure-hid-e35c1e9fc68dbbf870cbfd1213f0194869bcb14d.tar.bz2
secure-hid-e35c1e9fc68dbbf870cbfd1213f0194869bcb14d.zip
poll(): refactor every poll argument t_us and tflp -> time_curr_us
added comment to usbh_hubbed.h Signed-off-by: Amir Hammad <amir.hammad@hotmail.com>
Diffstat (limited to 'include/usbh_hubbed.h')
-rw-r--r--include/usbh_hubbed.h13
1 files changed, 11 insertions, 2 deletions
diff --git a/include/usbh_hubbed.h b/include/usbh_hubbed.h
index 00d3b99..1b6b49a 100644
--- a/include/usbh_hubbed.h
+++ b/include/usbh_hubbed.h
@@ -62,14 +62,23 @@ typedef struct _usbh_dev_driver_info usbh_dev_driver_info_t;
struct _usbh_dev_driver {
bool (*analyze_descriptor)(void *drv, void *descriptor);
void *(*init)(void *usbh_dev);
- void (*poll)(void *drvdata, uint32_t t_us);
+ void (*poll)(void *drvdata, uint32_t time_curr_us);
void (*remove)(void *drvdata);
const usbh_dev_driver_info_t * const info;
};
typedef struct _usbh_dev_driver usbh_dev_driver_t;
void usbh_init(const void *drivers[], const usbh_dev_driver_t * const device_drivers[]);
-void usbh_poll(uint32_t t_us);
+
+/**
+ * \brief usbh_poll
+ * \param time_curr_us - use monotically rising time
+ *
+ * time_curr_us:
+ * * can overflow, in time of this writing, after 1s)
+ * * unit is microseconds
+ */
+void usbh_poll(uint32_t time_curr_us);
END_DECLS