mirror of
https://github.com/skot/ESP-Miner.git
synced 2025-03-25 17:21:55 +01:00
* initial changes for the gammaturbo bringup * added preliminary TPS546 changes * added preliminary EMC2103 support * ASIC temp seems to be maybe working. * magically now fan seems to have the right polarity * added in ideality and beta constants (currently unused). Fixed EMC2103_get_fan_speed() * abstract fan and ASIC temp into thermal functions * abstracted voltage regulator specifics out of tasks and into power.c and vcore.c functions * add TPS546 support for multiple models * move TPS40305/DS4432U vout setter to DS4432U.c * move all ASIC specific functions to asic.c * bad device_model nvs handling * remove old code * add workaround for TPS546 VIN_UV_WARN_LIMIT silicon bug.
16 lines
372 B
C
16 lines
372 B
C
#ifndef DS4432U_H_
|
|
#define DS4432U_H_
|
|
|
|
#include <stdbool.h>
|
|
#include "esp_check.h"
|
|
|
|
#define DS4432_VRFS 0.997
|
|
|
|
esp_err_t DS4432U_test(void);
|
|
esp_err_t DS4432U_init(void);
|
|
esp_err_t DS4432U_set_current_code(uint8_t output, uint8_t code);
|
|
esp_err_t DS4432U_get_current_code(uint8_t output, uint8_t *code);
|
|
esp_err_t DS4432U_set_voltage(float vout);
|
|
|
|
#endif /* DS4432U_H_ */
|