![]() |
PDL for FM0+
Version1.0
Peripheral Driverl Library for FM0+
|
#include "csv.h"
Go to the source code of this file.
Functions | |
void | Csv_IrqHandler (void) |
CSV interrupt handler. | |
en_result_t | Csv_EnableFcsInt (fn_fcs_int_callback *pfnIntCallback) |
Enables FCS interrupts. | |
void | Csv_DisableFcsInt (void) |
Disables FCS interrupts. | |
void | Csv_EnableMainCsv (void) |
Enable CSV function for main clock. | |
void | Csv_DisableMainCsv (void) |
Disable CSV function for main clock. | |
void | Csv_EnableSubCsv (void) |
Enable CSV function for sub clock. | |
void | Csv_DisableSubCsv (void) |
The sub CSV function is disabled¡£ | |
uint8_t | Csv_GetCsvFailCause (stc_csv_status_t *pstcCsvStatus) |
Get CSV status. | |
void | Csv_EnableFcs (void) |
The FCS function is enabled. | |
void | Csv_DisableFcs (void) |
The FCS function is disabled. | |
void | Csv_EnableFcsReset (void) |
The FCS reset is enabled. | |
void | Csv_DisableFcsReset (void) |
The FCS reset is disabled. | |
void | Csv_ClrFcsIntFlag (void) |
Clears the FCS interrupt cause. | |
uint8_t | Csv_GetFcsIntFlag (void) |
Get Anomalous frequency detection interrupt status. | |
en_result_t | Csv_SetFcsCrDiv (en_fcs_cr_div_t enDiv) |
Set Dividor of CR frequency to be measured by FCS. | |
void | Csv_SetFcsDetectRange (uint16_t u16LowerVal, uint16_t u16UpperVal) |
Frequency lower detection window setting. | |
uint16_t | Csv_GetFcsDetectCount (void) |
Get the counter value of frequency detection using the main clock. | |
Variables | |
static fn_fcs_int_callback * | m_pfnIntCallback = NULL |
< CSV internal interrupt callback |
A detailed description is available at CSV Module description
History:
Definition in file csv.c.
void Csv_ClrFcsIntFlag | ( | void | ) |
void Csv_DisableFcs | ( | void | ) |
void Csv_DisableFcsInt | ( | void | ) |
Disables FCS interrupts.
Definition at line 121 of file csv.c.
References PDL_DEFAULT_INTERRUPT_LEVEL.
void Csv_DisableFcsReset | ( | void | ) |
void Csv_DisableMainCsv | ( | void | ) |
void Csv_DisableSubCsv | ( | void | ) |
void Csv_EnableFcs | ( | void | ) |
en_result_t Csv_EnableFcsInt | ( | fn_fcs_int_callback * | pfnIntCallback | ) |
Enables FCS interrupts.
Definition at line 99 of file csv.c.
References ErrorInvalidParameter, m_pfnIntCallback, Ok, and PDL_IRQ_LEVEL_CSV.
void Csv_EnableFcsReset | ( | void | ) |
void Csv_EnableMainCsv | ( | void | ) |
void Csv_EnableSubCsv | ( | void | ) |
uint8_t Csv_GetCsvFailCause | ( | stc_csv_status_t * | pstcCsvStatus | ) |
Get CSV status.
pstcCsvStatus | Pointer to status information structure of CSV |
Ok | Get CSV status normally. |
Definition at line 185 of file csv.c.
References stc_csv_status::bCsvMainClockStatus, stc_csv_status::bCsvSubClockStatus, FALSE, Ok, and TRUE.
uint16_t Csv_GetFcsDetectCount | ( | void | ) |
uint8_t Csv_GetFcsIntFlag | ( | void | ) |
void Csv_IrqHandler | ( | void | ) |
CSV interrupt handler.
Definition at line 88 of file csv.c.
References m_pfnIntCallback.
Referenced by CSV_IRQHandler().
en_result_t Csv_SetFcsCrDiv | ( | en_fcs_cr_div_t | enDiv | ) |
Set Dividor of CR frequency to be measured by FCS.
enDiv |
|
Ok | Dividor of CR frequency set normally |
ErrorInvalidParameter | enDiv > FcsCrDiv1024 |
Definition at line 290 of file csv.c.
References ErrorInvalidParameter, FcsCrDiv1024, FcsCrDiv256, FcsCrDiv512, and Ok.
void Csv_SetFcsDetectRange | ( | uint16_t | u16LowerVal, |
uint16_t | u16UpperVal | ||
) |
fn_fcs_int_callback* m_pfnIntCallback = NULL [static] |
< CSV internal interrupt callback
Definition at line 69 of file csv.c.
Referenced by Csv_EnableFcsInt(), and Csv_IrqHandler().