Project

General

Profile

Revision 70

implemented remote, working on fixing issues

View differences:

mouse.h
16 16

  
17 17
int (mouse_set_data_report)(int on);
18 18

  
19
/**
20
 * @brief Reads data byte from mouse
21
 * <summary>
22
 * Polls the mouse till data is available for reading
23
 * </summary>
24
 * @param data Pointer to variable where byte read from mouse will be stored
25
 * @return ERROR_CODE code representing the result of the operation, SUCCESS code is returned if everything is OK
26
 * @see {_ERRORS_H_::errors}
27
 */
28
int (mouse_read_data)(uint8_t *data);
29

  
30
/**
31
 * @brief Issues command to mouse
32
 * <summary>
33
 * Issues command to mouse, returns error after two consecutive errors reported by the acknowledgment byte
34
 * </summary>
35
 * @param cmd Command to be issued
36
 * @return ERROR_CODE code representing the result of the operation, SUCCESS code is returned if everything is OK
37
 * @see {_ERRORS_H_::errors}
38
 */
39
int (mouse_issue_cmd)(uint32_t cmd);
40

  
41
/**
42
 * @brief Reads byte from mouse
43
 * <summary>
44
 * Reads byte from mouse, giving error if exceeds number of tries to read
45
 * @param byte Pointer to variable where byte read from mouse will be stored
46
 * @return ERROR_CODE code representing the result of the operation, SUCCESS code is returned if everything is OK
47
 * @see {_ERRORS_H_::errors}
48
 */
49
int (mouse_read_byte)(uint8_t *byte);
50

  
19 51
#endif //MOUSE_H_INCLUDED

Also available in: Unified diff