48 lines
822 B
C
Executable File
48 lines
822 B
C
Executable File
#ifndef LOADBALANCER_H_
|
|
#define LOADBALANCER_H_
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
#include <stdbool.h>
|
|
#include <stdint.h>
|
|
#include "esp_err.h"
|
|
|
|
|
|
/**
|
|
* @brief Inicializa o módulo de load balancer
|
|
*/
|
|
void loadbalancer_init(void);
|
|
|
|
/**
|
|
* @brief Task contínua do algoritmo de balanceamento
|
|
*/
|
|
void loadbalancer_task(void *param);
|
|
|
|
/**
|
|
* @brief Ativa ou desativa o load balancing
|
|
*/
|
|
void loadbalancer_set_enabled(bool value);
|
|
|
|
/**
|
|
* @brief Verifica se o load balancing está ativo
|
|
*/
|
|
bool loadbalancer_is_enabled(void);
|
|
|
|
/**
|
|
* @brief Define a corrente máxima do grid
|
|
*/
|
|
esp_err_t load_balancing_set_max_grid_current(uint8_t max_grid_current);
|
|
|
|
/**
|
|
* @brief Obtém a corrente máxima do grid
|
|
*/
|
|
uint8_t load_balancing_get_max_grid_current(void);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif /* LOADBALANCER_H_ */
|