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

ABOX IMD PWM capture and CAN reporting. More...

#include <stdint.h>
Include dependency graph for imd.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

void imd_init (void)
 
void imd_periodic (void)
 

Variables

static constexpr uint32_t IMD_PERIOD_MS = 1000
 
static constexpr uint32_t IMD_TIMER_ARR = 0xFFFFU
 
static constexpr uint32_t IMD_CAPTURE_IRQ_PRIORITY = 6U
 
static constexpr uint32_t IMD_TIMER_TICK_HZ = 100000U
 
static constexpr uint32_t IMD_CAPTURE_TIMEOUT_MS = 250U
 
static constexpr float IMD_NORMAL_FREQUENCY_HZ = 10.0
 
static constexpr float IMD_UNDERVOLTAGE_FREQUENCY_HZ = 20.0
 
static constexpr float IMD_STARTUP_FREQUENCY_HZ = 30.0
 
static constexpr float IMD_DEVICE_ERROR_FREQUENCY_HZ = 40.0
 
static constexpr float IMD_CONNECTION_FAULT_FREQUENCY_HZ = 50.0
 
static constexpr float IMD_FREQUENCY_TOLERANCE_PCT = 5.0
 
static constexpr float IMD_PERCENT_SCALE = 100.0
 
static constexpr float IMD_MEASUREMENT_MIN_DUTY_PCT = 5.0
 
static constexpr float IMD_MEASUREMENT_MAX_DUTY_PCT = 95.0
 
static constexpr float IMD_STARTUP_GOOD_MAX_DUTY_PCT = 10.0
 
static constexpr float IMD_STARTUP_BAD_MIN_DUTY_PCT = 90.0
 
static constexpr float IMD_FAULT_MIN_DUTY_PCT = 47.5
 
static constexpr float IMD_FAULT_MAX_DUTY_PCT = 52.5
 
static constexpr float IMD_RESISTANCE_AT_HALF_DUTY_KOHM = 1200.0
 
static constexpr float IMD_MAX_MEASURABLE_RESISTANCE_KOHM = 10000.0
 

Detailed Description

ABOX IMD PWM capture and CAN reporting.

Author
Aditya Saini (saini.nosp@m.19@p.nosp@m.urdue.nosp@m..edu)

Function Documentation

◆ imd_init()

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

◆ imd_periodic()

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

Variable Documentation

◆ IMD_CAPTURE_IRQ_PRIORITY

uint32_t IMD_CAPTURE_IRQ_PRIORITY = 6U
staticconstexpr

◆ IMD_CAPTURE_TIMEOUT_MS

uint32_t IMD_CAPTURE_TIMEOUT_MS = 250U
staticconstexpr

◆ IMD_CONNECTION_FAULT_FREQUENCY_HZ

float IMD_CONNECTION_FAULT_FREQUENCY_HZ = 50.0
staticconstexpr

◆ IMD_DEVICE_ERROR_FREQUENCY_HZ

float IMD_DEVICE_ERROR_FREQUENCY_HZ = 40.0
staticconstexpr

◆ IMD_FAULT_MAX_DUTY_PCT

float IMD_FAULT_MAX_DUTY_PCT = 52.5
staticconstexpr

◆ IMD_FAULT_MIN_DUTY_PCT

float IMD_FAULT_MIN_DUTY_PCT = 47.5
staticconstexpr

◆ IMD_FREQUENCY_TOLERANCE_PCT

float IMD_FREQUENCY_TOLERANCE_PCT = 5.0
staticconstexpr

◆ IMD_MAX_MEASURABLE_RESISTANCE_KOHM

float IMD_MAX_MEASURABLE_RESISTANCE_KOHM = 10000.0
staticconstexpr

◆ IMD_MEASUREMENT_MAX_DUTY_PCT

float IMD_MEASUREMENT_MAX_DUTY_PCT = 95.0
staticconstexpr

◆ IMD_MEASUREMENT_MIN_DUTY_PCT

float IMD_MEASUREMENT_MIN_DUTY_PCT = 5.0
staticconstexpr

◆ IMD_NORMAL_FREQUENCY_HZ

float IMD_NORMAL_FREQUENCY_HZ = 10.0
staticconstexpr

◆ IMD_PERCENT_SCALE

float IMD_PERCENT_SCALE = 100.0
staticconstexpr

◆ IMD_PERIOD_MS

uint32_t IMD_PERIOD_MS = 1000
staticconstexpr

◆ IMD_RESISTANCE_AT_HALF_DUTY_KOHM

float IMD_RESISTANCE_AT_HALF_DUTY_KOHM = 1200.0
staticconstexpr

◆ IMD_STARTUP_BAD_MIN_DUTY_PCT

float IMD_STARTUP_BAD_MIN_DUTY_PCT = 90.0
staticconstexpr

◆ IMD_STARTUP_FREQUENCY_HZ

float IMD_STARTUP_FREQUENCY_HZ = 30.0
staticconstexpr

◆ IMD_STARTUP_GOOD_MAX_DUTY_PCT

float IMD_STARTUP_GOOD_MAX_DUTY_PCT = 10.0
staticconstexpr

◆ IMD_TIMER_ARR

uint32_t IMD_TIMER_ARR = 0xFFFFU
staticconstexpr

◆ IMD_TIMER_TICK_HZ

uint32_t IMD_TIMER_TICK_HZ = 100000U
staticconstexpr

◆ IMD_UNDERVOLTAGE_FREQUENCY_HZ

float IMD_UNDERVOLTAGE_FREQUENCY_HZ = 20.0
staticconstexpr