Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8116931
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T03:59:13+00:00 2026-06-06T03:59:13+00:00

I am working on implementing BFSK algorithm on a DSP processor and need to

  • 0

I am working on implementing BFSK algorithm on a DSP processor and need to simulate the implementation on LINUX using predefined DSP infra files. The input data in coming in the the form of a float array. The individual bits are extracted from the input one by one. The modulated output is generated in the fprm of a typdef struct, which is a consists of two float variables (real and imaginary parts since the modulated data is a complex baseband signal). But the DSP simulation needs the output to be saved into a void pointer array. This cant be changed as the DSP APIs need it in the form of a void pointer. The definition of the struct is as follows :

typedef struct {
float re;
float im;
}complex_float;

I am able to copy the data into the void pointer using memcpy :

sigbuf=(float *)malloc(bitsPerBlk*sigLen*sizeof(complex_float));

memcpy(sigbuf, comSig, (bitsPerBlk*sigLen*sizeof(complex_float)));

sigbuf is the void pointer array where the ouput would be saved and comSig is the complex_float array where the modulated output is saved. The thing is I am not able to access the invidual values of the sigbuf array. I tried this as well

sigbuf=(complex_float *)malloc(bitsPerBlk*sigLen*sizeof(complex_float));

But still it doesnot work.

If someone can help me out it would be very helpful for me.

Thanks,
Anshu

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-06T03:59:15+00:00Added an answer on June 6, 2026 at 3:59 am

    I’m going to take a guess here. Why don’t you just make a copy of comSig to sigBuf then pass it to your API?

    complex_float *sigBuf = malloc(TOTAL_SIZE_OF_COMSIG);
    memcpy(sigBuf, comSig, TOTAL_SIZE_OF_COMSIG);
    

    I don’t know the docs on your function but it sounds like your API takes a void pointer to some buffer of data and perhaps its length or number of elements.

    dsp_api(sigBuf, sigBufSize);
    

    I think you are misunderstanding what a void pointer is and what your function wants. A void pointer is just a generic pointer to some data. It’s the functions way of taking in any data, then probably casting it to your complex_float structure to operate on the data.

    As a future reference to why you weren’t able to dereference a void pointer is because it has no size. You’d have to cast it to a type then you’d be able to dereference it.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

We are working implementing Single Sign On(SSO) using pingfederate . The basic implementation uses
I'm working on implementing a single pass depth-peeling algorithm by using atomic textures in
I've been working on implementing an api in c#. The implementation is going well,
I'm currently working on implementing a list-type structure at work, and I need it
I'm working on implementing DSA digital signature algorithm. I understand the algorithm itself, one
I am working on implementing UpNP on C++, and I need to get the
I'm working on implementing an Octave interpreter inside of an FastCGI session using C/C++
I'm working on implementing a high-performance server using IOCP & SocketAsyncEventArgs. From what I've
I'm working on implementing an FFT algorithm in assembly on an 8-bit microcontroller (HCS08)
I am currently working on implementing a program based on the huffman algorithm in

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.