mirror of
https://github.com/eried/portapack-mayhem.git
synced 2025-07-27 16:56:15 -04:00
Added remaining buttons for TouchTunes remote
LCR transmit UI cleanup CC1101 data whitening function Uniformized tx progress message handling
This commit is contained in:
parent
26949773bb
commit
73d47cd77d
48 changed files with 504 additions and 486 deletions
|
@ -30,21 +30,20 @@ namespace serializer {
|
|||
|
||||
/* Raw: 00110110100111
|
||||
* NRZ-L: 00110110100111
|
||||
* NRZ-M: 00100100111010
|
||||
* NRZ-S: 10001110010000
|
||||
* RZ: 00 00 10 10 00 10 10 00 10 00 00 10 10 10
|
||||
* Bi-L: 01 01 10 10 01 10 10 01 10 01 01 10 10 10
|
||||
* Bi-M: 00 11 01 01 00 10 10 11 01 00 11 01 01 01
|
||||
* Bi-S: 01 01 00 11 01 00 11 01 00 10 10 11 00 11
|
||||
* NRZ-M: 00100100111010 (1 = transition)
|
||||
* NRZ-S: ?0001110010000 (0 = transition)
|
||||
* RZ: 00 00 10 10 00 10 10 00 10 00 00 10 10 10 (half bits)
|
||||
* Bi-L: 01 01 10 10 01 10 10 01 10 01 01 10 10 10 (1 = high to low, 0 = low to high)
|
||||
* Bi-M: 00 11 01 01 00 10 10 11 01 00 11 01 01 01 (1 = mid-bit transition, 0 = invert last level)
|
||||
* Bi-S: 01 01 00 11 01 00 11 01 00 10 10 11 00 11 (the opposite)
|
||||
* Diff M.: ...
|
||||
*/
|
||||
|
||||
size_t symbol_count(const serial_format_t& serial_format) {
|
||||
size_t count;
|
||||
|
||||
count = 1 + serial_format.data_bits; // Start
|
||||
count = 1 + serial_format.data_bits + serial_format.stop_bits; // Start + data + stop
|
||||
if (serial_format.parity) count++;
|
||||
count += serial_format.stop_bits;
|
||||
|
||||
return count;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue