0

Two questions:

1. What function will output N bytes of data? The data may contain and may end with numeric zero.
2. What function will cause the process to suspend for N milliseconds?

An explanation for question 1.

struct modbus_structure {
            char device_address;
            char function_code;
            UINT function_address;
            UINT address;
            UINT checksum;
      };
 
struct modbus_structure send_buffer
...
status = some_fput_function( send_buffer, 8, Port_Handle );

As I imagine it, some_fput_function takes 3 arguments, the data, the number of bytes to output, and the handle to use to output the data. Is there a function that will effectively do this?

Late edit, BTW, this is C only, compiled under the LCC compiler. No windows or GUI code.

Thanks for your time,
bkelly

3
Contributors
2
Replies
3
Views
11 Years
Discussion Span
Last Post by Dave Sinkula
0

With regard to question #2, that would be implementation specific. If you are not on a hosted system, I would imagine that you can at least name the platform, which may have its own specifics (and manuals) to query.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.