Project

General

Profile

Statistics
| Revision:

root / lab4 / mouse_func.h @ 52

History | View | Annotate | Download (1012 Bytes)

1 52 up20180655
##ifndef _MOUSE_FUNC_H_
2
#define _MOUSE_FUNC_H_
3
4
#include <stdint.h>
5
6
/**
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
15
/**
16
 * @brief Unsubcribes Interrupts
17
 * @param interrupt_id Interrupt ID, value via arguments on subscription of the interrupt_id
18
 * @see subscribe_kbc_interrupt, subscribe_timer_interrupt
19
 * @return ERROR_CODE code representing the result of the operation, SUCCESS code is returned if everything is OK
20
 * @see {_ERRORS_H_::errors}
21
 */
22
int (unsubscribe_interrupt)(int *interrupt_id);
23
24
25
26
#endif /* end of include guard: _MOUSE_FUNC_H_ */