1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677 |
- import enum
- class GDOSignalSelection(enum.IntEnum):
- """
- 0x00-0x02 IOCFG{2..0}.GDO?_CFG
- Table 41: GDOx Signal Selection (x = 0, 1, or 2)
- """
-
-
-
- RX_FIFO_AT_OR_ABOVE_THRESHOLD_OR_PACKET_END_REACHED = 0x01
- class _TransceiveMode(enum.IntEnum):
- """
- 0x08 PKTCTRL0.PKT_FORMAT
- """
- FIFO = 0b00
- SYNCHRONOUS_SERIAL = 0b01
- RANDOM_TRANSMISSION = 0b10
- ASYNCHRONOUS_SERIAL = 0b11
- class PacketLengthMode(enum.IntEnum):
- """
- 0x08 PKTCTRL0.LENGTH_CONFIG
- """
- FIXED = 0b00
- VARIABLE = 0b01
-
- class ModulationFormat(enum.IntEnum):
- """
- 0x12 MDMCFG2.MOD_FORMAT
- """
- FSK2 = 0b000
- GFSK = 0b001
- ASK_OOK = 0b011
- FSK4 = 0b100
- MSK = 0b111
- class SyncMode(enum.IntEnum):
- """
- 0x12 MDMCFG2.SYNC_MODE
- see "14.3 Byte Synchronization"
- """
- NO_PREAMBLE_AND_SYNC_WORD = 0b00
- TRANSMIT_16_MATCH_15_BITS = 0b01
- TRANSMIT_16_MATCH_16_BITS = 0b10
- TRANSMIT_32_MATCH_30_BITS = 0b11
|