|
Prusa MINI Firmware overview
|
#include <Timer.h>
Public Types | |
| typedef void() | callback_fn() |
Public Member Functions | |
| Timer () | |
| virtual | ~Timer () |
| void | init (uint32_t sig_id, uint32_t sim_freq, callback_fn *fn) |
| void | start (uint32_t frequency) |
| void | enable () |
| bool | enabled () |
| void | disable () |
| void | setCompare (uint32_t compare) |
| uint32_t | getCount () |
| uint32_t | getCompare () |
| uint32_t | getOverruns () |
| uint32_t | getAvgError () |
| intptr_t | getID () |
Static Public Member Functions | |
| static void | handler (int sig, siginfo_t *si, void *uc) |
Marlin 3D Printer Firmware Copyright (c) 2019 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
Based on Sprinter and grbl. Copyright (c) 2011 Camiel Gubbels / Erik van der Zalm
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.
| typedef void() Timer::callback_fn() |
| Timer::Timer | ( | ) |
|
virtual |
| void Timer::init | ( | uint32_t | sig_id, |
| uint32_t | sim_freq, | ||
| callback_fn * | fn | ||
| ) |
| void Timer::start | ( | uint32_t | frequency | ) |
| void Timer::enable | ( | ) |
| void Timer::disable | ( | ) |
| void Timer::setCompare | ( | uint32_t | compare | ) |
| uint32_t Timer::getCount | ( | ) |
