Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: FATFileSystem N5110_mod SDFileSystem USBDevice mbed
Button matrix
used for the scanning of the UI buttons More...
Data Structures | |
| struct | buttons_struct |
| # Flags, maps & variables More... | |
Namespaces | |
| namespace | keyMap |
indicates name of button pressed | |
| namespace | ButtonOut_val |
used to map the button presses on to the boolean flags | |
| namespace | ButtonOut_pos |
stores the current position of the ButtonOut scan, in order to select the correct value for the output from the ButtonOut_val array | |
| namespace | Button_init |
# Functions | |
| namespace | Button_scan_ISR |
function called by Button_scan_tkr | |
| namespace | Button_update |
Used to update the boolean flags within Buttons_struct. | |
Functions | |
| BusOut | ButtonOut (PTE26, PTE25, PTD3, PTC8) |
| # IO & interrupts | |
| InterruptIn | ButtonIn_A (PTB11) |
| interrupt pins connected to button matrix outputs | |
| void | Button_init () |
| initialises button matrix | |
| void | Button_scan_ISR () |
| void | Button_update (int row) |
| void | ButtonIn_A_ISR () |
| interrupt subroutines for ButtonIn_* input | |
| void | ButtonIn_B_ISR () |
| void | ButtonIn_C_ISR () |
| void | ButtonIn_D_ISR () |
| void | ButtonIn_E_ISR () |
Variables | |
| Ticker | Button_scan_tkr |
| ticker to rotate ButtonOut bus | |
| bool | ButtonFlag_zero = 0 |
| used to indicate if any button has been pressed | |
| bool | ButtonFlag_cols [4] = {0,0,0,0} |
| used to indicate if the input on the column during the last scan was equal to zero | |
Detailed Description
used for the scanning of the UI buttons
Function Documentation
| void Button_init | ( | ) |
| void Button_scan_ISR | ( | ) |
| void Button_update | ( | int | row ) |
| InterruptIn ButtonIn_A | ( | PTB11 | ) |
interrupt pins connected to button matrix outputs
| void ButtonIn_A_ISR | ( | ) |
| BusOut ButtonOut | ( | PTE26 | , |
| PTE25 | , | ||
| PTD3 | , | ||
| PTC8 | |||
| ) |
# IO & interrupts
Output bus used for scanning button matrix
Variable Documentation
| Ticker Button_scan_tkr |
| bool ButtonFlag_cols[4] = {0,0,0,0} |
| bool ButtonFlag_zero = 0 |
Generated on Tue Jul 12 2022 13:31:54 by
1.7.2