mousedev.c File Reference

USB Mouse driver API. More...

#include <usb/debug.h>
#include <usb/classes/classes.h>
#include <usb/hid/hid.h>
#include <usb/hid/request.h>
#include <usb/hid/usages/core.h>
#include <errno.h>
#include <str_error.h>
#include <ipc/mouse.h>
#include <io/console.h>
#include <ipc/kbd.h>
#include <io/keycode.h>
#include "mousedev.h"
#include "../usbhid.h"

Go to the source code of this file.

Defines

#define NAME   "mouse"

Enumerations

enum  

Functions

static void default_connection_handler (ddf_fun_t *fun, ipc_callid_t icallid, ipc_call_t *icall)
 Default handler for IPC methods not handled by DDF.
static int usb_mouse_create_function (usb_hid_dev_t *hid_dev, usb_mouse_t *mouse)
void usb_mouse_deinit (usb_hid_dev_t *hid_dev, void *data)
static void usb_mouse_free (usb_mouse_t **mouse_dev)
int usb_mouse_init (usb_hid_dev_t *hid_dev, void **data)
static usb_mouse_tusb_mouse_new (void)
bool usb_mouse_polling_callback (usb_hid_dev_t *hid_dev, void *data)
static bool usb_mouse_process_report (usb_hid_dev_t *hid_dev, usb_mouse_t *mouse_dev)
static void usb_mouse_send_wheel (const usb_mouse_t *mouse_dev, int wheel)
int usb_mouse_set_boot_protocol (usb_hid_dev_t *hid_dev)

Variables

const char * HID_MOUSE_CLASS_NAME = "mouse"
const char * HID_MOUSE_FUN_NAME = "mouse"
const char * HID_MOUSE_WHEEL_CLASS_NAME = "keyboard"
const char * HID_MOUSE_WHEEL_FUN_NAME = "mouse-wheel"
static const uint8_t IDLE_RATE = 0
 Default idle rate for mouses.
usb_endpoint_description_t usb_hid_mouse_poll_endpoint_description
static const uint8_t USB_MOUSE_BOOT_REPORT_DESCRIPTOR [USB_MOUSE_BOOT_REPORT_DESCRIPTOR_SIZE]
static const size_t USB_MOUSE_BUTTON_COUNT = 3


Detailed Description

USB Mouse driver API.

Definition in file mousedev.c.


Generated on Thu Jun 2 07:45:52 2011 for HelenOS/USB by  doxygen 1.4.7