ENDIAN_LE16()

uint16_t ENDIAN_LE16 (uint16_t var )

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