|
C_LINKAGE bool | yggdrasil_TIM_Init (tim_t tim) |
| Timer initialization. More...
|
|
C_LINKAGE bool | yggdrasil_TIM_Deinit (tim_t tim) |
| Timer deinitialization. More...
|
|
C_LINKAGE void | yggdrasil_TIM_Enable (tim_t tim) |
| Timer enable. More...
|
|
C_LINKAGE void | yggdrasil_TIM_Disable (tim_t tim) |
| Timer disable. More...
|
|
C_LINKAGE u32 | yggdrasil_TIM_GetCount (tim_t tim) |
| Get the counter value. More...
|
|
C_LINKAGE void | yggdrasil_TIM_SetCount (tim_t tim, u32 cnt) |
| Set the counter value. More...
|
|
C_LINKAGE void | yggdrasil_TIM_ResetCount (tim_t tim) |
| Reset the counter value. More...
|
|
C_LINKAGE u32 | yggdrasil_TIM_GetPwmFrequency (tim_t tim) |
| Get the pwm frequency. More...
|
|
C_LINKAGE bool | yggdrasil_TIM_SetPwmFrequency (tim_t tim, u32 f_hz, u32 resolution) |
| Set the pwm frequency and (optional) the maximal ticks within on cycle for all channels. More...
|
|
C_LINKAGE bool | yggdrasil_TIM_Channel_StartPwm (tim_channel_t channel) |
| Start PWM generation for the channel. More...
|
|
C_LINKAGE bool | yggdrasil_TIM_Channel_StopPwm (tim_channel_t channel) |
| Stop PWM generation for the channel. More...
|
|
C_LINKAGE bool | yggdrasil_TIM_Channel_SetPolarityHigh (tim_channel_t channel, bool highActive) |
| Start set pwm polarity. More...
|
|
C_LINKAGE bool | yggdrasil_TIM_Channel_SetDutyCycle (tim_channel_t channel, float dutyCycle) |
| Set the duty cycle as a float value. More...
|
|
C_LINKAGE void | yggdrasil_ProfileCounter_Start (tim_t tim) |
| Start the counter. More...
|
|
C_LINKAGE void | yggdrasil_ProfileCounter_Stop (tim_t tim) |
| Stop the counter. More...
|
|
C_LINKAGE void | yggdrasil_ProfileCounter_Reset (tim_t tim) |
| Reset the counter to 0. More...
|
|
C_LINKAGE u64 | yggdrasil_ProfileCounter_GetTimeToOverflow (tim_t tim) |
| Get the time to an overflow. More...
|
|
C_LINKAGE void | yggdrasil_ProfileCounter_GetFormattedTimeToOverflow (tim_t tim, char *buffer, size_t size) |
| Get the time to an overflow formatted as a string. More...
|
|
C_LINKAGE u64 | yggdrasil_ProfileCounter_GetPassedTime (tim_t tim) |
| Get the time passed time since the start. More...
|
|
C_LINKAGE void | yggdrasil_ProfileCounter_GetFormattedPassedTime (tim_t tim, char *buffer, size_t size) |
| Get the time passed time since the start. More...
|
|
C_LINKAGE bool | yggdrasil_Encoder_Init (tim_t tim) |
| Initialization function for the encoder. More...
|
|
C_LINKAGE bool | yggdrasil_Encoder_Enable (tim_t tim) |
| Enable the encoder mode. More...
|
|
C_LINKAGE bool | yggdrasil_Encoder_Disable (tim_t tim) |
| Disable the encoder mode. More...
|
|
C_LINKAGE u32 | yggdrasil_Encoder_GetCount (tim_t tim) |
| Get the counter value. More...
|
|
C_LINKAGE void | yggdrasil_Encoder_SetCount (tim_t tim, u32 cnt) |
| Set the encoder counter value. More...
|
|
C_LINKAGE enum EncoderDirection | yggdrasil_Encoder_GetDirection (tim_t tim) |
| Get the direction of the last rotation. More...
|
|
C_LINKAGE void | yggdrasil_Encoder_SetMode (tim_t tim, enum EncoderMode mode) |
| Set the mode of the encoder (48 or 96 counts per turn) More...
|
|
Timer abstraction implementation for Midgard.
- Author
- Fabian Weber, Nikolaij Saegesser