RTEMS: cpukit/libmisc/mouse/mouse_parser.c File Reference

| RTEMS 5.4-rc2

Loading...
Searching...
No Matches
Macros | Functions
mouse_parser.c File Reference
Device Drivers » Serial Mouse

Opens a Serial Port Directly, and Interprets Serial Data. More...

`#include <stdio.h>`
`#include <stdlib.h>`
`#include <string.h>`
`#include <unistd.h>`
`#include <fcntl.h>`
`#include <errno.h>`
`#include <rtems.h>`
`#include <rtems/bspIo.h>`
`#include <rtems/mouse_parser.h>`
`#include <rtems/mw_uid.h>`

## Macros
#define | IDLE 0 /* start of byte sequence */
#define | XSET 1 /* setting x delta */
#define | YSET 2 /* setting y delta */
#define | XADD 3 /* adjusting x delta */
#define | YADD 4 /* adjusting y delta */
#define | PC_LEFT_BUTTON 4
#define | PC_MIDDLE_BUTTON 2
#define | PC_RIGHT_BUTTON 1
#define | MS_LEFT_BUTTON 2
#define | MS_RIGHT_BUTTON 1
#define | PS2_CTRL_BYTE 0x08
#define | PS2_LEFT_BUTTON 1
#define | PS2_RIGHT_BUTTON 2
#define | TOP_FIVE_BITS 0xf8
#define | BOTTOM_THREE_BITS 0x07
#define | TOP_BIT 0x80
#define | SIXTH_BIT 0x40
#define | BOTTOM_TWO_BITS 0x03
#define | THIRD_FOURTH_BITS 0x0c
#define | BOTTOM_SIX_BITS 0x3f

## Functions
int | mouse_parser_initialize (const char *type)
| Initialize the mouse parser engine.
void | mouse_parser_enqueue (unsigned char *buffer, size_t size)
| Enqueue input to the mouse parser engine.

## Detailed Description

Opens a Serial Port Directly, and Interprets Serial Data.