Loading files
This file is pinned to the selected release. Download the original to open it in your design tool.
#ifndef OC_PATTERNS_H_
#define OC_PATTERNS_H_
#include "OC_patterns_presets.h"
namespace OC {
typedef OC::Pattern Pattern;
static constexpr int kMaxPatternLength = 16;
static constexpr int kMinPatternLength = 2;
class Patterns {
public:
static const int NUM_PATTERNS;
enum {
PATTERN_USER_0_1,
PATTERN_USER_1_1,
PATTERN_USER_2_1,
PATTERN_USER_3_1,
PATTERN_USER_LAST,
PATTERN_USER_0_2,
PATTERN_USER_1_2,
PATTERN_USER_2_2,
PATTERN_USER_3_2,
PATTERN_USER_ALL = PATTERN_USER_3_2,
PATTERN_NONE = PATTERN_USER_LAST
};
static void Init();
static const int kMin = kMinPatternLength;
static const int kMax = kMaxPatternLength;
};
extern const char *const pattern_names[];
extern const char *const pattern_names_short[];
extern Pattern user_patterns[OC::Patterns::PATTERN_USER_ALL];
extern Pattern dummy_pattern;
};
#endif // OC_PATTERNS_H_
206070834This file is pinned to the selected release. Download the original to open it in your design tool.