Finalize thesis report
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful

Signed-off-by: Severin Kaderli <severin@kaderli.dev>
This commit is contained in:
Severin Kaderli 2023-01-17 17:55:44 +01:00
parent 1862068f09
commit 8fef45b856
Signed by: severinkaderli
GPG key ID: F419F8835B72F0C4
10 changed files with 5991 additions and 55 deletions

View file

@ -32,7 +32,7 @@ if contains(signal, preamble):
header = read_bits(packet, 0, 4)
display_header(header)
// Read the next n Bytes of the bitstream, according to the payload length, to get the payload
// Read the next n bytes of the bitstream, according to the payload length, to get the payload
payload = read_bits(packet, 4, header)
display_payload(payload)

View file

@ -22,15 +22,15 @@ packet = to_bits(header) + payload + to_bits(checksum)
// Encode packet using manchester encoding
encoded_packet = manchester_encode(packet)
// Start the transmission by sending the preamble
for symbol in preamble:
if symbol is 1:
stress_cpu(1000)
else:
idle_cpu(1000)
// Transmit the manchester encoded bit stream of the packet
while transmission_not_stopped:
// Start the transmission by sending the preamble
for symbol in preamble:
if symbol is 1:
stress_cpu(1000)
else:
idle_cpu(1000)
// Transmit the manchester encoded bit stream of the packet
for code_bit in encoded_packet:
if code_bit is 1:
stress_cpu(clock_speed)