Decoder contains buffers and radio configuration.
| 62 | |
| 63 | // Decoder contains buffers and radio configuration. |
| 64 | type Decoder struct { |
| 65 | Cfg PacketConfig |
| 66 | wg *sync.WaitGroup |
| 67 | |
| 68 | Signal []float64 |
| 69 | Quantized []byte |
| 70 | |
| 71 | csum []float64 |
| 72 | demod Demodulator |
| 73 | |
| 74 | preambleStrs map[string]bool |
| 75 | preambles map[string][]Parser |
| 76 | protocols []string |
| 77 | |
| 78 | pkt []byte |
| 79 | |
| 80 | packed []byte |
| 81 | sIdxA, sIdxB []int |
| 82 | } |
| 83 | |
| 84 | func NewDecoder() Decoder { |
| 85 | return Decoder{ |
nothing calls this directly
no outgoing calls
no test coverage detected