---
name: "rte_bbdev_op_ldpc_enc"
section: "3"
platform: "linux"
package: "dpdk-doc"
version: "24.11.4-0+deb13u1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/rte_bbdev_op_ldpc_enc"
---

# rte\_bbdev\_op\_ldpc\_enc(3)

## NAME

rte\_bbdev\_op\_ldpc\_enc

## SYNOPSIS

`#include <rte_bbdev_op.h>`

### Data Fields

struct **rte\_bbdev\_op\_data** **input**\
 struct **rte\_bbdev\_op\_data** **output**\
 uint32\_t **op\_flags**\
 uint8\_t **rv\_index**\
 uint8\_t **basegraph**\
 uint16\_t **z\_c**\
 uint16\_t **n\_cb**\
 uint8\_t **q\_m**\
 uint16\_t **n\_filler**\
 uint8\_t **code\_block\_mode**\

## Detailed Description

Operation structure for LDPC encode. An operation can be performed on one CB at a time 'CB-mode'. An operation can be performed on one or multiple CBs that logically belong to a TB 'TB-mode'.

The input data is the CB or TB input to the decoder.

The output data is the ratematched CB or TB data, or the output after bit-selection if RTE\_BBDEV\_LDPC\_INTERLEAVER\_BYPASS is set.

The output mbuf data structure is expected to be allocated by the application with enough room for the output data.

Definition at line **717** of file **rte\_bbdev\_op.h**.

## Field Documentation

### struct rte\_bbdev\_op\_data input

The input TB or CB data

Definition at line **719** of file **rte\_bbdev\_op.h**.

### struct rte\_bbdev\_op\_data output

The rate matched TB or CB output buffer

Definition at line **721** of file **rte\_bbdev\_op.h**.

### uint32\_t op\_flags

Flags from rte\_bbdev\_op\_ldpcenc\_flag\_bitmasks

Definition at line **724** of file **rte\_bbdev\_op.h**.

### uint8\_t rv\_index

Rate matching redundancy version

Definition at line **727** of file **rte\_bbdev\_op.h**.

### uint8\_t basegraph

1: LDPC Base graph 1, 2: LDPC Base graph 2. \[3GPP TS38.212, section 5.2.2\]

Definition at line **731** of file **rte\_bbdev\_op.h**.

### uint16\_t z\_c

Zc, LDPC lifting size. \[3GPP TS38.212, section 5.2.2\]

Definition at line **735** of file **rte\_bbdev\_op.h**.

### uint16\_t n\_cb

Ncb, length of the circular buffer in bits. \[3GPP TS38.212, section 5.4.2.1\]

Definition at line **739** of file **rte\_bbdev\_op.h**.

### uint8\_t q\_m

Qm, modulation order {2,4,6,8,10}. \[3GPP TS38.212, section 5.4.2.2\]

Definition at line **743** of file **rte\_bbdev\_op.h**.

### uint16\_t n\_filler

Number of Filler bits, n\_filler = K – K’ \[3GPP TS38.212 section 5.2.2\]

Definition at line **747** of file **rte\_bbdev\_op.h**.

### uint8\_t code\_block\_mode

\[0 - TB : 1 - CB\]

Definition at line **749** of file **rte\_bbdev\_op.h**.

### struct rte\_bbdev\_op\_enc\_ldpc\_cb\_params cb\_params

Struct which stores Code Block specific parameters

Definition at line **752** of file **rte\_bbdev\_op.h**.

### struct rte\_bbdev\_op\_enc\_ldpc\_tb\_params tb\_params

Struct which stores Transport Block specific parameters

Definition at line **754** of file **rte\_bbdev\_op.h**.

## Author

Generated automatically by Doxygen for DPDK from the source code.
