|
STC15W408AS library 0.17.0
|
#include <stdint.h>#include <frequency.h>#include <timer0_mode0.h>#include <timer_common.h>#include <timer_to_ms_common.h>

Go to the source code of this file.
Macros | |
frequency and ticks | |
Timer ticks to frequency and vice versa convertions | |
| #define | timer0_mode0_ticks_to_Hz(ticks) (timer_ticks_to_Hz(ticks, get_timer0_clock_divider(), get_frequency_divider_scale())) |
| Converts ticks to timer frequency for timer0 multiplied by 100. | |
| #define | timer0_mode0_Hz_to_ticks(frequency) (timer_Hz_to_ticks(frequency, get_timer0_clock_divider(), get_frequency_divider_scale())) |
| Converts frequency to timer0 mode0 ticks. | |
| #define | timer0_mode0_ticks_to_ms(ticks) (timer_16bit_ticks_to_ms(ticks, get_timer0_clock_divider(), get_frequency_divider_scale())) |
| Convert ticks count to ms. | |
| #define | timer0_mode0_ms_to_ticks(ms) (timer_ms_to_ticks(ms, get_timer0_clock_divider(), get_frequency_divider_scale())) |
| Convert milliseconds to timer0 ticks. | |
timer start for frequency and ms | |
Start Timer for ms or frequency | |
| #define | timer0_mode0_start_ms(ms) |
| Start timer0 in mode 0 with ms duration. | |
| #define | timer0_mode0_start_Hz(freq) |
| Start timer0 in mode 0 with Hz frequency. | |
timer delay ms | |
Delay using timer | |
| #define | timer0_mode0_delay_ms(ms) |
| Run timer0 mode0 once and wait with program flow blocking timer not finished. | |