Endianess problem
- From: "sid1977" <sidbharij@xxxxxxxxx>
- Date: Mon, 08 Oct 2007 04:38:04 -0500
Hi,
I am writing a driver for a ethernet controller. The controller is
connected to the io memory and expects data to be in the Little endian
format (will call it LE now and BE for big endian). The main cpu which
runs the driver code is a BE machine. During the startup I write the
descriptors into the io memory in the LE format. In the send and receive
routine which is called by the IP stack I have pointers that access the
descriptors. The pointers are actually pointing to data which is in LE
format, so if I want to access a bit(a part of the desc bit field) like
ptr->own_bit it will refer to the wrong bit. How can I come over this
problem.
wr,
Sid
.
- Follow-Ups:
- Re: Endianess problem
- From: Thad Smith
- Re: Endianess problem
- From: Everett M. Greene
- Re: Endianess problem
- From: Ivanna Pee
- Re: Endianess problem
- Prev by Date: PROBLEM with MSP430F2121 and BSL
- Next by Date: Problems on Quad UART TL16C554A
- Previous by thread: PROBLEM with MSP430F2121 and BSL
- Next by thread: Re: Endianess problem
- Index(es):
Relevant Pages
|