Project

General

Profile

Revision 39

fixed frozen keyboard

View differences:

kbc_func.h
44 44
 */
45 45
int (kbd_poll)(uint8_t bytes[], uint8_t *size);
46 46

  
47
int (kbd_issue_cmd)(uint8_t cmd);
47
/**
48
 * @brief High-level function that reads the command byte of the KBC
49
 * @param cmd Pointer to variable where command byte read from KBC will be stored
50
 * @return 0 if operation was successful, 1 otherwise
51
 */
52
int (kbc_read_cmd)(uint8_t *cmd);
48 53

  
49 54
/**
55
 * @brief High-level function that changes the command byte of the KBC
56
 * @param cmd New value for command byte of KBC
57
 * @return 0 if operation was successful, 1 otherwise
58
 */
59
int (kbc_change_cmd)(uint8_t cmd);
60

  
61
/**
62
 * @brief Low-level function to issue a command to keyboard
63
 * @param cmd command to be issued
64
 * @return 0 if operation was successful, 1 otherwise
65
 */
66
int (kbc_issue_cmd)(uint8_t cmd);
67

  
68
/**
50 69
 * @brief Low-level function for reading byte from keyboard
51 70
 * Low-level function for reading byte from keyboard. Waits until output buffer
52 71
 * is full
53 72
 * @param value Pointer to variable where byte read from keyboard will be stored
54 73
 * @return 0 if operation was successful, 1 otherwise
55 74
 */
56
int (kbd_read_byte)(uint8_t *byte);
75
int (kbc_read_byte)(uint8_t *byte);
57 76

  
58
int (kbd_read_cmd)(uint8_t *cmd);
59 77

  
60 78
#endif

Also available in: Unified diff