Project

General

Profile

Statistics
| Revision:

root / lab4 / mouse.h @ 64

History | View | Annotate | Download (721 Bytes)

1 58 up20180642
#ifndef _MOUSE_FUNC_H_
2
#define _MOUSE_FUNC_H_
3 53 up20180655
4 58 up20180642
#include <stdint.h>
5 53 up20180655
6 58 up20180642
/**
7
 * @brief Subscribes Mouse Interrupts and disables Minix Default IH
8
 * @param interrupt_bit Bit of Interrupt Vector that will be set when Mouse Interrupt is pending
9
 * @param interrupt_id Mouse Interrupt ID to specify the Mouse Interrupt in other calls
10
 * @return ERROR_CODE code representing the result of the operation, SUCCESS code is returned if everything is OK
11
 * @see {_ERRORS_H_::errors}
12
 */
13
int (subscribe_mouse_interrupt)(uint8_t interrupt_bit, int *interrupt_id);
14 53 up20180655
15 58 up20180642
struct packet (mouse_parse_packet)(const uint8_t *packet_bytes);
16 53 up20180655
17 58 up20180642
int (mouse_set_data_report)(int on);
18
19
#endif /* end of include guard: _MOUSE_FUNC_H_ */