Search:

Type: Posts; User: Salem

Page 1 of 20 1 2 3 4

Search: Search took 0.58 seconds; generated 48 minute(s) ago.

  1. Replies
    2
    Views
    1,242

    > I am going to start an embedded C project under...

    > 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,...
  2. > What are the benefits of learning DSA? The...

    > 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...
  3. Replies
    2
    Views
    1,156

    > Most of the time the processor i am working...

    > 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...
  4. Basically, you need to design one of these first....

    Basically, you need to design one of these first.
    Finite-state machine - Wikipedia
  5. Did you read the rest of the console API? ...

    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.
  6. Thread: Qr esc pos

    by Salem
    Replies
    1
    Views
    127

    What's a QR request? Oh, for reference saying...

    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...
  7. Replies
    3
    Views
    290

    Unless you have a good reason for separating...

    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...
  8. First off, a console program is already a windows...

    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...
  9. Are all elements of c_t the same type? If they...

    Are all elements of c_t the same type?

    If they are, you can probably cook something up with offsetof - cppreference.com
  10. Replies
    1
    Views
    246

    Maybe review your other threads on the same...

    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,...
  11. How many 'member_of_interest' are there? ...

    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...
  12. Replies
    4
    Views
    439

    Looks OK, does it work? Do you get anything at...

    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...
  13. Replies
    4
    Views
    439

    The UART is just a transport between two end...

    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...
  14. You can right-click on the watched variable,...

    You can right-click on the watched variable, choose properties and change the watch expression to whatever you want.
  15. Replies
    7
    Views
    933

    You may as well promote the input directly to...

    You may as well promote the input directly to int32_t
  16. Replies
    7
    Views
    933

    Start with int32_t l_temp_rawcount =...

    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...
  17. Having setup a watch point on a pointer variable,...

    Having setup a watch point on a pointer variable, use the context menu to then say "dereference".
    16462
  18. Depends what you want really. If you're...

    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...
  19. Replies
    9
    Views
    648

    On Linux, I use code::blocks and GCC On Windows...

    On Linux, I use code::blocks and GCC
    On Windows I use VS
  20. Maybe, but there isn't a lot of choice TBH List...

    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...
  21. Replies
    1
    Views
    9,733

    Well it might be an idea to say - which allegro...

    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...
  22. Replies
    9
    Views
    648

    > I don't want to debug in terminal. Is it...

    > 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...
  23. > Is this valid code? Yeah, maybe, if you travel...

    > 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...
  24. Replies
    2
    Views
    4,739

    It works for me. #include ...

    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)
    {
  25. You would define the start of your function like...

    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...
Results 1 to 25 of 495
Page 1 of 20 1 2 3 4