|
sarmfsw: SMFSW Toolbox (desinged for ARM / compatible with other 8b/16b/32b platforms) 4.0rc
SMFSW collection of miscellaneous functions \& macros (desinged for ARM / compatible with other 8b/16b/32b platforms)
|
Endian conversion and testing inlines. More...

Typedefs | |
| typedef enum eEndian | eEndian |
Enumerations | |
| enum | eEndian { Endian_little = 0 , Endian_big , Endian_mid_little , Endian_mid_big , Endian_unknown } |
| Core endian. More... | |
Functions | |
| WORD | SWAP_END16B (const WORD w) |
| Swap content endian of a 16b value (little -> big, big -> little) | |
| DWORD | SWAP_END32B (const DWORD d) |
| Swap content endian of a 32b value (little -> big, big -> little) | |
| LWORD | SWAP_END64B (const LWORD l) |
| Swap content endian of a 64b value (little -> big, big -> little) | |
| void | SWAP_END16B_TAB (WORD tab[], const WORD nb) |
| Swap endian of a 16b tab (little -> big, big -> little) | |
| void | SWAP_END32B_TAB (DWORD tab[], const WORD nb) |
| Swap endian of a 32b tab (little -> big, big -> little) | |
| void | SWAP_END64B_TAB (LWORD tab[], const WORD nb) |
| Swap endian of a 64b tab (little -> big, big -> little) | |
| eEndian | testEndian_basic (void) |
| Test Core endian. | |
| eEndian | testEndian_full (void) |
| Test Core endian (full, recognizing mid endian too) | |
Endian conversion and testing inlines.
| enum eEndian |
Swap content endian of a 16b value (little -> big, big -> little)
| [in] | w | - 16b value |

Swap endian of a 16b tab (little -> big, big -> little)
| [in] | tab | - tab of 16b values |
| [in] | nb | - nb of values in tab |

Swap content endian of a 32b value (little -> big, big -> little)
| [in] | d | - 32b value |


Swap endian of a 32b tab (little -> big, big -> little)
| [in] | tab | - tab of 32b values |
| [in] | nb | - nb of values in tab |

Swap content endian of a 64b value (little -> big, big -> little)
| [in] | l | - 64b value |


Swap endian of a 64b tab (little -> big, big -> little)
| [in] | tab | - tab of 64b values |
| [in] | nb | - nb of values in tab |

|
inline |
Test Core endian.
|
inline |
Test Core endian (full, recognizing mid endian too)
union keyword (misra-c2012-19.2)