|
cursada_mc2
Base de control de temperatura para EDU-CIAA-NXP
|
Interfaz del driver de teclado matricial. More...
#include "chip.h"#include <stdint.h>
Include dependency graph for keyboard_driver.h:
This graph shows which files directly or indirectly include this file:Go to the source code of this file.
Macros | |
| #define | KEYBOARD_MAX_COLUMNS 3 |
| Cantidad maxima de columnas del teclado matricial. | |
| #define | KEYBOARD_MAX_ROWS 4 |
| Cantidad maxima de filas del teclado matricial. | |
Functions | |
| void | board_keyboard_init (void) |
| Inicializa los pines del teclado matricial. | |
| void | board_keyboard_int_enable (void) |
| Habilita las interrupciones asociadas al teclado matricial. | |
| int | board_keyboard_read_cell (uint8_t column, uint8_t row) |
| Lee el estado de una celda puntual de la matriz. | |
| void | board_keyboard_read_matrix (uint8_t *matrix_p[KEYBOARD_MAX_COLUMNS]) |
| Lee el estado completo de la matriz de teclado. | |
| CHAR | board_keyboard_get_last_char (void) |
| Devuelve el ultimo caracter detectado por el teclado. | |
| #define KEYBOARD_MAX_COLUMNS 3 |
Definition at line 13 of file keyboard_driver.h.
| #define KEYBOARD_MAX_ROWS 4 |
Definition at line 15 of file keyboard_driver.h.
| CHAR board_keyboard_get_last_char | ( | void | ) |
Definition at line 104 of file keyboard_driver.c.
References last_char.
| void board_keyboard_init | ( | void | ) |
Definition at line 30 of file keyboard_driver.c.
| void board_keyboard_int_enable | ( | void | ) |
Definition at line 60 of file keyboard_driver.c.
| int board_keyboard_read_cell | ( | uint8_t | column, |
| uint8_t | row | ||
| ) |
| column | Indice de columna. |
| row | Indice de fila. |
Definition at line 92 of file keyboard_driver.c.
References state_matrix.
| void board_keyboard_read_matrix | ( | uint8_t * | matrix_p[KEYBOARD_MAX_COLUMNS] | ) |
| matrix_p | Vector de punteros donde se deposita el estado de cada columna. |
Definition at line 95 of file keyboard_driver.c.
References KEYBOARD_MAX_COLUMNS, KEYBOARD_MAX_ROWS, and state_matrix.