I am writing a program to communicate with a device throught a serial port. The device embedded software reads in the packets by LSM (Least Significant Bit).

Can i hard code the binary numbers in my program to send to the device?

How am i going to send by LSM?