osmo-gmr: Scrambling

osmo-gmr 0.2.104-2b98 Osmocom GMR-1

Files | Macros | Functions
Scrambling
GMR-1 Layer 1 library » Channel coding primitives

## Files
file | scramb.h
| Osmocom GMR-1 scrambling header.
file | scramb.c
| Osmocom GMR-1 scrambling implementation.

## Macros
#define | GMR1_SCRAMBLE_REG_INIT 0x4d4b

## Functions
void | gmr1_scramble_sbit (sbit_t *out, const sbit_t *in, int len)
| Scrambles/Unscrambles a softbit vector. More...
void | gmr1_scramble_ubit (ubit_t *out, const ubit_t *in, int len)
| Scrambles/Unscrambles an unpacked hard bit vector. More...

## Detailed Description

## Function Documentation

## ◆ gmr1_scramble_sbit()

void gmr1_scramble_sbit | ( | sbit_t * | out,
|  | const sbit_t * | in,
|  | int | len
| ) |  |

Scrambles/Unscrambles a softbit vector.

Parameters

  [out] | out | output sbit_t array
  [in] | in | input sbit_t array
  [in] | len | length of the array to convert

The output array can be equal to the input array for in-place scrambling/unscrambling

Referenced by gmr1_bcch_decode(), gmr1_ccch_decode(), gmr1_facch3_decode(), gmr1_facch9_decode(), gmr1_rach_decode(), gmr1_tch3_decode(), and gmr1_xch_dc12_decode().

## ◆ gmr1_scramble_ubit()

void gmr1_scramble_ubit | ( | ubit_t * | out,
|  | const ubit_t * | in,
|  | int | len
| ) |  |

Scrambles/Unscrambles an unpacked hard bit vector.

Parameters

  [out] | out | output ubit_t array
  [in] | in | input ubit_t array
  [in] | len | length of the array to convert

The output array can be equal to the input array for in-place scrambling/unscrambling