Bar Logo 3.8/7.6 kw Totem pole Demonstration Application (Part-No. (not specified))
 
Content
     
Loading...
Searching...
No Matches
drv_dma.c File Reference

This is the driver source file for DMA driver. More...

#include <string.h>
#include "system/pins.h"
#include "secondary_core/sec_core_interface.h"
#include "driver/spi/drv_spi.h"
#include "driver/can/drv_can.h"
#include "driver/vac_monitor/vac_monitor.h"
#include "dma/dma.h"
#include "dma/dma_types.h"
#include "secondary_core/sec_core1.h"
#include "../mcc_generated_files/cmp/cmp1.h"
+ Include dependency graph for drv_dma.c:

Go to the source code of this file.

Data Structures

struct  DRV_DMA_DATA_s
 

Typedefs

typedef struct DRV_DMA_DATA_s DRV_DMA_DATA_t
 

Enumerations

enum  DRV_DMA_STATES_t { STATE_WAIT_VALID_VIN_SENSE_OFFSET = 0 , STATE_ONLINE }
 

Functions

void DRV_DMA_init (void)
 
static void DMA_Channel_updateAdcBuffers (void)
 
static void DMA_Channel_doAcMonitor (void)
 
static void DMA_Channel_updateCoreBuffers (uint16_t *coreBuffer)
 
static void DMA_Channel_resetAcMonitor (void)
 
static void DMA_Channel_updateStatusAndSendData (uint16_t *coreBuffer)
 
void DRV_DMA_getVinAverage (uint16_t *vinAvg)
 
uint16_t * DRV_DMA_getCoreBuffer (void)
 
void DMA_ChannelCallback (enum DMA_CHANNEL channel)
 This is the default callback with weak attribute. The user can override and implement the default callback without weak attribute or can register a custom callback function using DMA_ChannelCallbackRegister.
 

Variables

static DRV_DMA_DATA_t selfDma
 

Detailed Description

DMA Driver Source File

Definition in file drv_dma.c.

Typedef Documentation

◆ DRV_DMA_DATA_t

Definition at line 78 of file drv_dma.c.

Enumeration Type Documentation

◆ DRV_DMA_STATES_t

Section: Included Files

Enumerator
STATE_WAIT_VALID_VIN_SENSE_OFFSET 
STATE_ONLINE 

Definition at line 57 of file drv_dma.c.

Function Documentation

◆ DMA_Channel_doAcMonitor()

static void DMA_Channel_doAcMonitor ( void )
static

Definition at line 151 of file drv_dma.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ DMA_Channel_resetAcMonitor()

static void DMA_Channel_resetAcMonitor ( void )
static

Definition at line 195 of file drv_dma.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ DMA_Channel_updateAdcBuffers()

static void DMA_Channel_updateAdcBuffers ( void )
static

Definition at line 134 of file drv_dma.c.

+ Here is the caller graph for this function:

◆ DMA_Channel_updateCoreBuffers()

static void DMA_Channel_updateCoreBuffers ( uint16_t * coreBuffer)
static

Definition at line 169 of file drv_dma.c.

+ Here is the caller graph for this function:

◆ DMA_Channel_updateStatusAndSendData()

static void DMA_Channel_updateStatusAndSendData ( uint16_t * coreBuffer)
static

Definition at line 217 of file drv_dma.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ DRV_DMA_getCoreBuffer()

uint16_t * DRV_DMA_getCoreBuffer ( void )

Definition at line 257 of file drv_dma.c.

+ Here is the caller graph for this function:

◆ DRV_DMA_getVinAverage()

void DRV_DMA_getVinAverage ( uint16_t * vinAvg)

Definition at line 241 of file drv_dma.c.

+ Here is the caller graph for this function:

◆ DRV_DMA_init()

void DRV_DMA_init ( void )

Definition at line 90 of file drv_dma.c.

+ Here is the call graph for this function:

Variable Documentation

◆ selfDma

DRV_DMA_DATA_t selfDma
static

Definition at line 79 of file drv_dma.c.