PER Firmware
Loading...
Searching...
No Matches
powertrain.h File Reference

Powertrain implementation. More...

#include <stdint.h>
#include "common/amk/amk.h"
Include dependency graph for powertrain.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  torque_request_t
 
struct  powertrain_t
 

Functions

void powertrain_init (void)
 
void powertrain_periodic (void)
 
void powertrain_set_torque_request (torque_request_t request)
 
bool is_powertrain_ready (void)
 

Variables

powertrain_t g_powertrain
 
static constexpr uint32_t POWERTRAIN_PERIOD_MS = 15
 

Detailed Description

Powertrain implementation.

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

Function Documentation

◆ is_powertrain_ready()

bool is_powertrain_ready ( void )
Here is the caller graph for this function:

◆ powertrain_init()

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

◆ powertrain_periodic()

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

◆ powertrain_set_torque_request()

void powertrain_set_torque_request ( torque_request_t request)
Here is the caller graph for this function:

Variable Documentation

◆ g_powertrain

powertrain_t g_powertrain
extern

◆ POWERTRAIN_PERIOD_MS

uint32_t POWERTRAIN_PERIOD_MS = 15
staticconstexpr