ENDIAN_BE16()

uint16_t ENDIAN_BE16 (uint16_t var )

If the host is big-endian, this macro does nothing (expands simply to var); else, it performs a byte swap.