![]() |
PDL for FM0+
Version1.0
Peripheral Driverl Library for FM0+
|
Go to the source code of this file.
Data Structures | |
struct | stc_csv_status |
Structure of CSV status. More... | |
Typedefs | |
typedef enum en_fcs_cr_div | en_fcs_cr_div_t |
Enumeration to define an index for each BT instance. | |
typedef struct stc_csv_status | stc_csv_status_t |
Structure of CSV status. | |
typedef void | fn_fcs_int_callback (void) |
FCS interrupt callback function type. | |
Enumerations | |
enum | en_fcs_cr_div { FcsCrDiv256 = 5, FcsCrDiv512 = 6, FcsCrDiv1024 = 7 } |
Enumeration to define an index for each BT instance. More... | |
Functions | |
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. | |
en_result_t | Csv_EnableFcsInt (fn_fcs_int_callback *pfnIntCallback) |
Enables FCS interrupts. | |
void | Csv_DisableFcsInt (void) |
Disables FCS interrupts. | |
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. | |
void | Csv_IrqHandler (void) |
CSV interrupt handler. |
Headerfile for CSV functions
History:
Definition in file csv.h.
typedef enum en_fcs_cr_div en_fcs_cr_div_t |
Enumeration to define an index for each BT instance.
typedef void fn_fcs_int_callback(void) |
typedef struct stc_csv_status stc_csv_status_t |
Structure of CSV status.
enum en_fcs_cr_div |
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 | ||
) |