first commit

This commit is contained in:
Christian Lind Vie Madsen
2025-10-14 10:48:25 +02:00
parent d352ae1dd6
commit dbb313977c
2 changed files with 64 additions and 0 deletions

33
cm_heatsink_emulator.h Normal file
View File

@@ -0,0 +1,33 @@
/*
* 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_ */