[an error occurred while processing this directive]
|
union fnumber {
float fn;
char bytes[4];
}
number;
.....
number.fn = 80.0; // Присвоение значения переменной
.....
Xmit(number. bytes[0]); // Передать число
Xmit(number. bytes[1]); // по байтам,
Xmit(number. bytes[2]); // начиная с младшего байта
Xmit(number. bytes[3]); //
E-mail: info@telesys.ru