diff options
Diffstat (limited to 'common/matrix.h')
| -rw-r--r-- | common/matrix.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/common/matrix.h b/common/matrix.h index 23fef78f7..107ee7265 100644 --- a/common/matrix.h +++ b/common/matrix.h | |||
| @@ -35,6 +35,10 @@ typedef uint32_t matrix_row_t; | |||
| 35 | #define MATRIX_IS_ON(row, col) (matrix_get_row(row) && (1<<col)) | 35 | #define MATRIX_IS_ON(row, col) (matrix_get_row(row) && (1<<col)) |
| 36 | 36 | ||
| 37 | 37 | ||
| 38 | #ifdef __cplusplus | ||
| 39 | extern "C" { | ||
| 40 | #endif | ||
| 41 | |||
| 38 | /* number of matrix rows */ | 42 | /* number of matrix rows */ |
| 39 | uint8_t matrix_rows(void); | 43 | uint8_t matrix_rows(void); |
| 40 | /* number of matrix columns */ | 44 | /* number of matrix columns */ |
| @@ -48,7 +52,7 @@ bool matrix_is_modified(void) __attribute__ ((deprecated)); | |||
| 48 | /* whether a swtich is on */ | 52 | /* whether a swtich is on */ |
| 49 | bool matrix_is_on(uint8_t row, uint8_t col); | 53 | bool matrix_is_on(uint8_t row, uint8_t col); |
| 50 | /* matrix state on row */ | 54 | /* matrix state on row */ |
| 51 | matrix_row_t matrix_get_row(uint8_t row); | 55 | matrix_row_t matrix_get_row(uint8_t row); |
| 52 | /* print matrix for debug */ | 56 | /* print matrix for debug */ |
| 53 | void matrix_print(void); | 57 | void matrix_print(void); |
| 54 | 58 | ||
| @@ -57,5 +61,8 @@ void matrix_print(void); | |||
| 57 | void matrix_power_up(void); | 61 | void matrix_power_up(void); |
| 58 | void matrix_power_down(void); | 62 | void matrix_power_down(void); |
| 59 | 63 | ||
| 64 | #ifdef __cplusplus | ||
| 65 | } | ||
| 66 | #endif | ||
| 60 | 67 | ||
| 61 | #endif | 68 | #endif |
