Revision 80
reorganized remote
mouse.h | ||
---|---|---|
12 | 12 |
*/ |
13 | 13 |
int (subscribe_mouse_interrupt)(uint8_t interrupt_bit, int *interrupt_id); |
14 | 14 |
|
15 |
int got_error_mouse_ih; |
|
16 |
uint8_t packet_mouse_ih[3]; |
|
17 |
int counter_mouse_ih; |
|
18 |
|
|
15 | 19 |
struct packet (mouse_parse_packet)(const uint8_t *packet_bytes); |
16 | 20 |
|
21 |
int mouse_poll(struct packet *pp, uint16_t period); |
|
22 |
|
|
23 |
/** |
|
24 |
* |
|
25 |
*/ |
|
17 | 26 |
int (mouse_set_data_report)(int on); |
18 | 27 |
|
19 | 28 |
/** |
... | ... | |
25 | 34 |
* @return ERROR_CODE code representing the result of the operation, SUCCESS code is returned if everything is OK |
26 | 35 |
* @see {_ERRORS_H_::errors} |
27 | 36 |
*/ |
28 |
int (mouse_read_data)(uint8_t *data); |
|
37 |
int (mouse_read_data)(uint8_t *data, uint16_t period);
|
|
29 | 38 |
|
30 | 39 |
/** |
31 | 40 |
* @brief Issues command to mouse |
... | ... | |
51 | 60 |
|
52 | 61 |
int (mouse_read_ack)(uint8_t *byte); |
53 | 62 |
|
63 |
int (mouse_poll_byte)(uint8_t *byte, uint16_t period); |
|
64 |
|
|
54 | 65 |
/** |
55 | 66 |
* @brief Converts 9-bit number to 16-bit with sign extension |
56 | 67 |
* @param sign_bit Sign bit identifiying the signal of the number |
Also available in: Unified diff