From 588c8d4d88008f73103e1deece38af5677f263cd Mon Sep 17 00:00:00 2001 From: Carles Fernandez Date: Mon, 30 Sep 2024 16:14:28 +0200 Subject: [PATCH] Document Cshort_To_Gr_Complex Data Type Adapter implementation --- _sp-blocks/04-data-type-adapter.md | 37 +++++++++++++++++++++++++++++- 1 file changed, 36 insertions(+), 1 deletion(-) diff --git a/_sp-blocks/04-data-type-adapter.md b/_sp-blocks/04-data-type-adapter.md index 3856e388..998f6eb0 100644 --- a/_sp-blocks/04-data-type-adapter.md +++ b/_sp-blocks/04-data-type-adapter.md @@ -6,7 +6,7 @@ sidebar: nav: "sp-block" toc: true toc_sticky: true -last_modified_at: 2018-12-14T12:54:02-04:00 +last_modified_at: 2024-09-30T12:54:02-04:00 --- @@ -257,6 +257,41 @@ Example: DataTypeAdapter.implementation=Ishort_To_Complex ``` +### Implementation: `Cshort_To_Gr_Complex` + +This implementation takes samples of type `cshort` (complex samples with real +and imaginary components of 16-bits integers each) at its input and writes samples of type +`gr_complex` (complex samples with real and +imaginary components of 32 bits each) at its output. + +It accepts the following parameters: + +|---------- +| **Parameter** | **Description** | **Required** | +| :--------------: | :-------------- | :----------: | +| -------------- | +| `implementation` | `Cshort_to_Gr_Complex` | Mandatory | +| ------- | + + _Data Type Adapter implementation:_ **`Cshort_to_Gr_Complex`**. + {: style="text-align: center;"} + +Example: + +```ini +;######### DATA_TYPE_ADAPTER CONFIG ############ +DataTypeAdapter.implementation=Cshort_to_Gr_Complex +``` + +Please note that this implementation is currently available only in the `next` branch +of the [upstream repository](https://github.com/gnss-sdr/gnss-sdr) and will be included +in the next stable release of GNSS-SDR. +{: .notice--warning} + ### Implementation: `Pass_Through` This implementation copies samples from its input to its output.