[FL-1311] F6, app LF-RFID: Updated timer api and config (#465)

* F6, app LF-RFID: Updated timer api and config
* Api hal rfid: updated comments

Co-authored-by: あく <alleteam@gmail.com>
This commit is contained in:
SG
2021-05-18 19:54:48 +10:00
committed by GitHub
parent 1ddd4acd80
commit ba0419276e
4 changed files with 156 additions and 69 deletions

View File

@@ -1,5 +1,7 @@
#pragma once
#include <stdint.h>
#include <stdbool.h>
#include <main.h>
#ifdef __cplusplus
extern "C" {
@@ -68,6 +70,27 @@ void api_hal_rfid_tim_emulate_stop();
*/
void api_hal_rfid_tim_reset();
/**
* @brief check that timer instance is emulation timer
*
* @param hw timer instance
*/
bool api_hal_rfid_is_tim_emulate(TIM_HandleTypeDef* hw);
/**
* @brief set emulation timer period
*
* @param period overall duration
*/
void api_hal_rfid_set_emulate_period(uint32_t period);
/**
* @brief set emulation timer pulse
*
* @param pulse duration of high level
*/
void api_hal_rfid_set_emulate_pulse(uint32_t pulse);
#ifdef __cplusplus
}
#endif