Agora
1.2.0
Agora project
|
Go to the documentation of this file.
23 void Scramble(
void* scrambled,
const void* to_scramble,
24 size_t bytes_to_scramble);
25 void Scramble(
void* inout_bytes,
size_t bytes_to_scramble);
26 void Descramble(
void* descrambled,
const void* scrambled,
27 size_t bytes_to_descramble);
28 void Descramble(
void* inout_bytes,
size_t bytes_to_descramble);
49 static void WlanScrambler(
void* output_buffer,
const void* input_buffer,
51 std::bitset<kScramblerlength>& scram_buffer,
52 std::vector<std::byte>& bit_buffer);
63 size_t byte_buffer_size,
75 size_t byte_buffer_size,
84 #endif // SCRAMBLER_H_
byte
Definition: core.h:388
Scrambler()
Definition: scrambler.cc:18
static constexpr size_t kBitsInByte
Definition: scrambler.cc:14
static void WlanScrambler(void *output_buffer, const void *input_buffer, size_t num_bytes, std::bitset< kScramblerlength > &scram_buffer, std::vector< std::byte > &bit_buffer)
WLAN Scrambler of IEEE 802.11-2012.
Definition: scrambler.cc:60
Definition: scrambler.h:18
#define AGORA_LOG_TRACE(...)
Definition: logger.h:92
void Scramble(void *scrambled, const void *to_scramble, size_t bytes_to_scramble)
Definition: scrambler.cc:120
std::bitset< kScramblerlength > scram_buffer_
Definition: scrambler.h:78
static void ConvertBytesToBits(const std::byte *in_byte_buffer, size_t byte_buffer_size, std::byte *out_bit_buffer)
Convert a byte array to a bit array. MSB first.
Definition: scrambler.cc:23
static void ConvertBitsToBytes(const std::byte *in_bit_buffer, size_t byte_buffer_size, std::byte *out_byte_buffer)
Convert a bit array to a byte array. MSB first.
Definition: scrambler.cc:42
static constexpr size_t kBitsInitArraySize
Definition: scrambler.cc:15
Scramble Class and helper functions.
for i
Definition: generate_data.m:107
Plot Rx waveform for u
Definition: inspect_single_frame.m:108
void Descramble(void *descrambled, const void *scrambled, size_t bytes_to_descramble)
Definition: scrambler.cc:131
static constexpr uint8_t kScramblerlength
Definition: scrambler.h:16
static constexpr uint8_t kScramblerInitState
Definition: scrambler.h:15
static constexpr size_t kStartingVectorSize
Definition: scrambler.cc:16
x0
Definition: ofdmtxrx.py:399
std::vector< std::byte > bit_buffer_
Definition: scrambler.h:79
Definition: scrambler.cc:12