T
Tom Van Ginneken
Hi,
I need to write binary data to a serial port. I am using this function:
#include <unistd.h>
ssize_t write(int fd, const void *buf, size_t count);
I am able to write a alpha-numeric character to the port using this:
write (filedescriptor,"a",1);
But I want to write a byte of 1's and 0's to this port. For examples, I want
to write 00000011 to this file descriptor.
How do I do this?
Many Thanks!!
Regards,
Tom
I need to write binary data to a serial port. I am using this function:
#include <unistd.h>
ssize_t write(int fd, const void *buf, size_t count);
I am able to write a alpha-numeric character to the port using this:
write (filedescriptor,"a",1);
But I want to write a byte of 1's and 0's to this port. For examples, I want
to write 00000011 to this file descriptor.
How do I do this?
Many Thanks!!
Regards,
Tom