Changeset 15d0046 in mainline for uspace/drv/bus/usb/usbhid/blink1/blink1.h
- Timestamp:
- 2014-09-12T13:22:33Z (10 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 9b20126
- Parents:
- 8db09e4 (diff), 105d8d6 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/bus/usb/usbhid/blink1/blink1.h
r8db09e4 r15d0046 27 27 */ 28 28 29 /** @addtogroup libmathmips6429 /** @addtogroup drvusbhid 30 30 * @{ 31 31 */ 32 32 /** @file 33 * USB blink(1) subdriver. 33 34 */ 34 35 35 #ifndef LIBMATH_mips64_MATH_H_36 #define LIBMATH_mips64_MATH_H_36 #ifndef USB_HID_BLINK1_H_ 37 #define USB_HID_BLINK1_H_ 37 38 38 #include <mathtypes.h> 39 #include <mod.h> 40 #include <trunc.h> 41 #include <trig.h> 39 #include <usb/dev/driver.h> 40 #include "../usbhid.h" 42 41 43 static inline double fmod(double dividend, double divisor) 44 { 45 return double_mod(dividend, divisor); 46 } 42 /** Container for USB blink(1) device. */ 43 typedef struct { 44 /** DDF blink(1) function */ 45 ddf_fun_t *fun; 46 47 /** USB HID device */ 48 usb_hid_dev_t *hid_dev; 49 } usb_blink1_t; 47 50 48 static inline double trunc(double val) 49 { 50 double_t arg; 51 arg.val = val; 52 53 double_t ret; 54 ret.data = trunc_float64(arg.data); 55 56 return ret.val; 57 } 51 extern const char *HID_BLINK1_FUN_NAME; 52 extern const char *HID_BLINK1_CATEGORY; 58 53 59 static inline double sin(double val) 60 { 61 return double_sin(val); 62 } 54 extern int usb_blink1_init(usb_hid_dev_t *, void **); 55 extern void usb_blink1_deinit(usb_hid_dev_t *, void *); 63 56 64 static inline double cos(double val) 65 { 66 return double_cos(val); 67 } 57 #endif // USB_HID_BLINK1_H_ 68 58 69 #endif 70 71 /** @} 59 /** 60 * @} 72 61 */
Note:
See TracChangeset
for help on using the changeset viewer.