Search:

Type: Posts; User: mr_monster

Search: Search took 0.00 seconds.

  1. Actually it does not matter what SPI is... The...

    Actually it does not matter what SPI is... The structure type is SPI_HandleTypeDef and it is defined in a header which indeed has public privileges. The thing is that I need to use the specific...
  2. Of course that should work, however the code...

    Of course that should work, however the code including the deceleration statement is automatically generated by a software and in case I will change settings it will be re-written. Can I somehow make...
  3. How to "share" (extern) a structure in my code?

    I'm writing a driver for communicating with a DAC, this will run on an ARM processor. The SPI communication initializes a structure called hspi3 and it hold various settings for the SPI hardware. I...
  4. Thanks for the quick comment. I started...

    Thanks for the quick comment. I started suspecting it might not finish the previous buffer because when I step through the code in debug it works well and this is only changing the timing of the...
  5. Win API serial communication - how to check buffer is empty?

    I am sending a number of msgs from different sources one after the other and it seems like it will start sending the next msg before it finished the 1st one. My guess is that the send buffer is not...
  6. laserlight - thanks for clearing that up!

    laserlight - thanks for clearing that up!
  7. I reaplced \n with NULL and that did the trick!...

    I reaplced \n with NULL and that did the trick! But why?!?
  8. You say the next file dump is being performed...

    You say the next file dump is being performed before the loop finished? How can that be?

    buf is decalres:


    unsigned char buf[128]; // buffer for incoming msgs
  9. unexpected results when writing to file.

    I have a program that gets serial data from a measurement instrument and saves into a char array called buf. Each time after sending the command I dump buf into a file using this code:


    void...
Results 1 to 9 of 9