19 lines
391 B
C
19 lines
391 B
C
// components/scheduler/include/scheduler_events.h
|
|
#pragma once
|
|
#include "esp_event.h"
|
|
#include <stdbool.h>
|
|
#include <stdint.h>
|
|
|
|
ESP_EVENT_DECLARE_BASE(SCHED_EVENTS);
|
|
|
|
typedef enum
|
|
{
|
|
SCHED_EVENT_INIT = 0,
|
|
SCHED_EVENT_WINDOW_CHANGED,
|
|
} sched_event_id_t;
|
|
|
|
typedef struct
|
|
{
|
|
bool allowed_now;
|
|
uint16_t current_limit_a; // 0 se fora de janela / sem override
|
|
} sched_event_state_t; |