HPM SDK
HPMicro Software Development Kit
hpm_lin_clock_detection.h File Reference
#include "hpm_soc_feature.h"
#include "hpm_plb_drv.h"
#include "hpm_trgm_drv.h"
#include "hpm_dma_drv.h"
#include "hpm_dmamux_drv.h"
#include <math.h>

Go to the source code of this file.

Data Structures

struct  plb_lin_clock_t
 LIN clock detection. More...
 

Functions

void plb_lin_dma_isr_function (plb_lin_clock_t *cfg)
 plb lin clock detection isr function More...
 
hpm_stat_t plb_lin_clock_detection_init (plb_lin_clock_t *cfg)
 plb lin clock detection init More...
 
static bool plb_lin_clock_get_detection_status (plb_lin_clock_t *cfg)
 get detection status More...
 
static uint32_t plb_lin_clock_get_detection_freq (plb_lin_clock_t *cfg)
 get detection freq More...
 

Function Documentation

◆ plb_lin_clock_detection_init()

hpm_stat_t plb_lin_clock_detection_init ( plb_lin_clock_t cfg)

plb lin clock detection init

Parameters
cfgplb_lin_clock_t
Returns
hpm_stat_t

◆ plb_lin_clock_get_detection_freq()

static uint32_t plb_lin_clock_get_detection_freq ( plb_lin_clock_t cfg)
inlinestatic

get detection freq

The interface is not available after the callback function is enabled

Parameters
cfgplb_lin_clock_t
Returns
uint32_t

◆ plb_lin_clock_get_detection_status()

static bool plb_lin_clock_get_detection_status ( plb_lin_clock_t cfg)
inlinestatic

get detection status

The interface is not available after the callback function is enabled

Parameters
cfgplb_lin_clock_t
Returns
hpm_stat_t

◆ plb_lin_dma_isr_function()

void plb_lin_dma_isr_function ( plb_lin_clock_t cfg)

plb lin clock detection isr function

Parameters
cfgplb_lin_clock_t