mirror of
https://github.com/apache/nuttx.git
synced 2026-05-23 23:28:29 +08:00
wireless/bluetooth: Adds most of the logic to get the Tx path working. Still missing the logic to recover the Bluetooth connection structure given the destination address in the socket address.
This commit is contained in:
@@ -52,7 +52,7 @@
|
||||
|
||||
#warning REVISIT
|
||||
|
||||
#define BLUETOOTH_HDRLEN 0
|
||||
#define BLUETOOTH_HDRLEN 8 /* Size of L2CAP header */
|
||||
#define BLUETOOTH_ADDRSIZE 6
|
||||
#define BLUETOOTH_ADDRCOPY(d,s) memcpy((d),(s),BLUETOOTH_ADDRSIZE)
|
||||
#define BLUETOOTH_ADDRCMP(a,b) (memcmp((a),(b),BLUETOOTH_ADDRSIZE) == 0)
|
||||
|
||||
@@ -103,6 +103,8 @@ struct bt_buf_acl_data_s
|
||||
uint16_t handle;
|
||||
};
|
||||
|
||||
struct iob_s; /* Forward reference */
|
||||
|
||||
struct bt_buf_s
|
||||
{
|
||||
FAR struct bt_buf_s *flink;
|
||||
@@ -147,6 +149,8 @@ struct bt_buf_s
|
||||
*
|
||||
* Input Parameters:
|
||||
* type - Buffer type.
|
||||
* iob - The raw I/O buffer. If NULL, then bt_buf_alloc will
|
||||
* allocate.
|
||||
* reserve_head - How much headroom to reserve.
|
||||
*
|
||||
* Returned Value:
|
||||
@@ -156,7 +160,10 @@ struct bt_buf_s
|
||||
*
|
||||
****************************************************************************/
|
||||
|
||||
struct iob_s; /* Forward reference */
|
||||
|
||||
FAR struct bt_buf_s *bt_buf_alloc(enum bt_buf_type_e type,
|
||||
FAR struct iob_s *iob,
|
||||
size_t reserve_head);
|
||||
|
||||
/****************************************************************************
|
||||
|
||||
Reference in New Issue
Block a user