34 lines
574 B
C
34 lines
574 B
C
/*
|
|
* cm_heatsink_emulator.h
|
|
*
|
|
* Created on: 14 Oct 2025
|
|
* Author: Christian L. V. Madsen (OZ1CM)
|
|
*/
|
|
|
|
#ifndef CM_HEATSINK_EMULATOR_H_
|
|
#define CM_HEATSINK_EMULATOR_H_
|
|
|
|
typedef struct {
|
|
char label[32];
|
|
float thermal_resistance; // In Kelvin/Watt or Celsius/Watt (you can mix!)
|
|
|
|
}cm_heatsink_thermalElement_t;
|
|
|
|
typedef struct {
|
|
|
|
cm_heatsink_thermalElement_t *thermalElements;
|
|
int thermalElements_len;
|
|
|
|
float power;
|
|
float ambientTemp;
|
|
float thermal_capacity;
|
|
|
|
// Dynamic
|
|
float heatsinkTemperature;
|
|
|
|
}cm_heatsinkEmul_t;
|
|
|
|
|
|
|
|
#endif /* CM_HEATSINK_EMULATOR_H_ */
|