summaryrefslogtreecommitdiff
path: root/quantum/oryx.h
diff options
context:
space:
mode:
authorFlorian Didron <fdidron@users.noreply.github.com>2023-12-21 15:13:41 +0700
committerGitHub <noreply@github.com>2023-12-21 15:13:41 +0700
commit1a7e7e0563fd1dd01a6574dd4d0af8fc1add0172 (patch)
tree795abb06b704f7426525ff43a531e454c7023650 /quantum/oryx.h
parent47c470ea25b7c0c07182090dd3c5e54b34c2d701 (diff)
Remove pairing, fw22 (#379)
* chore: remove pairing code * fix: driver let total macro
Diffstat (limited to 'quantum/oryx.h')
-rw-r--r--quantum/oryx.h27
1 files changed, 5 insertions, 22 deletions
diff --git a/quantum/oryx.h b/quantum/oryx.h
index 063353468e..7caf039f5c 100644
--- a/quantum/oryx.h
+++ b/quantum/oryx.h
@@ -21,13 +21,8 @@ Once the host has paired, it can freely use the commands define in the Oryx_Comm
# define RAW_EPSIZE 32
#endif
-#define ORYX_PROTOCOL_VERSION = 0x01
+#define ORYX_PROTOCOL_VERSION = 0x02
#define ORYX_STOP_BIT -2
-#define PAIRING_BLINK_STEPS 512
-#define PAIRING_BLINK_END PAIRING_BLINK_STEPS * 60
-#define PAIRING_SEQUENCE_SIZE 3
-#define PAIRING_SEQUENCE_NUM_STORED 3
-#define PAIRING_STORAGE_SIZE PAIRING_SEQUENCE_SIZE* PAIRING_SEQUENCE_NUM_STORED * sizeof(uint16_t)
enum Oryx_Command_Code {
ORYX_CMD_GET_FW_VERSION,
@@ -69,32 +64,20 @@ enum Oryx_Error_Code {
extern bool oryx_state_live_training_enabled;
typedef struct {
- bool pairing;
bool paired;
bool rgb_control;
} rawhid_state_t;
extern rawhid_state_t rawhid_state;
-void create_pairing_code(void);
-void oryx_error(uint8_t code);
-bool store_pairing_sequence(keypos_t* pairing_sequence);
-keypos_t get_random_keypos(void);
-void pairing_init_handler(void);
-void pairing_validate_handler(void);
-void pairing_validate_eeprom_handler(void);
-void pairing_init_event(void);
-bool compare_sequences(keypos_t a[PAIRING_SEQUENCE_SIZE], keypos_t b[PAIRING_SEQUENCE_SIZE]);
-void pairing_key_input_event(void);
-void pairing_failed_event(void);
-void pairing_succesful_event(void);
-keypos_t* pairing_sequence(void);
+void oryx_error(uint8_t code);
+void pairing_failed_event(void);
+void pairing_succesful_event(void);
void oryx_layer_event(void);
-bool is_oryx_live_training_enabled(void);
bool process_record_oryx(uint16_t keycode, keyrecord_t* record);
void layer_state_set_oryx(layer_state_t state);
#if defined(RGB_MATRIX_ENABLE) && !defined(KEYBOARD_ergodox_ez_glow)
RGB webhid_leds[DRIVER_LED_TOTAL];
-#endif \ No newline at end of file
+#endif