PER Firmware
Loading...
Searching...
No Matches
sdc.c File Reference

SDC task implementation. More...

#include "sdc.h"
#include "fault_library/faults_common.h"
#include "rtos/rtos.h"
#include "phal_G4/gpio/gpio.h"
#include "main.h"
Include dependency graph for sdc.c:

Classes

struct  sdc_node_t
 

Functions

void SDC_task_periodic (void)
 

Variables

static const sdc_node_t SDC_NODE_LUT []
 
static size_t g_sdc_poll_index = 0
 

Detailed Description

SDC task implementation.

Author
Irving Wang (irvin.nosp@m.gw@p.nosp@m.urdue.nosp@m..edu)
Millan Kumar (kumar.nosp@m.798@.nosp@m.purdu.nosp@m.e.ed.nosp@m.u)

Function Documentation

◆ SDC_task_periodic()

void SDC_task_periodic ( void )
Here is the call graph for this function:
Here is the caller graph for this function:

Variable Documentation

◆ g_sdc_poll_index

size_t g_sdc_poll_index = 0
static

◆ SDC_NODE_LUT

const sdc_node_t SDC_NODE_LUT[]
static
Initial value:
= {
{FAULT_ID_SDC1_IMD, 8},
{FAULT_ID_SDC2_BMS, 9},
{FAULT_ID_SDC3_BSPD, 10},
{FAULT_ID_SDC4_ECU_OK, 11},
{FAULT_ID_SDC5_BOTS, 12},
{FAULT_ID_SDC6_INERTIA, 13},
{FAULT_ID_SDC7_COCKPIT_ESTOP, 14},
{FAULT_ID_SDC9_FRONT_INTERLOCK, 15},
{FAULT_ID_SDC10_RIGHT_ESTOP, 7},
{FAULT_ID_SDC11_LEFT_ESTOP, 6},
{FAULT_ID_SDC12_MSD, 5},
{FAULT_ID_SDC13_E_METER, 4},
{FAULT_ID_SDC14_HVD, 3},
{FAULT_ID_SDC16_REAR_INTERLOCK, 2},
{FAULT_ID_SDC17_TSMS, 1},
{FAULT_ID_SDC19_PRECHARGE_COMPLETE, 0},
}