RE: Byte to int32/big and little endian

2023-02-27 Thread Tim Hardisty
>From: Karel Kočí >Sent: 26 February 2023 20:05 > >Excerpts from Tim Hardisty's message of February 26, 2023 12:17 pm: >> >> On 25/02/2023, 11:47, "Karel Kočí" > wrote: >> >>>I would use union (that is host ordering) and to convert to specific >>>ordering you can use functi

Re: Byte to int32/big and little endian

2023-02-26 Thread Karel Kočí
Excerpts from Tim Hardisty's message of February 26, 2023 12:17 pm: > > On 25/02/2023, 11:47, "Karel Kočí" mailto:cyn...@email.cz>> > wrote: > >>I would use union (that is host ordering) and to convert to specific ordering >>you can use functions like htobe32 (big endian) and htole32 (little en

Re: Byte to int32/big and little endian

2023-02-26 Thread Tim Hardisty
On 26/02/2023, 12:37, "spudaneco" mailto:spudan...@gmail.com>> wrote: > I can find no references in the NuttX code base to changing > endian-ness?Search for CONFIG_ENDIAN_BIG Could have sworn I searched for that as had come across that CONFIG option. Search fail...sorry. I will look at what th

Re: Byte to int32/big and little endian

2023-02-26 Thread spudaneco
 > I can find no references in the NuttX code base to changing endian-ness?Search for CONFIG_ENDIAN_BIG

Re: Byte to int32/big and little endian

2023-02-26 Thread Tim Hardisty
On 25/02/2023, 11:47, "Karel Kočí" mailto:cyn...@email.cz>> wrote: >I would use union (that is host ordering) and to convert to specific ordering >you can use functions like htobe32 (big endian) and htole32 (little endian), > those are available. > Excerpts from Tim Hardisty's message of Febr

Re: Byte to int32/big and little endian

2023-02-25 Thread Karel Kočí
Hi I would use union (that is host ordering) and to convert to specific ordering you can use functions like htobe32 (big endian) and htole32 (little endian), those are available. K.K. Excerpts from Tim Hardisty's message of February 25, 2023 11:26 am: > As is so often the case, I need to pack