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

Modernized AMK driver. More...

#include "common/amk/amk.h"
Include dependency graph for amk.c:

Functions

void AMK_init (AMK_t *amk, const AMK_config_t *config)
 
void AMK_reset (AMK_t *amk)
 
void AMK_set_torque (AMK_t *amk, int16_t torque_percent)
 
static void AMK_stop (AMK_t *amk)
 
void AMK_periodic (AMK_t *amk, bool is_precharge_complete)
 

Variables

static constexpr uint32_t AMK_CAN_ERR_ID = 3587U
 
static constexpr uint32_t AMK_DC_BUS_ID = 1049U
 
static constexpr int16_t AMK_DEFAULT_POS_LIMIT = 2140
 
static constexpr int16_t AMK_DEFAULT_NEG_LIMIT = -500
 

Detailed Description

Function Documentation

◆ AMK_init()

void AMK_init ( AMK_t * amk,
const AMK_config_t * config )
Here is the caller graph for this function:

◆ AMK_periodic()

void AMK_periodic ( AMK_t * amk,
bool is_precharge_complete )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ AMK_reset()

void AMK_reset ( AMK_t * amk)
Here is the caller graph for this function:

◆ AMK_set_torque()

void AMK_set_torque ( AMK_t * amk,
int16_t torque_percent )
Here is the caller graph for this function:

◆ AMK_stop()

static void AMK_stop ( AMK_t * amk)
static
Here is the caller graph for this function:

Variable Documentation

◆ AMK_CAN_ERR_ID

uint32_t AMK_CAN_ERR_ID = 3587U
staticconstexpr

◆ AMK_DC_BUS_ID

uint32_t AMK_DC_BUS_ID = 1049U
staticconstexpr

◆ AMK_DEFAULT_NEG_LIMIT

int16_t AMK_DEFAULT_NEG_LIMIT = -500
staticconstexpr

◆ AMK_DEFAULT_POS_LIMIT

int16_t AMK_DEFAULT_POS_LIMIT = 2140
staticconstexpr