Hey all,I'm currently building a communication stack and geting a string of uint32 values from some other devices. (I cannot change this because its a fixed protocol)These uint32 values will be sent as MSB first. But the Zynq will interprete a uint32 with LSB first. Therefore I have a byteswap at the moment which makes calculations quite hard.I don't want to use a software byteswap because the incomming bytes a sometimes uint8, uint16 or uint32, depending on the previous values, Therefore only using a typecst will be easier.Is there a possibility to change the endines from LITTLE-ENDIAN to BIG-ENDIAN, so all variables will be interpretet with MSB first?ThanksAndy
Please see if this thread helps.