mirror of
https://github.com/qmk/qmk_firmware.git
synced 2026-09-25 11:29:04 +02:00
Stub out python client gen
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
from enum import IntFlag, IntEnum
|
||||
|
||||
|
||||
class XAPRouteError(Exception):
|
||||
pass
|
||||
|
||||
|
||||
class XAPSecureStatus(IntEnum):
|
||||
LOCKED = 0x00
|
||||
UNLOCKING = 0x01
|
||||
UNLOCKED = 0x02
|
||||
|
||||
|
||||
class XAPEventType(IntEnum):
|
||||
{%- for id, message in xap.broadcast_messages.messages | dictsort %}
|
||||
{{ message.define }} = {{ id }}
|
||||
{%- endfor %}
|
||||
|
||||
|
||||
class XAPFlags(IntFlag):
|
||||
{%- for bitnum, bitinfo in xap.response_flags.bits | dictsort %}
|
||||
{%- if bitinfo.define != "-" %}
|
||||
{{ bitinfo.define }} = 1 << {{ bitnum }}
|
||||
{%- endif %}
|
||||
{%- endfor %}
|
||||
Reference in New Issue
Block a user