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

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

#include "driver/dma/drv_dma.h"
#include "drv_can.h"
#include "driver/vac_monitor/vac_monitor.h"
#include "driver/spi/drv_spi.h"
#include "driver/i2c/drv_i2c.h"
#include "../../../revision.h"
#include "can/can_interface.h"
#include "system/pins.h"
#include "can/can1.h"
#include "secondary_core/sec_core1.h"
#include "../sources_common/Totempole_Application_Setup.h"
+ Include dependency graph for drv_can.c:

Go to the source code of this file.

Data Structures

struct  HOUSEKEEPING_STATUS_s
 

Typedefs

typedef struct HOUSEKEEPING_STATUS_s HOUSEKEEPING_STATUS_t
 
typedef struct CAN_MSG_OBJ CAN_MSG_OBJ_t
 

Functions

void CAN_TX_Obj_Init (void)
 
void Housekeeping_Flags_Update (void)
 
void CAN_Transmit_to_GUI (void)
 
void CAN_Receive_from_GUI (void)
 

Variables

static HOUSEKEEPING_STATUS_t housekeeping_status
 
static uint16_t MSIFIFOrec [32]
 
static uint8_t can_sendbuffer [64]
 
static uint16_t protocolAData [5]
 
static CAN_MSG_OBJ_t CANBRIDGE_MSGOBJ_TX
 
static CAN_MSG_OBJ_t CANBRIDGE_MSGOBJ_RX
 
static CAN_MSG_OBJ_t CANBRIDGE_FIRMWARE_VERSION_TX
 
static uint8_t firmware_version [32]
 

Detailed Description

CAN Driver Source File

Definition in file drv_can.c.

Typedef Documentation

◆ CAN_MSG_OBJ_t

typedef struct CAN_MSG_OBJ CAN_MSG_OBJ_t

Definition at line 91 of file drv_can.c.

◆ HOUSEKEEPING_STATUS_t

Definition at line 82 of file drv_can.c.

Function Documentation

◆ CAN_Receive_from_GUI()

void CAN_Receive_from_GUI ( void )

Definition at line 411 of file drv_can.c.

+ Here is the call graph for this function:

◆ CAN_Transmit_to_GUI()

void CAN_Transmit_to_GUI ( void )

Definition at line 299 of file drv_can.c.

+ Here is the call graph for this function:

◆ CAN_TX_Obj_Init()

void CAN_TX_Obj_Init ( void )

Definition at line 111 of file drv_can.c.

◆ Housekeeping_Flags_Update()

void Housekeeping_Flags_Update ( void )

Definition at line 148 of file drv_can.c.

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

Variable Documentation

◆ can_sendbuffer

uint8_t can_sendbuffer[64]
static

Definition at line 87 of file drv_can.c.

◆ CANBRIDGE_FIRMWARE_VERSION_TX

CAN_MSG_OBJ_t CANBRIDGE_FIRMWARE_VERSION_TX
static

Definition at line 96 of file drv_can.c.

◆ CANBRIDGE_MSGOBJ_RX

CAN_MSG_OBJ_t CANBRIDGE_MSGOBJ_RX
static

Definition at line 94 of file drv_can.c.

◆ CANBRIDGE_MSGOBJ_TX

CAN_MSG_OBJ_t CANBRIDGE_MSGOBJ_TX
static

Definition at line 93 of file drv_can.c.

◆ firmware_version

uint8_t firmware_version[32]
static
Initial value:
= {'p', 'r', 'i',':',' ',
REV_MAJOR,'.',REV_MINOR,'.',REV_PATCH,
',',' ','s','e','c',':',' ','.','.','.','.','.','.','.'}

Definition at line 98 of file drv_can.c.

◆ housekeeping_status

HOUSEKEEPING_STATUS_t housekeeping_status
static

Definition at line 84 of file drv_can.c.

◆ MSIFIFOrec

uint16_t MSIFIFOrec[32]
static

Definition at line 86 of file drv_can.c.

◆ protocolAData

uint16_t protocolAData[5]
static

Definition at line 89 of file drv_can.c.