mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-01-15 19:53:23 +00:00
hci_event_builder: add functions for 8 and 16 byte arrays
This commit is contained in:
parent
b2d70d584c
commit
7fc0aea0ec
@ -97,6 +97,18 @@ void hci_event_builder_add_32(hci_event_builder_context_t * context, uint32_t va
|
||||
little_endian_store_32(context->buffer, pos, value);
|
||||
}
|
||||
|
||||
void hci_event_builder_add_64(hci_event_builder_context_t * context, const uint8_t * value){
|
||||
uint16_t pos = context->pos;
|
||||
hci_event_builder_increment_pos(context, 8);
|
||||
reverse_64(value, &context->buffer[pos]);
|
||||
}
|
||||
|
||||
void hci_event_builder_add_128(hci_event_builder_context_t * context, const uint8_t * value){
|
||||
uint16_t pos = context->pos;
|
||||
hci_event_builder_increment_pos(context, 16);
|
||||
reverse_128(value, &context->buffer[pos]);
|
||||
}
|
||||
|
||||
void hci_event_builder_add_bd_addr(hci_event_builder_context_t * context, bd_addr_t addr){
|
||||
uint16_t pos = context->pos;
|
||||
hci_event_builder_increment_pos(context, 6);
|
||||
|
@ -112,6 +112,20 @@ void hci_event_builder_add_24(hci_event_builder_context_t * context, uint32_t va
|
||||
*/
|
||||
void hci_event_builder_add_32(hci_event_builder_context_t * context, uint32_t value);
|
||||
|
||||
/**
|
||||
* @bbrief Add uint8_t[8] in big_endian to event
|
||||
* @param context
|
||||
* @param value
|
||||
*/
|
||||
void hci_event_builder_add_64(hci_event_builder_context_t * context, const uint8_t * value);
|
||||
|
||||
/**
|
||||
* @bbrief Add uint8_t[16] in big_endian to event
|
||||
* @param context
|
||||
* @param value
|
||||
*/
|
||||
void hci_event_builder_add_128(hci_event_builder_context_t * context, const uint8_t * value);
|
||||
|
||||
/**
|
||||
* @bbrief Add Bluetooth address to event
|
||||
* @param context
|
||||
|
Loading…
Reference in New Issue
Block a user