54 lines
1.2 KiB
YAML
54 lines
1.2 KiB
YAML
id: variable_ieee802_15_4_variant_decoder
|
|
label: IEEE 802.15.4 Decoder Definition
|
|
flags: [show_id]
|
|
|
|
parameters:
|
|
- id: var_len
|
|
label: Variable Length
|
|
dtype: bool
|
|
default: 'True'
|
|
options: ['True', 'False']
|
|
option_labels: ['Enable', 'Disable']
|
|
|
|
- id: preamble
|
|
label: Preamble
|
|
dtype: raw
|
|
default: [0x55, 0x55, 0x55, 0x55, 0x55]
|
|
|
|
- id: preamble_thrsh
|
|
label: Preamble Threshold
|
|
dtype: int
|
|
default: 5
|
|
|
|
- id: sync_word
|
|
label: Synchronization Word
|
|
dtype: raw
|
|
default: [0x31, 0xe5]
|
|
|
|
- id: sync_thrsh
|
|
label: Synchronization Word Threshold
|
|
dtype: int
|
|
default: 3
|
|
|
|
- id: frame_len
|
|
label: (Maximum) Frame Length
|
|
dtype: int
|
|
default: 240
|
|
|
|
- id: crc
|
|
label: CRC
|
|
dtype: raw
|
|
default: 'satnogs.crc.CRC_NONE'
|
|
|
|
- id: whitening
|
|
label: Whitening
|
|
dtype: raw
|
|
default: 'satnogs.whitening_sptr(None)'
|
|
|
|
value: ${satnogs.ieee802_15_4_variant_decoder_make(preamble, preamble_thrsh, sync_word, sync_thrsh, crc, whitening, var_len, frame_len)}
|
|
|
|
templates:
|
|
imports: import satnogs
|
|
var_make: self.${id} = ${id} = satnogs.ieee802_15_4_variant_decoder_make(${preamble}, ${preamble_thrsh}, ${sync_word}, ${sync_thrsh}, ${crc}, ${whitening}, ${var_len}, ${frame_len})
|
|
|
|
file_format: 1 |