htons, ntohs, htonl, ntohl for W5500
Ethernet Chips
No replies yet. Be the first to reply.
Join the discussion.
Ethernet Chips
No replies yet. Be the first to reply.
Join the discussion.
Share projects and connect with makers.
Joined before the site update? first.
New to WIZnet Makers?
We sent a verification link to your address. Open it to activate your account, then log in.
Accounts from this email provider are reviewed by an administrator after verification. Approval usually takes one business day.
Already have an account?
Enter your email address. If it belongs to an account, we'll send a link to set a new password. Members who joined before the site update use this to set their password.
If an account uses that address, we sent a link to set a new password. The link works once and expires in 30 minutes.
Know your password?
Need an account?
RE: htons, ntohs, htonl, ntohl for W5500
by Eugeny ·
In the Linux source tree? These functions are not W5500 specific.
RE: RE: htons, ntohs, htonl, ntohl for W5500
by Vien Huy Nguyen ·
Do you know how to create them? I did some research and looks like they just re-arrange the bytes for little-endian and big-endian data types. How do I determine if I need little-endian or big-endian type? Does it depend on the application that uses Ethernet or on the processor that I use (in my case a microcontroller)?
RE: htons, ntohs, htonl, ntohl for W5500
by Eugeny ·
The compiler and those functions (basing on compiler/platform settings) know how to convert (and if to convert at all). Look into their code.