KETCube
Functions | Variables
ketCube_timer.c File Reference

This file contains the ketCube Timer(s) driver. More...

#include "stm32l0xx_hal.h"
#include "ketCube_cfg.h"
#include "ketCube_timer.h"

Functions

ketCube_cfg_DrvError_t ketCube_Timer_Init (ketCube_Timer_list_t tim)
 Configures Timer(s) More...
 
void ketCube_Timer_Timer2_ResetICEvent (void)
 Mark IC event as processed @ Timer 2. More...
 
bool ketCube_Timer_Timer2_IsICEvent (void)
 Return IC Event state @ Timer 2. More...
 
void TIM2_IRQHandler (void)
 This function handles TIM2 global interrupt. More...
 
void HAL_TIM_IC_CaptureCallback (TIM_HandleTypeDef *htim)
 Input Capture callback in non-blocking mode. More...
 

Variables

ketCube_Timer_usage_t timerUsed = { 0, 0, 0, 0, 0, 0, 0 }
 
TIM_HandleTypeDef KETCube_Timer_Htim2
 
static volatile bool KETCube_Timer_Timer2_IC = FALSE
 

Detailed Description

This file contains the ketCube Timer(s) driver.

Author
Jan Belohoubek
Version
0.2
Date
2018-07-12
Attention

© Copyright (c) 2018 University of West Bohemia in Pilsen All rights reserved.

Developed by: The SmartCampus Team Department of Technologies and Measurement www.smartcampus.cz | www.zcu.cz

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal with the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE CONTRIBUTORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS WITH THE SOFTWARE.

Function Documentation

◆ HAL_TIM_IC_CaptureCallback()

void HAL_TIM_IC_CaptureCallback ( TIM_HandleTypeDef *  htim)

Input Capture callback in non-blocking mode.

Only Timer2 is currently supported

◆ TIM2_IRQHandler()

void TIM2_IRQHandler ( void  )

This function handles TIM2 global interrupt.

Variable Documentation

◆ KETCube_Timer_Timer2_IC

volatile bool KETCube_Timer_Timer2_IC = FALSE
static

◆ timerUsed

ketCube_Timer_usage_t timerUsed = { 0, 0, 0, 0, 0, 0, 0 }