Function xensiv_pas_gas_plat_htons(uint16_t)
Defined in File xensiv_pas_gas_pal_ino.cpp
Function Documentation
-
uint16_t xensiv_pas_gas_plat_htons(uint16_t x)
Target platform-specific function to reverse the byte order (16-bit) A sample implementation would look like.
return ((uint16_t)(((x & 0x00ffU) << 8) | ((x & 0xff00U) >> 8)));
- Parameters:
x – [in] Value to reverse
- Returns:
Reversed value