new buzzer component
This commit is contained in:
26
components/buzzer/include/buzzer_events.h
Normal file
26
components/buzzer/include/buzzer_events.h
Normal file
@@ -0,0 +1,26 @@
|
||||
#pragma once
|
||||
|
||||
#include "esp_event.h"
|
||||
|
||||
ESP_EVENT_DECLARE_BASE(BUZZER_EVENTS);
|
||||
|
||||
typedef enum {
|
||||
BUZZER_EVENT_PLAY_PATTERN,
|
||||
} buzzer_event_id_t;
|
||||
|
||||
typedef enum {
|
||||
BUZZER_PATTERN_NONE = 0,
|
||||
BUZZER_PATTERN_PLUGGED,
|
||||
BUZZER_PATTERN_UNPLUGGED,
|
||||
BUZZER_PATTERN_CHARGING,
|
||||
BUZZER_PATTERN_AP_START,
|
||||
BUZZER_PATTERN_CARD_READ,
|
||||
BUZZER_PATTERN_CARD_ADD,
|
||||
BUZZER_PATTERN_CARD_DENIED,
|
||||
BUZZER_PATTERN_MAX
|
||||
} buzzer_pattern_id_t;
|
||||
|
||||
|
||||
typedef struct {
|
||||
buzzer_pattern_id_t pattern;
|
||||
} buzzer_event_data_t;
|
||||
Reference in New Issue
Block a user