Add current limit configuration for VIN, MAIN, and USB
- Integrated current limit settings in `nconfig`. - Enabled API support for managing current limits. - Added UI components for configuring current limits. - Implemented backend logic for handling validations and updates. Signed-off-by: YoungSoo Shin <shinys000114@gmail.com>
This commit is contained in:
21
main/service/climit.h
Normal file
21
main/service/climit.h
Normal file
@@ -0,0 +1,21 @@
|
||||
//
|
||||
// Created by shinys on 25. 9. 4..
|
||||
//
|
||||
|
||||
#ifndef ODROID_POWER_MATE_CLIMIT_H
|
||||
#define ODROID_POWER_MATE_CLIMIT_H
|
||||
|
||||
#include "esp_err.h"
|
||||
|
||||
#include <stdbool.h>
|
||||
|
||||
#define VIN_CURRENT_LIMIT_MAX 8.0f
|
||||
#define MAIN_CURRENT_LIMIT_MAX 7.0f
|
||||
#define USB_CURRENT_LIMIT_MAX 5.0f
|
||||
|
||||
esp_err_t climit_set_vin(double value);
|
||||
esp_err_t climit_set_main(double value);
|
||||
esp_err_t climit_set_usb(double value);
|
||||
bool is_overcurrent();
|
||||
|
||||
#endif // ODROID_POWER_MATE_CLIMIT_H
|
||||
Reference in New Issue
Block a user