Added remaining buttons for TouchTunes remote

LCR transmit UI cleanup
CC1101 data whitening function
Uniformized tx progress message handling
This commit is contained in:
furrtek 2017-09-24 20:05:42 +01:00
parent 26949773bb
commit 73d47cd77d
48 changed files with 504 additions and 486 deletions

View file

@ -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;
};