PDL for FM4  Version1.2
Peripheral Driverl Library for FM4
csv.h File Reference
#include "pdl.h"
Include dependency graph for csv.h:
This graph shows which files directly or indirectly include this file:

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. More...
 
typedef struct stc_csv_status stc_csv_status_t
 Structure of CSV status. More...
 
typedef void fn_fcs_int_callback (void)
 FCS interrupt callback function type. More...
 

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)
 The main CSV function is enabled. More...
 
void Csv_DisableMainCsv (void)
 The main CSV function is disabled. More...
 
void Csv_EnableSubCsv (void)
 The sub CSV function is enabled. More...
 
void Csv_DisableSubCsv (void)
 The sub CSV function is disabled¡£ More...
 
uint8_t Csv_GetCsvFailCause (stc_csv_status_t *pstcCsvStatus)
 Get CSV status. More...
 
void Csv_EnableFcs (void)
 The FCS function is enabled. More...
 
void Csv_DisableFcs (void)
 The FCS function is disabled. More...
 
void Csv_EnableFcsReset (void)
 The FCS reset is enabled. More...
 
void Csv_DisableFcsReset (void)
 The FCS reset is disabled. More...
 
en_result_t Csv_EnableFcsInt (fn_fcs_int_callback *pfnIntCallback)
 Enables FCS interrupts. More...
 
void Csv_DisableFcsInt (void)
 Disables FCS interrupts. More...
 
void Csv_ClrFcsIntFlag (void)
 Clears the FCS interrupt cause. More...
 
uint8_t Csv_GetFcsIntFlag (void)
 Get Anomalous frequency detection interrupt status. More...
 
en_result_t Csv_SetFcsCrDiv (en_fcs_cr_div_t enDiv)
 FCS count cycle setting. More...
 
void Csv_SetFcsDetectRange (uint16_t u16LowerVal, uint16_t u16UpperVal)
 Frequency lower detection window setting. More...
 
uint16_t Csv_GetFcsDetectCount (void)
 Get the counter value of frequency detection using the main clock. More...
 
void Csv_IrqHandler (void)
 CSV interrupt handler. More...
 

Detailed Description

Headerfile for CSV functions

History:

  • 2013-10-11 1.0 Edison Zhang First version.

Definition in file csv.h.