added BLDC Mode

This commit is contained in:
2025-02-10 22:41:59 +01:00
parent 01401b02b0
commit d08903bcbe
5 changed files with 65 additions and 18 deletions

View File

@@ -5,9 +5,20 @@
#include "ssd1306.h"
#include <stdbool.h>
#include "mcpwm.h"
typedef enum {
HALL_000 = 0b000, // Ungültiger Zustand
HALL_001 = 0b001,
HALL_010 = 0b010,
HALL_011 = 0b011,
HALL_100 = 0b100,
HALL_101 = 0b101,
HALL_110 = 0b110,
HALL_111 = 0b111 // Ungültiger Zustand
} HallState;
bool get_Hall(int HallSensorGPIO);
SSD1306_t *configure_OLED_old();
HallState get_Hall_Combi();
OutCombis get_output_combination(HallState hall_state);
#endif