Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4b95ad29 authored by Henri Chataing's avatar Henri Chataing Committed by Automerger Merge Worker
Browse files

Merge "pdl: Update endianness documentation" am: 5e4b7cca am: aeec023d am:...

Merge "pdl: Update endianness documentation" am: 5e4b7cca am: aeec023d am: 6d934870 am: ae84aa3a

Original change: https://android-review.googlesource.com/c/platform/packages/modules/Bluetooth/+/2154420



Change-Id: I6a460324c86c8e8826343b29449b74f5bf2829bb
Signed-off-by: default avatarAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
parents 96e73aa2 ae84aa3a
Loading
Loading
Loading
Loading
+20 −9
Original line number Diff line number Diff line
@@ -67,26 +67,37 @@ packet Coffee {
  d: 5,
}

// The first two field are laid out as a single
// integer of 16-bits
//     MSB                                   LSB
//     16                  8                 0
//     +---------------------------------------+
//     | b14 ..                        .. b0 |a|
//     +---------------------------------------+
//
// The file endianness is applied to this integer
// to obtain the byte layout of the packet fields.
//
// Little endian layout
//     LSB                                   MSB
//     0    1    2    3    4    5    6    7
//     MSB                                   LSB
//     7    6    5    4    3    2    1    0
//     +---------------------------------------+
//  0  | a  |             b[6:0]               |
//  0  |            b[6:0]                | a  |
//     +---------------------------------------+
//  1  |               b[14:7]                 |
//     +---------------------------------------+
//  2  |       c      |             d          |
//  2  |          d             |       c      |
//     +---------------------------------------+

//
// Big endian layout
//     LSB                                   MSB
//     0    1    2    3    4    5    6    7
//     MSB                                   LSB
//     7    6    5    4    3    2    1    0
//     +---------------------------------------+
//  0  |               b[14:7]                 |
//     +---------------------------------------+
//  1  | a  |             b[6:0]               |
//  1  |            b[6:0]                | a  |
//     +---------------------------------------+
//  2  |       c      |             d          |
//  2  |          d             |       c      |
//     +---------------------------------------+
```