> I am going to start an embedded C project under Debian Linux in the near future.
Sounds like a regular project to me - if you mean the target runs Debian.
Or are you developing using Debian,...
Type: Posts; User: Salem
> I am going to start an embedded C project under Debian Linux in the near future.
Sounds like a regular project to me - if you mean the target runs Debian.
Or are you developing using Debian,...
> What are the benefits of learning DSA?
The ability to write programs that take up more code and time than the usual 1-page student homework, finished in a single edit.
For example, if your...
> Most of the time the processor i am working with has very limited time
Which one?
Are you working with other more capable micro controllers the rest of the time?
> a. Analog data reading of...
Basically, you need to design one of these first.
Finite-state machine - Wikipedia
Did you read the rest of the console API?
PeekConsoleInput function - Windows Console | Microsoft Docs
There's no need to block on console input with peek.
What's a QR request?
Oh, for reference saying @member will just get your posts moderated.
This isn't twitter/discord/reddit or any other new-fangled social media things.
Specifically, it doesn't...
Unless you have a good reason for separating create from init, then "create is init" and "cleanup is destroy" is a much simpler interface.
For a start, you don't have to worry about garbage...
First off, a console program is already a windows program.
Just making it a GUI program would not solve your focus problem for example.
You should be able to ameliorate the focus problem with...
Are all elements of c_t the same type?
If they are, you can probably cook something up with offsetof - cppreference.com
Maybe review your other threads on the same subject:
MSB and LSB of the signed value
Signed and Unsigned Variables
Missing basics of signed and unsigned numbers (this was 3 years ago)
Mostly,...
How many 'member_of_interest' are there?
Anytime you start putting numeric suffixes on symbols is a sign you should be thinking about an array.
Then your 'member_of_interestx' parameter simply...
Looks OK, does it work?
Do you get anything at the receiver?
> sprintf(buffer,"%d",data);
You might want to add a space at the end.
sprintf(buffer,"%d ",data);
Otherwise your receiver will...
The UART is just a transport between two end points.
How you send "My array is of size of 100 of bit16." depends entirely on what the other end of the UART (the receiver) expects to see.
> void...
You can right-click on the watched variable, choose properties and change the watch expression to whatever you want.
You may as well promote the input directly to int32_t
Start with
int32_t l_temp_rawcount = (int32_t)rawcount;
int32_t l_temp_offset = l_temp_rawcount - 512;
> l_temp_square_u32 = (uint32_t) (l_temp_offset_s16 * l_temp_offset_s16);
Here, the...
Having setup a watch point on a pointer variable, use the context menu to then say "dereference".
16462
Depends what you want really.
If you're looking to make a GUI of some sort by the path of least resistance, then I can recommend WxWidgets.
It comes with an extensive set of sample applications...
On Linux, I use code::blocks and GCC
On Windows I use VS
Maybe, but there isn't a lot of choice TBH
List of widget toolkits - Wikipedia
The low level Win32 API is C, but you have to do a lot of work yourself if you're wanting to avoid all the creature...
Well it might be an idea to say
- which allegro you installed Allegro - Download - Latest version
- what the actual error message(s) were
- what your example test code looks like
- what you typed...
> I don't want to debug in terminal. Is it possible to debug in IDE
Yeah, CodeBlocks does a pretty reasonable job of driving the basics of gdb using the GUI.
But what you can do in the GUI is...
> Is this valid code?
Yeah, maybe, if you travel back to the 1970's.
It was rendered obsolete towards the end of the 1980's when the language got standardised.
Whether you can find a modern...
It works for me.
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#include <string.h>
void printBits64(uint64_t v, int firstBit, int lastBit)
{
You would define the start of your function like this
void paFunc(const float* in, float* out, long frames, void* data){
auto start = high_resolution_clock::now();
paConfig *config...