mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-04-10 15:44:32 +00:00
btstack_util: add little_endian_store_24
This commit is contained in:
parent
9fe70df8e9
commit
adbdd27a95
@ -86,6 +86,12 @@ void little_endian_store_16(uint8_t *buffer, uint16_t pos, uint16_t value){
|
||||
buffer[pos++] = (uint8_t)(value >> 8);
|
||||
}
|
||||
|
||||
void little_endian_store_24(uint8_t *buffer, uint16_t pos, uint32_t value){
|
||||
buffer[pos++] = (uint8_t)(value);
|
||||
buffer[pos++] = (uint8_t)(value >> 8);
|
||||
buffer[pos++] = (uint8_t)(value >> 16);
|
||||
}
|
||||
|
||||
void little_endian_store_32(uint8_t *buffer, uint16_t pos, uint32_t value){
|
||||
buffer[pos++] = (uint8_t)(value);
|
||||
buffer[pos++] = (uint8_t)(value >> 8);
|
||||
|
@ -108,6 +108,7 @@ uint32_t little_endian_read_32(const uint8_t * buffer, int position);
|
||||
* @param value
|
||||
*/
|
||||
void little_endian_store_16(uint8_t *buffer, uint16_t position, uint16_t value);
|
||||
void little_endian_store_24(uint8_t *buffer, uint16_t position, uint32_t value);
|
||||
void little_endian_store_32(uint8_t *buffer, uint16_t position, uint32_t value);
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user