![]() |
RTEMS 6.3
|
Files | |
| file | cpukit/include/rtems/mw_uid.h |
| Input Devices for MicroWindows. | |
| file | cpukit/libmisc/fb/mw_print.c |
| MicroWindows Print. | |
| file | cpukit/libmisc/fb/mw_uid.c |
| MicroWindows UID. | |
Data Structures | |
| struct | MW_UID_MESSAGE |
| union | MW_UID_MESSAGE::[union].m |
| struct | MW_UID_MESSAGE::[struct]kbd_t.m.kbd |
| struct | MW_UID_MESSAGE::[struct]pos_t.m.pos |
| struct | MW_UID_MESSAGE::[struct]timer_t.m.tmr |
Enumerations | |
| enum | MW_INPUT_DEVICE_TYPE { MV_UID_INVALID = 0 , MV_UID_REL_POS = 1 , MV_UID_ABS_POS = 2 , MV_UID_KBD = 3 , MV_UID_TIMER = 4 } |
Functions | |
| int | uid_open_queue (const char *q_name, int flags, size_t max_msgs) |
| int | uid_close_queue (void) |
| int | uid_read_message (struct MW_UID_MESSAGE *m, unsigned long timeout) |
| int | uid_send_message (struct MW_UID_MESSAGE *m) |
| int | uid_register_device (int fd, const char *q_name) |
| int | uid_unregister_device (int fd) |
| int | uid_set_kbd_mode (int fd, int mode, int *old_mode) |
| void | uid_print_message (struct MW_UID_MESSAGE *uid) |
| void | uid_print_message_with_plugin (const rtems_printer *printer, struct MW_UID_MESSAGE *uid) |
|
extern |
This method closes the message queue and deletes it.
| This | method returns 0 on success and -1 on error. |
|
extern |
This method creates the message queue that holds events from the input devices.
| [in] | q_name | is the name of the message queue |
| [in] | flags | controls the behaviour of the queue |
| [in] | max_msgs | specifies the maximum number of pending messages |
| This | method returns 0 on success and -1 on error. |
| void uid_print_message | ( | struct MW_UID_MESSAGE * | uid | ) |
This methods prints the specified UID message using printk
| [in] | uid | points to the message to print |
| void uid_print_message_with_plugin | ( | const rtems_printer * | printer, |
| struct MW_UID_MESSAGE * | uid ) |
This methods prints the specified UID message using your fprintf style method of choice.
| [in] | RTEMS | printer |
| [in] | uid | points to the message to print |
|
extern |
This method reads a message from the queue. It waits up to the specified timeout in miliseconds. A timeout of 0 is a poll.
| [in] | m | will be filled in with the received message |
| [in] | timeout | is the maximum number of mulliseconds to wait |
| This | method returns 0 on success and -1 on error. |
|
extern |
This method registers the device associated with fd to to insert data to the queue
|
extern |
This methods writes a message to the queue.
| [in] | m | is the message to send |
| This | method returns 0 on success and -1 on error. |