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