making enum less public API

This commit is contained in:
rusefillc 2023-02-15 08:43:15 -05:00
parent 4fc1f5ad24
commit d4f02bbece
3 changed files with 8 additions and 7 deletions

View File

@ -39,13 +39,6 @@ typedef enum __attribute__ ((__packed__))
PIN_INVALID = 0x80 PIN_INVALID = 0x80
} brain_pin_diag_e; } brain_pin_diag_e;
// see also PWM_PHASE_MAX_WAVE_PER_PWM
// todo: better names?
enum class TriggerWheel : uint8_t {
T_PRIMARY = 0,
T_SECONDARY = 1,
};
typedef enum __attribute__ ((__packed__)) { typedef enum __attribute__ ((__packed__)) {
/** /**
* This mode is useful for troubleshooting and research - events are logged but no effects on phase synchronization * This mode is useful for troubleshooting and research - events are logged but no effects on phase synchronization

View File

@ -30,6 +30,7 @@
#include <stdio.h> #include <stdio.h>
#include "auto_generated_enums.h" #include "auto_generated_enums.h"
#include "trigger_structure.h"
#include "auto_generated_commonenum.h" #include "auto_generated_commonenum.h"
#include "auto_generated_enginetypes.h" #include "auto_generated_enginetypes.h"
#include "efilib.h" #include "efilib.h"

View File

@ -14,6 +14,13 @@
#include "engine_configuration_generated_structures.h" #include "engine_configuration_generated_structures.h"
#include <rusefi/isnan.h> #include <rusefi/isnan.h>
// see also PWM_PHASE_MAX_WAVE_PER_PWM
// todo: better names?
enum class TriggerWheel : uint8_t {
T_PRIMARY = 0,
T_SECONDARY = 1,
};
#define FOUR_STROKE_ENGINE_CYCLE 720 #define FOUR_STROKE_ENGINE_CYCLE 720
#define TRIGGER_GAP_DEVIATION 0.25f #define TRIGGER_GAP_DEVIATION 0.25f