Go to the source code of this file.
|
| void | runTests () |
| | Main Unit Testing function This function is run initially at runtime, tests all features made by Erick Grant.
|
| |
| void | displayCode (int x) |
| |
| int | main () |
| | Main Function Runs all other code.
|
| |
◆ HEX3_HEX0_BASE
| #define HEX3_HEX0_BASE 0x00000020 |
Register address of the right-most four 7-segment displays.
Accepts a long long int to this address, the int is created by combining four 8 bit binary numbers, corresponding to the physical lights on the 7-segment.
Definition at line 85 of file main.c.
◆ HEX5_HEX4_BASE
| #define HEX5_HEX4_BASE 0x00000030 |
Register address of the left-most two 7-segment displays.
Accepts a long long int to this address, the int is created by combining two 8-bit binary numbers, corresponding to the physical lights on the 7-segment.
Definition at line 94 of file main.c.
◆ HW_REGS_BASE
| #define HW_REGS_BASE ( ALT_STM_OFST ) |
◆ HW_REGS_MASK
◆ HW_REGS_SPAN
| #define HW_REGS_SPAN ( 0x04000000 ) |
◆ displayCode()
| void displayCode |
( |
int | x | ) |
|
◆ main()
Main Function Runs all other code.
- Returns
- int
Definition at line 275 of file main.c.
◆ runTests()
Main Unit Testing function This function is run initially at runtime, tests all features made by Erick Grant.
- Returns
- void
Definition at line 225 of file main.c.
◆ codeStr
Stores the 6-digit code in a string format.
The pin is stored in a string format, before outputting to the 7-segment displays.
Definition at line 198 of file main.c.
◆ fd
◆ gpioRegister
◆ HEX45_ptr
Virtual address pointer Pointer for the 1-2 7-segment display lights Used to define the address of the 7-segment displays for the 2 left-most displays.
Definition at line 146 of file main.c.
◆ HEX_ptr
Virtual address pointer Pointer for the 3-6 7-segment display lights Used to define the address of the 7-segment displays.
Definition at line 140 of file main.c.
◆ JP1_ptr
| volatile unsigned int* JP1_ptr |
◆ KEY_ptr
Pointer to the buttons on the board.
This isn't developed yet, but will be used for the reset button.
Definition at line 168 of file main.c.
◆ knownKey
Holds the key in a human readable format.
The key supports the upper-case alphabet and 2-7 to fill up the 32-bits The key will be trimmed to 32-bits
Definition at line 119 of file main.c.
◆ LcdCanvas
◆ LW_virtual
◆ newCode
Code as a byte array.
Non-human readable format from the TOTP library, will be copied into codeStr
Definition at line 212 of file main.c.
◆ output_len
The length of the uint_8 key in bytes.
Typically this will be about 20, this will be the length of the decoded array and cloned array.
Definition at line 126 of file main.c.
◆ qrcode
Creates a QRCode object.
Used for the QRCode generator for the LCD display.
Definition at line 190 of file main.c.
◆ seconds
Used to return the time.
Used to calculate the current time in seconds from EPOCH.
Definition at line 175 of file main.c.
◆ secondsRemaining
Seconds remaining.
Calculated from seconds (in epoch) % 30
Definition at line 205 of file main.c.
◆ virtual_base