obcsim/msp_endian.c
void to_bigendian32(unsigned char *dest, unsigned long number)
{
  dest[0] = (unsigned char) (number >> 24) & 0xff;
  dest[1] = (unsigned char) (number >> 16) & 0xff;
  dest[2] = (unsigned char) (number >> 8)  & 0xff;
  dest[3] = (unsigned char) (number >> 0)  & 0xff;
}
/*
   Converts the entered number into a sequence of bytes that follows a Big
   Endian byte order.
*/
Converts the entered number into a sequence of bytes that follows a Big
Endian byte order.
Converts the entered number into a sequence of bytes that follows a Big Endian byte order .
void to_bigendian32(unsigned char *dest, unsigned long number)
{
  dest[0] = (unsigned char) (number >> 24) & 0xff;
  dest[1] = (unsigned char) (number >> 16) & 0xff;
  dest[2] = (unsigned char) (number >> 8)  & 0xff;
  dest[3] = (unsigned char) (number >> 0)  & 0xff;
}
void to_bigendian32 ( unsigned char * dest , unsigned long number ) { dest [ 0 ] = ( unsigned char ) ( number >> 24 ) & 0xff ; dest [ 1 ] = ( unsigned char ) ( number >> 16 ) & 0xff ; dest [ 2 ] = ( unsigned char ) ( number >> 8 ) & 0xff ; dest [ 3 ] = ( unsigned char ) ( number >> 0 ) & 0xff ; }
Converts the entered number into a sequence of bytes that follows a Big
Endian byte order.
Converts the entered number into a sequence of bytes that follows a Big Endian byte order .