[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:
@@ -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
|
Reference in New Issue
Block a user