hci_event.h (7d902a1f429eef0e075dcfd9b78a645cd530b4cf) hci_event.h (c70b3b486dde2b96829c110a442a90c62ebfbd82)
1/*
2 * Copyright (C) 2020 BlueKitchen GmbH
3 *
4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions
6 * are met:
7 *
8 * 1. Redistributions of source code must retain the above copyright

--- 61 unchanged lines hidden (view full) ---

70 * B: Bluetooth Baseband Address (BD_ADDR)
71 * D: 8 byte data block
72 * P: 16 byte data block.
73 * Q: 32 byte data block, e.g. for X and Y coordinates of P-256 public key
74 * J: 1-byte length of following variable-length data blob 'V', length is included in packet
75 * K: 1-byte length of following variable-length data blob 'V', length is not included in packet
76 * V: variable-length data blob of len provided in 'J' field
77 */
1/*
2 * Copyright (C) 2020 BlueKitchen GmbH
3 *
4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions
6 * are met:
7 *
8 * 1. Redistributions of source code must retain the above copyright

--- 61 unchanged lines hidden (view full) ---

70 * B: Bluetooth Baseband Address (BD_ADDR)
71 * D: 8 byte data block
72 * P: 16 byte data block.
73 * Q: 32 byte data block, e.g. for X and Y coordinates of P-256 public key
74 * J: 1-byte length of following variable-length data blob 'V', length is included in packet
75 * K: 1-byte length of following variable-length data blob 'V', length is not included in packet
76 * V: variable-length data blob of len provided in 'J' field
77 */
78uint16_t hci_event_create_from_template_and_arglist(uint8_t *hci_buffer, const hci_event_t *event, va_list argptr);
78uint16_t hci_event_create_from_template_and_arglist(uint8_t *hci_buffer, uint16_t buffer_size, const hci_event_t *event, va_list argptr);
79
80
79
80
81uint16_t hci_event_create_from_template_and_arguments(uint8_t *hci_buffer, const hci_event_t *event, ...);
81uint16_t hci_event_create_from_template_and_arguments(uint8_t *hci_buffer, uint16_t buffer_size, const hci_event_t *event, ...);
82
83/* LE Events */
84extern const hci_event_t hci_event_hardware_error;
85extern const hci_event_t hci_event_command_complete;
86extern const hci_event_t hci_event_disconnection_complete;
87extern const hci_event_t hci_event_number_of_completed_packets_1;
88extern const hci_event_t hci_event_transport_packet_sent;
89
90/* LE Subevents */
91extern const hci_event_t hci_subevent_le_connection_complete;
92
93
94#if defined __cplusplus
95}
96#endif
97
98#endif // HCI_EVENT_H
82
83/* LE Events */
84extern const hci_event_t hci_event_hardware_error;
85extern const hci_event_t hci_event_command_complete;
86extern const hci_event_t hci_event_disconnection_complete;
87extern const hci_event_t hci_event_number_of_completed_packets_1;
88extern const hci_event_t hci_event_transport_packet_sent;
89
90/* LE Subevents */
91extern const hci_event_t hci_subevent_le_connection_complete;
92
93
94#if defined __cplusplus
95}
96#endif
97
98#endif // HCI_EVENT_H