diff options
author | Christopher Peplin <chris.peplin@rhubarbtech.com> | 2014-01-04 10:51:16 -0500 |
---|---|---|
committer | Christopher Peplin <chris.peplin@rhubarbtech.com> | 2014-01-04 10:52:42 -0500 |
commit | 08db5c9eb826f7aa0dba36cbef8011d7bc6b55a5 (patch) | |
tree | b2875552387f00191c772bc6da08dcaa7e6d2e87 /src/bitfield/8byte.h | |
parent | 6f3a81ed8287357b54aad16bff27495c6eaca6df (diff) |
Add a get_bitfield function for byte arrays.
Diffstat (limited to 'src/bitfield/8byte.h')
-rw-r--r-- | src/bitfield/8byte.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/bitfield/8byte.h b/src/bitfield/8byte.h index 194007c8..ab775caa 100644 --- a/src/bitfield/8byte.h +++ b/src/bitfield/8byte.h @@ -32,11 +32,11 @@ extern "C" { * * Examples * - * uint64_t value = get_bit_field(data, 2, 4); + * uint64_t value = get_bitfield(data, 2, 4); * * Returns the value of the requested bit field, right aligned in a uint64_t. */ -uint64_t eightbyte_get_bit_field(uint64_t source, const uint16_t offset, +uint64_t eightbyte_get_bitfield(uint64_t source, const uint16_t offset, const uint16_t bit_count, const bool data_is_big_endian); /* Public: Return a single nibble from the payload, with range checking. |