| PDL for FM0+ Version1.0 Peripheral Driverl Library for FM0+

- Main Page
- Modules
- Data Structures
- Files

- File List
- Globals

Functions | Variables
C:/pdl_v10/library/driver/bt/bt.c File Reference
`#include "bt.h"`
Include dependency graph for bt.c:

Go to the source code of this file.

## Functions
static stc_bt_intern_data_t * | BtGetInternDataPtr (volatile FM0P_BT_PWM_TypeDef *pstcBt)
| Return the internal data for a certain BT instance.
void | Bt_IrqHandler (volatile FM0P_BT_PWM_TypeDef *pstcBt, stc_bt_intern_data_t *pstcBtInternData)
| BT interrupt service routine.
static void | Bt_InitNvic (volatile FM0P_BT_PWM_TypeDef *pstcBt)
| Set NVIC Interrupt depending on BT instance.
static void | Bt_DeInitNvic (volatile FM0P_BT_PWM_TypeDef *pstcBt)
| Clear NVIC Interrupt depending on BT instance.
en_result_t | Bt_ConfigIOMode (volatile FM0P_BT_PWM_TypeDef *pstcBt, en_bt_io_mode_t enIoMode)
| Configure BT IO mode.
en_result_t | Bt_SelTimerMode (volatile FM0P_BT_PWM_TypeDef *pstcBt, en_bt_timer_mode_t enTimerMode)
| Select timer function of BT.
en_result_t | Bt_Pwm_Init (volatile FM0P_BT_PWM_TypeDef *pstcBt, stc_bt_pwm_config_t *pstcPwmConfig)
| Initialize PWM function of BT.
en_result_t | Bt_Pwm_DeInit (volatile FM0P_BT_PWM_TypeDef *pstcBt)
| De-Initialize PWM function of BT.
en_result_t | Bt_Pwm_EnableCount (volatile FM0P_BT_PWM_TypeDef *pstcBt)
| Enable PWM timer counting.
en_result_t | Bt_Pwm_DisableCount (volatile FM0P_BT_PWM_TypeDef *pstcBt)
| Disable PWM timer counting.
en_result_t | Bt_Pwm_EnableSwTrig (volatile FM0P_BT_PWM_TypeDef *pstcBt)
| Start PWM timer by software.
en_result_t | Bt_Pwm_EnableInt (volatile FM0P_BT_PWM_TypeDef *pstcBt, stc_pwm_int_sel_t *pstcIntSel, stc_pwm_int_cb_t *pstcIntCallback)
| Enable PWM timer interrupt.
en_result_t | Bt_Pwm_DisableInt (volatile FM0P_BT_PWM_TypeDef *pstcBt, stc_pwm_int_sel_t *pstcIntSel)
| Disable PWM timer interrupt.
en_int_flag_t | Bt_Pwm_GetIntFlag (volatile FM0P_BT_PWM_TypeDef *pstcBt, en_bt_pwm_int_t enIntType)
| Get interrupt flag of PWM timer.
en_result_t | Bt_Pwm_ClrIntFlag (volatile FM0P_BT_PWM_TypeDef *pstcBt, en_bt_pwm_int_t enIntType)
| Clear interrupt flag of PWM timer.
en_result_t | Bt_Pwm_WriteCycleVal (volatile FM0P_BT_PWM_TypeDef *pstcBt, uint16_t u16Cycle)
| Write Cycle value of PWM timer.
en_result_t | Bt_Pwm_WriteDutyVal (volatile FM0P_BT_PWM_TypeDef *pstcBt, uint16_t u16Duty)
| Write duty value of PWM timer.
uint16_t | Bt_Pwm_ReadCurCnt (volatile FM0P_BT_PWM_TypeDef *pstcBt)
| Read current count value of PWM timer.
en_result_t | Bt_Ppg_Init (volatile FM0P_BT_PWM_TypeDef *pstcBt, stc_bt_ppg_config_t *pstcPpgConfig)
| Initialize PPG function of BT.
en_result_t | Bt_Ppg_DeInit (volatile FM0P_BT_PWM_TypeDef *pstcBt)
| De-Initialize PPG function of BT.
en_result_t | Bt_Ppg_EnableCount (volatile FM0P_BT_PWM_TypeDef *pstcBt)
| Enable PPG timer counting.
en_result_t | Bt_Ppg_DisableCount (volatile FM0P_BT_PWM_TypeDef *pstcBt)
| Disable PPG timer counting.
en_result_t | Bt_Ppg_EnableSwTrig (volatile FM0P_BT_PWM_TypeDef *pstcBt)
| Start PPG timer by software.
en_result_t | Bt_Ppg_EnableInt (volatile FM0P_BT_PWM_TypeDef *pstcBt, stc_ppg_int_sel_t *pstcIntSel, stc_ppg_int_cb_t *pstcIntCallback)
| Enable PPG timer interrupt.
en_result_t | Bt_Ppg_DisableInt (volatile FM0P_BT_PWM_TypeDef *pstcBt, stc_ppg_int_sel_t *pstcIntSel)
| Disable PPG timer interrupt.
en_int_flag_t | Bt_Ppg_GetIntFlag (volatile FM0P_BT_PWM_TypeDef *pstcBt, en_bt_ppg_int_t enIntType)
| Get interrupt flag of PPG timer.
en_result_t | Bt_Ppg_ClrIntFlag (volatile FM0P_BT_PWM_TypeDef *pstcBt, en_bt_ppg_int_t enIntType)
| Clear interrupt flag of PPG timer.
en_result_t | Bt_Ppg_WriteLowWidthVal (volatile FM0P_BT_PWM_TypeDef *pstcBt, uint16_t u16Val)
| Write low width count value of PPG timer.
en_result_t | Bt_Ppg_WriteHighWidthVal (volatile FM0P_BT_PWM_TypeDef *pstcBt, uint16_t u16Val)
| Write high width count value of PPG timer.
uint16_t | Bt_Ppg_ReadCurCnt (volatile FM0P_BT_PWM_TypeDef *pstcBt)
| Read current count value of PPG timer.
en_result_t | Bt_Rt_Init (volatile FM0P_BT_PWM_TypeDef *pstcBt, stc_bt_rt_config_t *pstcRtConfig)
| Initialize RT function of BT.
en_result_t | Bt_Rt_DeInit (volatile FM0P_BT_PWM_TypeDef *pstcBt)
| De-Initialize RT function of BT.
en_result_t | Bt_Rt_EnableCount (volatile FM0P_BT_PWM_TypeDef *pstcBt)
| Enable Reload timer counting.
en_result_t | Bt_Rt_DisableCount (volatile FM0P_BT_PWM_TypeDef *pstcBt)
| Disable Reload timer counting.
en_result_t | Bt_Rt_EnableSwTrig (volatile FM0P_BT_PWM_TypeDef *pstcBt)
| Start Reload timer by software.
en_result_t | Bt_Rt_EnableInt (volatile FM0P_BT_PWM_TypeDef *pstcBt, stc_rt_int_sel_t *pstcIntSel, stc_rt_int_cb_t *pstcIntCallback)
| Enable Reload timer interrupt.
en_result_t | Bt_Rt_DisableInt (volatile FM0P_BT_PWM_TypeDef *pstcBt, stc_rt_int_sel_t *pstcIntSel)
| Disable Reload timer interrupt.
en_int_flag_t | Bt_Rt_GetIntFlag (volatile FM0P_BT_PWM_TypeDef *pstcBt, en_bt_rt_int_t enIntType)
| Get interrupt flag of Reload timer.
en_result_t | Bt_Rt_ClrIntFlag (volatile FM0P_BT_PWM_TypeDef *pstcBt, en_bt_rt_int_t enIntType)
| Clear interrupt flag of Reload timer.
en_result_t | Bt_Rt_WriteCycleVal (volatile FM0P_BT_PWM_TypeDef *pstcBt, uint16_t u16Val)
| Write count cycle of Reload timer.
uint16_t | Bt_Rt_ReadCurCnt (volatile FM0P_BT_PWM_TypeDef *pstcBt)
| Read current count value of Reload timer.
en_result_t | Bt_Pwc_Init (volatile FM0P_BT_PWM_TypeDef *pstcBt, stc_bt_pwc_config_t *pstcPwcConfig)
| Initialize PWC function of BT.
en_result_t | Bt_Pwc_DeInit (volatile FM0P_BT_PWM_TypeDef *pstcBt)
| De-Initialize PWC function of BT.
en_result_t | Bt_Pwc_EnableCount (volatile FM0P_BT_PWM_TypeDef *pstcBt)
| Enable PWC timer counting.
en_result_t | Bt_Pwc_DisableCount (volatile FM0P_BT_PWM_TypeDef *pstcBt)
| Disable PWC timer counting.
en_result_t | Bt_Pwc_EnableInt (volatile FM0P_BT_PWM_TypeDef *pstcBt, stc_pwc_int_sel_t *pstcIntSel, stc_pwc_int_cb_t *pstcIntCallback)
| Enable PWC timer interrupt.
en_result_t | Bt_Pwc_DisableInt (volatile FM0P_BT_PWM_TypeDef *pstcBt, stc_pwc_int_sel_t *pstcIntSel)
| Disable PWC timer interrupt.
en_int_flag_t | Bt_Pwc_GetIntFlag (volatile FM0P_BT_PWM_TypeDef *pstcBt, en_bt_pwc_int_t enIntType)
| Get interrupt flag of PWC timer.
en_result_t | Bt_Pwc_ClrIntFlag (volatile FM0P_BT_PWM_TypeDef *pstcBt, en_bt_pwc_int_t enIntType)
| Clear interrupt flag of PWC timer.
en_stat_flag_t | Bt_Pwc_GetErrorFlag (volatile FM0P_BT_PWM_TypeDef *pstcBt)
| Get error flag of PWC timer.
uint16_t | Bt_Pwc_Get16BitMeasureData (volatile FM0P_BT_PWM_TypeDef *pstcBt)
| Get 16 bits measure data of PWC timer.
uint32_t | Bt_Pwc_Get32BitMeasureData (volatile FM0P_BT_PWM_TypeDef *pstcBt)
| Get 32 bits measure data of PWC timer.
void | Bt_SetSimultaneousStart (uint16_t u16Value)
| Set the Simultaneous Start register of Base timer.
## Variables
stc_bt_instance_data_t | m_astcBtInstanceDataLut [((PDL_PERIPHERAL_ENABLE_BT0==PDL_ON)?1:0)+((PDL_PERIPHERAL_ENABLE_BT1==PDL_ON)?1:0)+((PDL_PERIPHERAL_ENABLE_BT2==PDL_ON)?1:0)+((PDL_PERIPHERAL_ENABLE_BT3==PDL_ON)?1:0)+((PDL_PERIPHERAL_ENABLE_BT4==PDL_ON)?1:0)+((PDL_PERIPHERAL_ENABLE_BT5==PDL_ON)?1:0)+((PDL_PERIPHERAL_ENABLE_BT6==PDL_ON)?1:0)+((PDL_PERIPHERAL_ENABLE_BT7==PDL_ON)?1:0)]
| Look-up table for all enabled BT instances and their internal data.

## Detailed Description

A detailed description is available at BT Module description

History:

- 2014-01-09 1.0 Edison Zhang First version.

Definition in file bt.c.