#include <stddef.h>
#include <stdint.h>
Go to the source code of this file.
◆ clk_t
◆ pre_t
◆ ssize_t
◆ Skew
| enum struct Skew : uint8_t |
|
strong |
Preference for how the computed timer configuration should skew if it cannot get the precise value.
◆ TimerRc
Possible return codes when trying to compute the best timer configuration.
| Enumerator |
|---|
| Okay | |
| ImpossibleClock | |
| ZeroDiv | |
| ErrorRange | |
| TooLow | |
| TooHigh | |
◆ activate_t1()
Activate the 16-bit timer 1 on ATMEGA2560 with a given configuration.
- Parameters
-
| cfg | Computed timer configuration with desired clock frequency. |
- Returns
- (TimerRc): Return code from operation.
◆ deactivate_t1()
Deactivate 16-bit timer 1 on ATMEGA2560.
◆ error_str()
| const char * error_str |
( |
TimerRc |
rc | ) |
|
Retrieve a string description of a timer return code.
- Parameters
-
| rc | Return code to get its string for. |
- Returns
- (const char*): Static string for return code.