os/ossrv/genericopenlibs/openenvcore/include/sys/endian.dosc
author sl
Tue, 10 Jun 2014 14:32:02 +0200
changeset 1 260cb5ec6c19
permissions -rw-r--r--
Update contrib.
     1 /** @file   ../include/sys/endian.h
     2 @internalComponent	   
     3 */
     4  
     5 /** @fn be16dec(const void *pp)
     6 
     7 Alignment-agnostic encode or decode bytestream to or from little or big endian.
     8 
     9 @publishedAll
    10 @released
    11 */
    12 
    13 
    14 /** @fn be32dec(const void *pp)
    15 
    16 Alignment-agnostic encode or decode bytestream to or from little or big endian.
    17 
    18 @publishedAll
    19 @released
    20 */
    21 
    22 /** @fn be64dec(const void *pp)
    23 
    24 Alignment-agnostic encode or decode bytestream to or from little or big endian.
    25 
    26 @publishedAll
    27 @released
    28 */
    29 
    30 
    31 /** @fn le16dec(const void *pp)
    32 
    33 Alignment-agnostic encode or decode bytestream to or from little or big endian.
    34 
    35 @publishedAll
    36 @released
    37 */
    38 
    39 
    40 /** @fn le32dec(const void *pp)
    41 
    42 Alignment-agnostic encode or decode bytestream to or from little or big endian.
    43 
    44 @publishedAll
    45 @released
    46 */
    47 
    48 
    49 /** @fn le64dec(const void *pp)
    50 
    51 Alignment-agnostic encode or decode bytestream to or from little or big endian.
    52 
    53 @publishedAll
    54 @released
    55 */
    56 
    57 
    58 /** @fn be16enc(void *pp, uint16_t u)
    59 
    60 Alignment-agnostic encode or decode bytestream to or from little or big endian.
    61 
    62 @publishedAll
    63 @released
    64 */
    65 
    66 /** @fn be32enc(void *pp, uint32_t u)
    67 
    68 Alignment-agnostic encode or decode bytestream to or from little or big endian.
    69 
    70 @publishedAll
    71 @released
    72 */
    73 
    74 
    75 /** @fn be64enc(void *pp, uint64_t u)
    76 
    77 Alignment-agnostic encode or decode bytestream to or from little or big endian.
    78 
    79 @publishedAll
    80 @released
    81 */
    82 
    83 /** @fn le16enc(void *pp, uint16_t u)
    84 
    85 Alignment-agnostic encode or decode bytestream to or from little or big endian.
    86 
    87 @publishedAll
    88 @released
    89 */
    90 
    91 /** @fn le32enc(void *pp, uint32_t u)
    92 
    93 Alignment-agnostic encode or decode bytestream to or from little or big endian.
    94 
    95 @publishedAll
    96 @released
    97 */
    98 
    99 /** @fn le64enc(void *pp, uint64_t u)
   100 
   101 Alignment-agnostic encode or decode bytestream to or from little or big endian.
   102 
   103 @publishedAll
   104 @released
   105 */
   106 
   107 
   108 /** @def bswap16(x)
   109 
   110 General byte order swapping functions.
   111 
   112 @publishedAll
   113 @externallyDefinedApi
   114 */
   115 
   116 
   117 /** @def bswap32(x)
   118 
   119 General byte order swapping functions.
   120 
   121 @publishedAll
   122 @externallyDefinedApi
   123 */
   124 
   125 
   126 /**@def	bswap64(x)
   127 
   128 General byte order swapping functions.
   129 
   130 @publishedAll
   131 @externallyDefinedApi
   132 */
   133 
   134 /** @def	htobe16(x)
   135 
   136 Macro returning a integer in the system's native byte order converted to big endian byte order.  
   137 The return value will be the same as the argument on big endian systems.
   138 
   139 @publishedAll
   140 @externallyDefinedApi
   141 */
   142 
   143 
   144 /** @def	htobe32(x)
   145 
   146 Macro returning a integer in the system's native byte order converted to big endian byte order.  
   147 The return value will be the same as the argument on big endian systems.
   148 
   149 @publishedAll
   150 @externallyDefinedApi
   151 */
   152 
   153 /** @def	htobe64(x)
   154 
   155 Macro returning a integer in the system's native byte order converted to big endian byte order.  
   156 The return value will be the same as the argument on big endian systems.
   157 
   158 @publishedAll
   159 @externallyDefinedApi
   160 */
   161 
   162 
   163 /** @def	htole16(x)	
   164 
   165 Macro returning a integer in the system's native byte order converted to big endian byte order.  
   166 The return value will be the same as the argument on big endian systems.
   167 
   168 @publishedAll
   169 @externallyDefinedApi
   170 */
   171 
   172 
   173 /** @def	htole32(x)	
   174 
   175 Macro returning a integer in the system's native byte order converted to big endian byte order.  
   176 The return value will be the same as the argument on big endian systems.
   177 
   178 @publishedAll
   179 @externallyDefinedApi
   180 */
   181 
   182 /** @def	htole64(x)
   183 
   184 Macro returning a integer in the system's native byte order converted to big endian byte order.  
   185 The return value will be the same as the argument on big endian systems.
   186 
   187 @publishedAll
   188 @externallyDefinedApi
   189 */
   190 
   191 /** @def	be16toh(x)
   192 
   193 Macro returning a big endian byte ordered integer converted to the system's native byte order.	
   194 The return value will be the same as the argument on big endian systems.
   195 
   196 @publishedAll
   197 @externallyDefinedApi
   198 */
   199 
   200 /** @def	be32toh(x)
   201 
   202 Macro returning a big endian byte ordered integer converted to the system's native byte order.	
   203 The return value will be the same as the argument on big endian systems.
   204 
   205 @publishedAll
   206 @externallyDefinedApi
   207 */
   208 
   209 /** @def	be64toh(x)
   210 
   211 Macro returning a big endian byte ordered integer converted to the system's native byte order.	
   212 The return value will be the same as the argument on big endian systems.
   213 
   214 @publishedAll
   215 @externallyDefinedApi
   216 */
   217 
   218 /** @def	le16toh(x)
   219 
   220 Macro returning a little endian byte ordered integer converted to the system's native byte order.	
   221 The return value will be the same as the argument on little endian systems.
   222 
   223 @publishedAll
   224 @externallyDefinedApi
   225 */
   226 
   227 /** @def	le32toh(x)
   228 
   229 Macro returning a little endian byte ordered integer converted to the system's native byte order.	
   230 The return value will be the same as the argument on little endian systems.
   231 	
   232 @publishedAll
   233 @externallyDefinedApi
   234 */
   235 
   236 /** @def	le64toh(x)
   237 
   238 Macro returning a little endian byte ordered integer converted to the system's native byte order.	
   239 The return value will be the same as the argument on little endian systems.
   240 
   241 @publishedAll
   242 @externallyDefinedApi
   243 */
   244 
   245