Finalize thesis report
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
Signed-off-by: Severin Kaderli <severin@kaderli.dev>
This commit is contained in:
parent
1862068f09
commit
8fef45b856
10 changed files with 5991 additions and 55 deletions
|
@ -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)
|
||||
|
||||
|
|
|
@ -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)
|
||||
|
|
Reference in a new issue