Main Page   Modules   Data Structures   File List   Data Fields   Globals   Related Pages   Examples  

Binary Value Conversion


Defines

#define snd_host_to_LE_16(val)   __cpu_to_le16(val)
#define snd_LE_to_host_16(val)   __le16_to_cpu(val)
#define snd_host_to_LE_32(val)   __cpu_to_le32(val)
#define snd_LE_to_host_32(val)   __le32_to_cpu(val)
#define snd_host_to_BE_16(val)   __cpu_to_be16(val)
#define snd_BE_to_host_16(val)   __be16_to_cpu(val)
#define snd_host_to_BE_32(val)   __cpu_to_be32(val)
#define snd_BE_to_host_32(val)   __be32_to_cpu(val)

Detailed Description

Helper macros to convert binary values to/from a specific byte order.

Define Documentation

#define snd_BE_to_host_16 val       __be16_to_cpu(val)
 

Converts a 16-bit value from big endian to host byte order.

#define snd_BE_to_host_32 val       __be32_to_cpu(val)
 

Converts a 32-bit value from big endian to host byte order.

#define snd_host_to_BE_16 val       __cpu_to_be16(val)
 

Converts a 16-bit value from host to big endian byte order.

#define snd_host_to_BE_32 val       __cpu_to_be32(val)
 

Converts a 32-bit value from host to big endian byte order.

#define snd_host_to_LE_16 val       __cpu_to_le16(val)
 

Converts a 16-bit value from host to little endian byte order.

#define snd_host_to_LE_32 val       __cpu_to_le32(val)
 

Converts a 32-bit value from host to little endian byte order.

#define snd_LE_to_host_16 val       __le16_to_cpu(val)
 

Converts a 16-bit value from little endian to host byte order.

#define snd_LE_to_host_32 val       __le32_to_cpu(val)
 

Converts a 32-bit value from little endian to host byte order.


Generated on Thu Feb 20 16:45:52 2003 for ALSA project - the C library reference by doxygen1.2.18