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

current sensing More...

#include "current_sense.h"
#include "main.h"
#include "switch.h"
#include "rtos/rtos.h"
#include "can_library/generated/PDU.h"
#include "fault_library/faults_common.h"
Include dependency graph for current_sense.c:

Functions

static void mux_select (mux_id_t mux_id, uint8_t mux_addr)
 
static float adc_to_current_ma (uint16_t adc_value)
 
void current_sense_periodic ()
 

Variables

static switch_id_t g_switch_poll_index = 0
 

Detailed Description

current sensing

Author
Irving Wang (irvin.nosp@m.gw@p.nosp@m.urdue.nosp@m..edu)

Function Documentation

◆ adc_to_current_ma()

static float adc_to_current_ma ( uint16_t adc_value)
static
Here is the caller graph for this function:

◆ current_sense_periodic()

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

◆ mux_select()

static void mux_select ( mux_id_t mux_id,
uint8_t mux_addr )
static
Here is the call graph for this function:
Here is the caller graph for this function:

Variable Documentation

◆ g_switch_poll_index

switch_id_t g_switch_poll_index = 0
static