Hi. Please see the short sample below:
unsigned int var1;
var1 = 0x0001; // 16-bit data to device A
var1 = 0x01; // 8-bit data to device B
Send_Data(var1);
my objective: Send_Data subroutine function depends on the data length of var1. How can this be done?
Thank you for your help.
unsigned int var1;
var1 = 0x0001; // 16-bit data to device A
var1 = 0x01; // 8-bit data to device B
Send_Data(var1);
my objective: Send_Data subroutine function depends on the data length of var1. How can this be done?
Thank you for your help.