Miscellaneous utilties


Functions

uint16_t os_cpu_to_le16 (uint16_t x)
uint16_t os_le16_to_cpu (uint16_t x)
uint32_t os_cpu_to_le32 (uint32_t x)
uint32_t os_le32_to_cpu (uint32_t x)
uint64_t os_cpu_to_le64 (uint64_t x)
uint64_t os_le64_to_cpu (uint64_t x)

Function Documentation

uint16_t os_cpu_to_le16 ( uint16_t  x  ) 

Return a CPU (native) byte ordered 16-bit word in little endian byte order.

Parameters:
x CPU ordered word.
Returns:
the word in little-endian byte order.

uint32_t os_cpu_to_le32 ( uint32_t  x  ) 

Return a CPU (native) byte ordered 32-bit word in little endian byte order.

Parameters:
x CPU ordered word.
Returns:
the word in little-endian byte order.

uint64_t os_cpu_to_le64 ( uint64_t  x  ) 

Return a CPU (native) byte ordered 64-bit word in little endian byte order.

Parameters:
x CPU ordered word.
Returns:
the word in little-endian byte order.

uint16_t os_le16_to_cpu ( uint16_t  x  ) 

Return a little endian byte ordered 16-bit word in CPU (native) byte order.

Parameters:
x little endian word.
Returns:
the word in native byte order.

uint32_t os_le32_to_cpu ( uint32_t  x  ) 

Return a little endian byte ordered 32-bit word in CPU (native) byte order.

Parameters:
x little endian word.
Returns:
the word in native byte order.

uint64_t os_le64_to_cpu ( uint64_t  x  ) 

Return a little endian byte ordered 64-bit word in CPU (native) byte order.

Parameters:
x little endian word.
Returns:
the word in native byte order.


Generated on Wed Oct 27 15:14:03 2010 for oska by  doxygen 1.5.5