mirror of
https://github.com/zephyrproject-rtos/zephyr
synced 2025-08-30 22:35:47 +00:00
With an upcoming patch the HCI command buffers will be reused for the Command Complete/Status HCI events. The controller HCI code needs some refactoring to postpone the event buffer allocation so that the parsing state of the HCI command buffer isn't touched. Change-Id: I1f614fb9f02ed1886ca84198fbc8c64abc29e44f Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
18 lines
624 B
C
18 lines
624 B
C
/*
|
|
* Copyright (c) 2016 Nordic Semiconductor ASA
|
|
* Copyright (c) 2016 Vinayak Kariappa Chettimada
|
|
*
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*/
|
|
|
|
#ifndef _HCI_CONTROLLER_H_
|
|
#define _HCI_CONTROLLER_H_
|
|
|
|
struct net_buf *hci_cmd_handle(struct net_buf *cmd);
|
|
int hci_acl_handle(struct net_buf *acl);
|
|
void hci_evt_encode(struct radio_pdu_node_rx *node_rx, struct net_buf *buf);
|
|
void hci_acl_encode(struct radio_pdu_node_rx *node_rx, struct net_buf *buf);
|
|
void hci_num_cmplt_encode(struct net_buf *buf, uint16_t handle, uint8_t num);
|
|
bool hci_evt_is_discardable(struct radio_pdu_node_rx *node_rx);
|
|
#endif /* _HCI_CONTROLLER_H_ */
|