ykp_command;
ykp_configure_command;
yk_write_command;
+ ykp_set_extflag_USE_NUMERIC_KEYPAD;
+ ykp_set_extflag_FAST_TRIG;
+ ykp_set_extflag_ALLOW_UPDATE;
+ ykp_set_extflag_DORMANT;
# Variables:
} LIBYKPERS_1.6;
" [-]serial-usb-visible set/clear SERIAL_USB_VISIBLE\n"
" [-]serial-api-visible set/clear SERIAL_API_VISIBLE\n"
"\n"
+" Extended flags for firmware version 2.3 and above:\n"
+" [-]use-numeric-keypad set/clear USE_NUMERIC_KEYPAD\n"
+" [-]fast-trig set/clear FAST_TRIG\n"
+" [-]allow-update set/clear ALLOW_UPDATE\n"
+" [-]dormant set/clear DORMANT\n"
+"\n"
"-y always commit (do not prompt)\n"
"\n"
"-v verbose\n"
EXTFLAG("serial-btn-visible", SERIAL_BTN_VISIBLE)
EXTFLAG("serial-usb-visible", SERIAL_USB_VISIBLE)
EXTFLAG("serial-api-visible", SERIAL_API_VISIBLE)
+ EXTFLAG("use-numeric-keypad", USE_NUMERIC_KEYPAD)
+ EXTFLAG("fast-trig", FAST_TRIG)
+ EXTFLAG("allow-update", ALLOW_UPDATE)
+ EXTFLAG("dormant", DORMANT)
#undef EXTFLAG
else {
fprintf(stderr, "Unknown option '%s'\n",
def_set_extflag(SERIAL_BTN_VISIBLE,vcheck_v22_or_greater)
def_set_extflag(SERIAL_USB_VISIBLE,vcheck_v22_or_greater)
def_set_extflag(SERIAL_API_VISIBLE,vcheck_v22_or_greater)
+def_set_extflag(USE_NUMERIC_KEYPAD,vcheck_v23_or_greater)
+def_set_extflag(FAST_TRIG,vcheck_v23_or_greater)
+def_set_extflag(ALLOW_UPDATE,vcheck_v23_or_greater)
+def_set_extflag(DORMANT,vcheck_v23_or_greater)
const char str_key_value_separator[] = ": ";
const char str_hex_prefix[] = "h:";
{ EXTFLAG_SERIAL_BTN_VISIBLE, "SERIAL_BTN_VISIBLE", vcheck_v22_or_greater, 0 },
{ EXTFLAG_SERIAL_USB_VISIBLE, "SERIAL_USB_VISIBLE", vcheck_v22_or_greater, 0 },
{ EXTFLAG_SERIAL_API_VISIBLE, "SERIAL_API_VISIBLE", vcheck_v22_or_greater, 0 },
+ { EXTFLAG_USE_NUMERIC_KEYPAD, "USE_NUMERIC_KEYPAD", vcheck_v23_or_greater, 0 },
+ { EXTFLAG_FAST_TRIG, "FAST_TRIG", vcheck_v23_or_greater, 0 },
+ { EXTFLAG_ALLOW_UPDATE, "ALLOW_UPDATE", vcheck_v23_or_greater, 0 },
+ { EXTFLAG_DORMANT, "DORMANT", vcheck_v23_or_greater, 0 },
{ 0, "", 0 }
};
int ykp_set_extflag_SERIAL_BTN_VISIBLE(YKP_CONFIG *cfg, bool state);
int ykp_set_extflag_SERIAL_USB_VISIBLE(YKP_CONFIG *cfg, bool state);
int ykp_set_extflag_SERIAL_API_VISIBLE (YKP_CONFIG *cfg, bool state);
+int ykp_set_extflag_USE_NUMERIC_KEYPAD (YKP_CONFIG *cfg, bool state);
+int ykp_set_extflag_FAST_TRIG (YKP_CONFIG *cfg, bool state);
+int ykp_set_extflag_ALLOW_UPDATE (YKP_CONFIG *cfg, bool state);
+int ykp_set_extflag_DORMANT (YKP_CONFIG *cfg, bool state);
int ykp_write_config(const YKP_CONFIG *cfg,
int (*writer)(const char *buf, size_t count,