Advertisement
Dm3Ch

usb-pkk-backlight.h v4

Jul 30th, 2014
420
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.76 KB | None | 0 0
  1. #define PKK_BL_DRIVER_NAME "USB PKK-BL Driver: "
  2.  
  3. #define PKK_BL_MAX_BRIGHTNESS   0xff
  4. #define PKK_BL_DEFAULT_BRIGHTNESS 0xff
  5.  
  6. #define USB_VENDOR_ID_PKK_BL     0x04d8
  7. #define USB_DEVICE_ID_PKK_BL     0xc002
  8.  
  9. #define PKK_BL_OUT_ENDPOINT 0x01
  10.  
  11. #define PKK_BL_OUT_INTERVAL 1
  12.  
  13. #define PKK_BL_TRANSFER_BUFFER_OUT_SIZE 2
  14.  
  15. #define PKK_BL_CMD_SET_BRIGHTNESS 0x91
  16.  
  17. /* Per device data structure */
  18. struct pkk_bl_data {
  19.     /* USB device stuff section */
  20.     struct usb_device_id *udev_id;
  21.     struct usb_device *udev;
  22.     struct usb_interface *intf;
  23.     struct urb *urb;
  24.     //bool is_urb_free;
  25.     unsigned char *transfer_buffer_out;
  26.  
  27.     /* Backlight device stuff section */
  28.     struct backlight_device *bdev;
  29.     uint8_t brightness; //PicoLCD - u8
  30. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement