GlobLib
HAL and API libraries for MCUs and hardware.
|
Source file for attiny13a TIMER. More...
#include "attiny13a_timer.h"
Go to the source code of this file.
Functions | |
mcu_error | TIMER_pause (timer_main timerNumber) |
Pause an already running timer. More... | |
mcu_error | TIMER_resume (timer_main timerNumber) |
Resume a paused timer. More... | |
mcu_error | TIMER_setupPWM (timer_main timerNumber, timer_channel timerChannel, uint16_t frequency, uint8_t duty) |
Initialize given timer for PWM mode. More... | |
mcu_error | TIMER_setupPulse (timer_main timerNumber, timer_channel timerChannel, uint16_t frequency, uint16_t pulse) |
Initialize given timer for Pulse mode. More... | |
uint8_t | TIMER_getCount (timer_main timerNumber) |
Get the current value of a running timer. More... | |
mcu_error | TIMER_setCount (timer_main timerNumber, uint8_t count) |
Set the current value of a running timer. More... | |
mcu_error | TIMER_setDuty (timer_main timerNumber, timer_channel channel, uint8_t duty) |
Set the duty cycle for the waveform (PWM only, 0 - 100%). More... | |
mcu_error | TIMER_setPulse (timer_main timerNumber, timer_channel channel, uint16_t pulse) |
Set the pulse width for the output. (in milliseconds) More... | |
Source file for attiny13a TIMER.
Definition in file attiny13a_timer.c.