![]() |
PDL for FM4
Version1.2
Peripheral Driverl Library for FM4
|
#include "bt.h"
Go to the source code of this file.
Macros | |
| #define | BT_INSTANCE_COUNT (uint32_t)(sizeof(m_astcBtInstanceDataLut) / sizeof(m_astcBtInstanceDataLut[0])) |
Functions | |
| static stc_bt_intern_data_t * | BtGetInternDataPtr (volatile FM4_BT_PWM_TypeDef *pstcBt) |
| Return the internal data for a certain BT instance. More... | |
| void | Bt_IrqHandler (volatile FM4_BT_PWM_TypeDef *pstcBt, stc_bt_intern_data_t *pstcBtInternData) |
| BT interrupt service routine. More... | |
| static void | Bt_InitNvic (volatile FM4_BT_PWM_TypeDef *pstcBt) |
| Set NVIC Interrupt depending on BT instance. More... | |
| static void | Bt_DeInitNvic (volatile FM4_BT_PWM_TypeDef *pstcBt) |
| Clear NVIC Interrupt depending on BT instance. More... | |
| en_result_t | Bt_ConfigIOMode (volatile FM4_BT_PWM_TypeDef *pstcBt, en_bt_io_mode_t enIoMode) |
| Configure BT IO mode. More... | |
| en_result_t | Bt_SelTimerMode (volatile FM4_BT_PWM_TypeDef *pstcBt, en_bt_timer_mode_t enTimerMode) |
| Select timer function of BT. More... | |
| en_result_t | Bt_Pwm_Init (volatile FM4_BT_PWM_TypeDef *pstcBt, stc_bt_pwm_config_t *pstcPwmConfig) |
| Initialize PWM function of BT. More... | |
| en_result_t | Bt_Pwm_EnableCount (volatile FM4_BT_PWM_TypeDef *pstcBt) |
| Enable PWM timer counting. More... | |
| en_result_t | Bt_Pwm_DisableCount (volatile FM4_BT_PWM_TypeDef *pstcBt) |
| Disable PWM timer counting. More... | |
| en_result_t | Bt_Pwm_EnableSwTrig (volatile FM4_BT_PWM_TypeDef *pstcBt) |
| Start PWM timer by software. More... | |
| en_result_t | Bt_Pwm_EnableInt (volatile FM4_BT_PWM_TypeDef *pstcBt, stc_pwm_int_sel_t *pstcIntSel, stc_pwm_int_cb_t *pstcIntCallback) |
| Enable PWM timer interrupt. More... | |
| en_result_t | Bt_Pwm_DisableInt (volatile FM4_BT_PWM_TypeDef *pstcBt, stc_pwm_int_sel_t *pstcIntSel) |
| Disable PWM timer interrupt. More... | |
| en_int_flag_t | Bt_Pwm_GetIntFlag (volatile FM4_BT_PWM_TypeDef *pstcBt, en_bt_pwm_int_t enIntType) |
| Get interrupt flag of PWM timer. More... | |
| en_result_t | Bt_Pwm_ClrIntFlag (volatile FM4_BT_PWM_TypeDef *pstcBt, en_bt_pwm_int_t enIntType) |
| Clear interrupt flag of PWM timer. More... | |
| en_result_t | Bt_Pwm_WriteCycleVal (volatile FM4_BT_PWM_TypeDef *pstcBt, uint16_t u16Cycle) |
| Write Cycle value of PWM timer. More... | |
| en_result_t | Bt_Pwm_WriteDutyVal (volatile FM4_BT_PWM_TypeDef *pstcBt, uint16_t u16Duty) |
| Write duty value of PWM timer. More... | |
| uint16_t | Bt_Pwm_ReadCurCnt (volatile FM4_BT_PWM_TypeDef *pstcBt) |
| Read current count value of PWM timer. More... | |
| en_result_t | Bt_Ppg_Init (volatile FM4_BT_PWM_TypeDef *pstcBt, stc_bt_ppg_config_t *pstcPpgConfig) |
| Initialize PPG function of BT. More... | |
| en_result_t | Bt_Ppg_EnableCount (volatile FM4_BT_PWM_TypeDef *pstcBt) |
| Enable PPG timer counting. More... | |
| en_result_t | Bt_Ppg_DisableCount (volatile FM4_BT_PWM_TypeDef *pstcBt) |
| Disable PPG timer counting. More... | |
| en_result_t | Bt_Ppg_EnableSwTrig (volatile FM4_BT_PWM_TypeDef *pstcBt) |
| Start PPG timer by software. More... | |
| en_result_t | Bt_Ppg_EnableInt (volatile FM4_BT_PWM_TypeDef *pstcBt, stc_ppg_int_sel_t *pstcIntSel, stc_ppg_int_cb_t *pstcIntCallback) |
| Enable PPG timer interrupt. More... | |
| en_result_t | Bt_Ppg_DisableInt (volatile FM4_BT_PWM_TypeDef *pstcBt, stc_ppg_int_sel_t *pstcIntSel) |
| Disable PPG timer interrupt. More... | |
| en_int_flag_t | Bt_Ppg_GetIntFlag (volatile FM4_BT_PWM_TypeDef *pstcBt, en_bt_ppg_int_t enIntType) |
| Get interrupt flag of PPG timer. More... | |
| en_result_t | Bt_Ppg_ClrIntFlag (volatile FM4_BT_PWM_TypeDef *pstcBt, en_bt_ppg_int_t enIntType) |
| Clear interrupt flag of PPG timer. More... | |
| en_result_t | Bt_Ppg_WriteLowWidthVal (volatile FM4_BT_PWM_TypeDef *pstcBt, uint16_t u16Val) |
| Write low width count value of PPG timer. More... | |
| en_result_t | Bt_Ppg_WriteHighWidthVal (volatile FM4_BT_PWM_TypeDef *pstcBt, uint16_t u16Val) |
| Write high width count value of PPG timer. More... | |
| uint16_t | Bt_Ppg_ReadCurCnt (volatile FM4_BT_PWM_TypeDef *pstcBt) |
| Read current count value of PPG timer. More... | |
| en_result_t | Bt_Rt_Init (volatile FM4_BT_PWM_TypeDef *pstcBt, stc_bt_rt_config_t *pstcRtConfig) |
| Initialize RT function of BT. More... | |
| en_result_t | Bt_Rt_EnableCount (volatile FM4_BT_PWM_TypeDef *pstcBt) |
| Enable Reload timer counting. More... | |
| en_result_t | Bt_Rt_DisableCount (volatile FM4_BT_PWM_TypeDef *pstcBt) |
| Disable Reload timer counting. More... | |
| en_result_t | Bt_Rt_EnableSwTrig (volatile FM4_BT_PWM_TypeDef *pstcBt) |
| Start Reload timer by software. More... | |
| en_result_t | Bt_Rt_EnableInt (volatile FM4_BT_PWM_TypeDef *pstcBt, stc_rt_int_sel_t *pstcIntSel, stc_rt_int_cb_t *pstcIntCallback) |
| Enable Reload timer interrupt. More... | |
| en_result_t | Bt_Rt_DisableInt (volatile FM4_BT_PWM_TypeDef *pstcBt, stc_rt_int_sel_t *pstcIntSel) |
| Disable Reload timer interrupt. More... | |
| en_int_flag_t | Bt_Rt_GetIntFlag (volatile FM4_BT_PWM_TypeDef *pstcBt, en_bt_rt_int_t enIntType) |
| Get interrupt flag of Reload timer. More... | |
| en_result_t | Bt_Rt_ClrIntFlag (volatile FM4_BT_PWM_TypeDef *pstcBt, en_bt_rt_int_t enIntType) |
| Clear interrupt flag of Reload timer. More... | |
| en_result_t | Bt_Rt_WriteCycleVal (volatile FM4_BT_PWM_TypeDef *pstcBt, uint16_t u16Val) |
| Write count cycle of Reload timer. More... | |
| uint16_t | Bt_Rt_ReadCurCnt (volatile FM4_BT_PWM_TypeDef *pstcBt) |
| Read current count value of Reload timer. More... | |
| en_result_t | Bt_Pwc_Init (volatile FM4_BT_PWM_TypeDef *pstcBt, stc_bt_pwc_config_t *pstcPwcConfig) |
| Initialize PWC function of BT. More... | |
| en_result_t | Bt_Pwc_EnableCount (volatile FM4_BT_PWM_TypeDef *pstcBt) |
| Enable PWC timer counting. More... | |
| en_result_t | Bt_Pwc_DisableCount (volatile FM4_BT_PWM_TypeDef *pstcBt) |
| Disable PWC timer counting. More... | |
| en_result_t | Bt_Pwc_EnableInt (volatile FM4_BT_PWM_TypeDef *pstcBt, stc_pwc_int_sel_t *pstcIntSel, stc_pwc_int_cb_t *pstcIntCallback) |
| Enable PWC timer interrupt. More... | |
| en_result_t | Bt_Pwc_DisableInt (volatile FM4_BT_PWM_TypeDef *pstcBt, stc_pwc_int_sel_t *pstcIntSel) |
| Disable PWC timer interrupt. More... | |
| en_int_flag_t | Bt_Pwc_GetIntFlag (volatile FM4_BT_PWM_TypeDef *pstcBt, en_bt_pwc_int_t enIntType) |
| Get interrupt flag of PWC timer. More... | |
| en_result_t | Bt_Pwc_ClrIntFlag (volatile FM4_BT_PWM_TypeDef *pstcBt, en_bt_pwc_int_t enIntType) |
| Clear interrupt flag of PWC timer. More... | |
| en_stat_flag_t | Bt_Pwc_GetErrorFlag (volatile FM4_BT_PWM_TypeDef *pstcBt) |
| Get error flag of PWC timer. More... | |
| uint16_t | Bt_Pwc_Get16BitMeasureData (volatile FM4_BT_PWM_TypeDef *pstcBt) |
| Get 16 bits measure data of PWC timer. More... | |
| uint32_t | Bt_Pwc_Get32BitMeasureData (volatile FM4_BT_PWM_TypeDef *pstcBt) |
| Get 32 bits measure data of PWC timer. More... | |
| void | Bt_SetSimultaneousStart (uint16_t u16Value) |
| Set the Simultaneous Start register of Base timer. More... | |
Variables | |
| stc_bt_instance_data_t | m_astcBtInstanceDataLut [] |
| Look-up table for all enabled BT instances and their internal data. More... | |
A detailed description is available at BT Module description
History:
Definition in file bt.c.