![]() |
PDL for FM4
Version1.2
Peripheral Driverl Library for FM4
|
#include "ppg.h"
Go to the source code of this file.
Functions | |
| static void | Ppg_InitNvic (uint8_t u8Ch) |
| Set NVIC Interrupt depending on PPG channel. More... | |
| static void | Ppg_DeInitNvic (uint8_t u8Ch) |
| Clear NVIC Interrupt depending on PPG channel. More... | |
| void | Ppg_IrqHandler (en_ppg_irq_ch_t u8Ch) |
| PPG interrupt service routine. More... | |
| en_result_t | Ppg_Init (uint8_t u8CoupleCh, stc_ppg_config_t *pstcConfig) |
| Initialize PPG. More... | |
| en_result_t | Ppg_StartSoftwareTrig (uint8_t u8Ch) |
| Start PPG by software trigger. More... | |
| en_result_t | Ppg_StopSoftwareTrig (uint8_t u8Ch) |
| Stop PPG software trigger. More... | |
| en_result_t | Ppg_SelGateLevel (uint8_t u8EvenCh, en_ppg_gate_level_t enLevel) |
| Set the valid level of GATE signal. More... | |
| en_result_t | Ppg_ConfigUpCnt0 (stc_ppg_upcnt0_config_t *pstcConfig) |
| Configure the up counter of Timing Generator 0. More... | |
| void | Ppg_StartUpCnt0 (void) |
| Start the up counter of Timing Generator 0. More... | |
| en_stat_flag_t | Ppg_GetUpCnt0Status (void) |
| Get the work status of up counter of Timing Generator 0. More... | |
| en_result_t | Ppg_DisableTimerGen0StartTrig (stc_timer0_gen_ch_t *pstcTimer0GenCh) |
| Disable start trigger of Timing Generator 0. More... | |
| en_result_t | Ppg_ConfigUpCnt1 (stc_ppg_upcnt1_config_t *pstcConfig) |
| Configure the up counter of Timing Generator 1. More... | |
| void | Ppg_StartUpCnt1 (void) |
| Start the up counter of Timing Generator 1. More... | |
| en_stat_flag_t | Ppg_GetUpCnt1Status (void) |
| Get the work status of up counter of Timing Generator 1. More... | |
| en_result_t | Ppg_DisableTimerGen1StartTrig (stc_timer1_gen_ch_t *pstcTimer1GenCh) |
| Disable start trigger of Timing Generator 1. More... | |
| en_result_t | Ppg_ConfigUpCnt2 (stc_ppg_upcnt2_config_t *pstcConfig) |
| Configure the up counter of Timing Generator 2. More... | |
| void | Ppg_StartUpCnt2 (void) |
| Start the up counter of Timing Generator 2. More... | |
| en_stat_flag_t | Ppg_GetUpCnt2Status (void) |
| Get the work status of up counter of Timing Generator 2. More... | |
| en_result_t | Ppg_DisableTimerGen2StartTrig (stc_timer2_gen_ch_t *pstcTimer2GenCh) |
| Disable start trigger of Timing Generator 2. More... | |
| en_result_t | Ppg_EnableInt (uint8_t u8Ch, en_ppg_int_mode_t enIntMode, func_ptr_t pfnCallback) |
| Enable PPG interrupt. More... | |
| en_result_t | Ppg_DisableInt (uint8_t u8Ch) |
| Disable PPG interrupt. More... | |
| en_int_flag_t | Ppg_GetIntFlag (uint8_t u8Ch) |
| Get the interrupt flag of PPG. More... | |
| en_result_t | Ppg_ClrIntFlag (uint8_t u8Ch) |
| Clear PPG interrupt flag. More... | |
| en_result_t | Ppg_SetLevelWidth (uint8_t u8Ch, uint8_t u8LowWidth, uint8_t u8HighWidth) |
| Set the pulse width of PPG. More... | |
| en_result_t | Ppg_InitIgbt (stc_ppg_igbt_config_t *pstcPpgIgbt) |
| Initialize IGBT mode. More... | |
| void | Ppg_EnableIgbtMode (void) |
| Enable IGBT mode. More... | |
| void | Ppg_DisableIgbtMode (void) |
| Disable IGBT mode. More... | |
Variables | |
| static func_ptr_t | pfnPpgCallback [9] |
| Callback function pointer of PPG interrupt. More... | |
A detailed description is available at PPG Module description
History:
Definition in file ppg.c.