Skip to content

Commit

Permalink
uart: refinement of bits and data boundaries, refactoring
Browse files Browse the repository at this point in the history
Start and end of signal boundaries refined. There is no overlap in data bits annotations now. Also packets boundaries are frame boundaries, because packet transmission actually starts at start bit and ends with stop bit.

New option put_sample_points added to put sample points at dedicated annotation rows with corresponding signal values, switched off by default

Options reading moved from runtime to init time for performance, state machine using to control decode process.

Calculations of constants in start() to avoid unnecessary overhead at runtime.

Reduced amount of IDLE events by doubling of IDLE period of each frame since 3rd. Max IDLE period equals samplerate, thus IDLE events min frequency is 1 Hz. This approach decreases function calls up to 10 times at idle periods, depends on data sparsity and baudrate selected.

Support of half stopbit values 0.5 and 1.5

Interrupt receiving stop bits on stop bit error and put stopbit error in annotation

Put data packets to python output

Put actual and expected signal at parity error to python output instead of dummy tuple
  • Loading branch information
sespivak committed Aug 5, 2022
1 parent b427af5 commit 271562f
Showing 1 changed file with 376 additions and 284 deletions.
Loading

0 comments on commit 271562f

Please sign in to comment.