mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-02-24 21:39:55 +00:00
add big_endian_store_24
This commit is contained in:
parent
4217b63bd9
commit
7f535380ac
@ -104,6 +104,12 @@ void big_endian_store_16(uint8_t *buffer, uint16_t pos, uint16_t value){
|
|||||||
buffer[pos++] = value;
|
buffer[pos++] = value;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void big_endian_store_24(uint8_t *buffer, uint16_t pos, uint32_t value){
|
||||||
|
buffer[pos++] = value >> 16;
|
||||||
|
buffer[pos++] = value >> 8;
|
||||||
|
buffer[pos++] = value;
|
||||||
|
}
|
||||||
|
|
||||||
void big_endian_store_32(uint8_t *buffer, uint16_t pos, uint32_t value){
|
void big_endian_store_32(uint8_t *buffer, uint16_t pos, uint32_t value){
|
||||||
buffer[pos++] = value >> 24;
|
buffer[pos++] = value >> 24;
|
||||||
buffer[pos++] = value >> 16;
|
buffer[pos++] = value >> 16;
|
||||||
|
@ -126,6 +126,7 @@ uint32_t big_endian_read_32( const uint8_t * buffer, int pos);
|
|||||||
* @param value
|
* @param value
|
||||||
*/
|
*/
|
||||||
void big_endian_store_16(uint8_t *buffer, uint16_t pos, uint16_t value);
|
void big_endian_store_16(uint8_t *buffer, uint16_t pos, uint16_t value);
|
||||||
|
void big_endian_store_24(uint8_t *buffer, uint16_t pos, uint32_t value);
|
||||||
void big_endian_store_32(uint8_t *buffer, uint16_t pos, uint32_t value);
|
void big_endian_store_32(uint8_t *buffer, uint16_t pos, uint32_t value);
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user