btstack_event.h (e644fcbc212be740e64693005af52e32f8291752) | btstack_event.h (dfc5d4aed94bed8234f94d1fd37178a70255f1ba) |
---|---|
1/* 2 * Copyright (C) 2016 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 --- 1410 unchanged lines hidden (view full) --- 1419 * @return local_cid 1420 * @note: btstack_type 2 1421 */ 1422static inline uint16_t l2cap_event_can_send_now_get_local_cid(const uint8_t * event){ 1423 return little_endian_read_16(event, 2); 1424} 1425 1426/** | 1/* 2 * Copyright (C) 2016 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 --- 1410 unchanged lines hidden (view full) --- 1419 * @return local_cid 1420 * @note: btstack_type 2 1421 */ 1422static inline uint16_t l2cap_event_can_send_now_get_local_cid(const uint8_t * event){ 1423 return little_endian_read_16(event, 2); 1424} 1425 1426/** |
1427 * @brief Get field address_type from event L2CAP_EVENT_LE_INCOMING_CONNECTION | 1427 * @brief Get field address_type from event L2CAP_EVENT_CBM_INCOMING_CONNECTION |
1428 * @param event packet 1429 * @return address_type 1430 * @note: btstack_type 1 1431 */ 1432static inline uint8_t l2cap_event_le_incoming_connection_get_address_type(const uint8_t * event){ 1433 return event[2]; 1434} 1435/** | 1428 * @param event packet 1429 * @return address_type 1430 * @note: btstack_type 1 1431 */ 1432static inline uint8_t l2cap_event_le_incoming_connection_get_address_type(const uint8_t * event){ 1433 return event[2]; 1434} 1435/** |
1436 * @brief Get field address from event L2CAP_EVENT_LE_INCOMING_CONNECTION | 1436 * @brief Get field address from event L2CAP_EVENT_CBM_INCOMING_CONNECTION |
1437 * @param event packet 1438 * @param Pointer to storage for address 1439 * @note: btstack_type B 1440 */ 1441static inline void l2cap_event_le_incoming_connection_get_address(const uint8_t * event, bd_addr_t address){ 1442 reverse_bytes(&event[3], address, 6); 1443} 1444/** | 1437 * @param event packet 1438 * @param Pointer to storage for address 1439 * @note: btstack_type B 1440 */ 1441static inline void l2cap_event_le_incoming_connection_get_address(const uint8_t * event, bd_addr_t address){ 1442 reverse_bytes(&event[3], address, 6); 1443} 1444/** |
1445 * @brief Get field handle from event L2CAP_EVENT_LE_INCOMING_CONNECTION | 1445 * @brief Get field handle from event L2CAP_EVENT_CBM_INCOMING_CONNECTION |
1446 * @param event packet 1447 * @return handle 1448 * @note: btstack_type H 1449 */ 1450static inline hci_con_handle_t l2cap_event_le_incoming_connection_get_handle(const uint8_t * event){ 1451 return little_endian_read_16(event, 9); 1452} 1453/** | 1446 * @param event packet 1447 * @return handle 1448 * @note: btstack_type H 1449 */ 1450static inline hci_con_handle_t l2cap_event_le_incoming_connection_get_handle(const uint8_t * event){ 1451 return little_endian_read_16(event, 9); 1452} 1453/** |
1454 * @brief Get field psm from event L2CAP_EVENT_LE_INCOMING_CONNECTION | 1454 * @brief Get field psm from event L2CAP_EVENT_CBM_INCOMING_CONNECTION |
1455 * @param event packet 1456 * @return psm 1457 * @note: btstack_type 2 1458 */ 1459static inline uint16_t l2cap_event_le_incoming_connection_get_psm(const uint8_t * event){ 1460 return little_endian_read_16(event, 11); 1461} 1462/** | 1455 * @param event packet 1456 * @return psm 1457 * @note: btstack_type 2 1458 */ 1459static inline uint16_t l2cap_event_le_incoming_connection_get_psm(const uint8_t * event){ 1460 return little_endian_read_16(event, 11); 1461} 1462/** |
1463 * @brief Get field local_cid from event L2CAP_EVENT_LE_INCOMING_CONNECTION | 1463 * @brief Get field local_cid from event L2CAP_EVENT_CBM_INCOMING_CONNECTION |
1464 * @param event packet 1465 * @return local_cid 1466 * @note: btstack_type 2 1467 */ 1468static inline uint16_t l2cap_event_le_incoming_connection_get_local_cid(const uint8_t * event){ 1469 return little_endian_read_16(event, 13); 1470} 1471/** | 1464 * @param event packet 1465 * @return local_cid 1466 * @note: btstack_type 2 1467 */ 1468static inline uint16_t l2cap_event_le_incoming_connection_get_local_cid(const uint8_t * event){ 1469 return little_endian_read_16(event, 13); 1470} 1471/** |
1472 * @brief Get field remote_cid from event L2CAP_EVENT_LE_INCOMING_CONNECTION | 1472 * @brief Get field remote_cid from event L2CAP_EVENT_CBM_INCOMING_CONNECTION |
1473 * @param event packet 1474 * @return remote_cid 1475 * @note: btstack_type 2 1476 */ 1477static inline uint16_t l2cap_event_le_incoming_connection_get_remote_cid(const uint8_t * event){ 1478 return little_endian_read_16(event, 15); 1479} 1480/** | 1473 * @param event packet 1474 * @return remote_cid 1475 * @note: btstack_type 2 1476 */ 1477static inline uint16_t l2cap_event_le_incoming_connection_get_remote_cid(const uint8_t * event){ 1478 return little_endian_read_16(event, 15); 1479} 1480/** |
1481 * @brief Get field remote_mtu from event L2CAP_EVENT_LE_INCOMING_CONNECTION | 1481 * @brief Get field remote_mtu from event L2CAP_EVENT_CBM_INCOMING_CONNECTION |
1482 * @param event packet 1483 * @return remote_mtu 1484 * @note: btstack_type 2 1485 */ 1486static inline uint16_t l2cap_event_le_incoming_connection_get_remote_mtu(const uint8_t * event){ 1487 return little_endian_read_16(event, 17); 1488} 1489 1490/** | 1482 * @param event packet 1483 * @return remote_mtu 1484 * @note: btstack_type 2 1485 */ 1486static inline uint16_t l2cap_event_le_incoming_connection_get_remote_mtu(const uint8_t * event){ 1487 return little_endian_read_16(event, 17); 1488} 1489 1490/** |
1491 * @brief Get field status from event L2CAP_EVENT_LE_CHANNEL_OPENED | 1491 * @brief Get field status from event L2CAP_EVENT_CBM_CHANNEL_OPENED |
1492 * @param event packet 1493 * @return status 1494 * @note: btstack_type 1 1495 */ 1496static inline uint8_t l2cap_event_le_channel_opened_get_status(const uint8_t * event){ 1497 return event[2]; 1498} 1499/** | 1492 * @param event packet 1493 * @return status 1494 * @note: btstack_type 1 1495 */ 1496static inline uint8_t l2cap_event_le_channel_opened_get_status(const uint8_t * event){ 1497 return event[2]; 1498} 1499/** |
1500 * @brief Get field address_type from event L2CAP_EVENT_LE_CHANNEL_OPENED | 1500 * @brief Get field address_type from event L2CAP_EVENT_CBM_CHANNEL_OPENED |
1501 * @param event packet 1502 * @return address_type 1503 * @note: btstack_type 1 1504 */ 1505static inline uint8_t l2cap_event_le_channel_opened_get_address_type(const uint8_t * event){ 1506 return event[3]; 1507} 1508/** | 1501 * @param event packet 1502 * @return address_type 1503 * @note: btstack_type 1 1504 */ 1505static inline uint8_t l2cap_event_le_channel_opened_get_address_type(const uint8_t * event){ 1506 return event[3]; 1507} 1508/** |
1509 * @brief Get field address from event L2CAP_EVENT_LE_CHANNEL_OPENED | 1509 * @brief Get field address from event L2CAP_EVENT_CBM_CHANNEL_OPENED |
1510 * @param event packet 1511 * @param Pointer to storage for address 1512 * @note: btstack_type B 1513 */ 1514static inline void l2cap_event_le_channel_opened_get_address(const uint8_t * event, bd_addr_t address){ 1515 reverse_bytes(&event[4], address, 6); 1516} 1517/** | 1510 * @param event packet 1511 * @param Pointer to storage for address 1512 * @note: btstack_type B 1513 */ 1514static inline void l2cap_event_le_channel_opened_get_address(const uint8_t * event, bd_addr_t address){ 1515 reverse_bytes(&event[4], address, 6); 1516} 1517/** |
1518 * @brief Get field handle from event L2CAP_EVENT_LE_CHANNEL_OPENED | 1518 * @brief Get field handle from event L2CAP_EVENT_CBM_CHANNEL_OPENED |
1519 * @param event packet 1520 * @return handle 1521 * @note: btstack_type H 1522 */ 1523static inline hci_con_handle_t l2cap_event_le_channel_opened_get_handle(const uint8_t * event){ 1524 return little_endian_read_16(event, 10); 1525} 1526/** | 1519 * @param event packet 1520 * @return handle 1521 * @note: btstack_type H 1522 */ 1523static inline hci_con_handle_t l2cap_event_le_channel_opened_get_handle(const uint8_t * event){ 1524 return little_endian_read_16(event, 10); 1525} 1526/** |
1527 * @brief Get field incoming from event L2CAP_EVENT_LE_CHANNEL_OPENED | 1527 * @brief Get field incoming from event L2CAP_EVENT_CBM_CHANNEL_OPENED |
1528 * @param event packet 1529 * @return incoming 1530 * @note: btstack_type 1 1531 */ 1532static inline uint8_t l2cap_event_le_channel_opened_get_incoming(const uint8_t * event){ 1533 return event[12]; 1534} 1535/** | 1528 * @param event packet 1529 * @return incoming 1530 * @note: btstack_type 1 1531 */ 1532static inline uint8_t l2cap_event_le_channel_opened_get_incoming(const uint8_t * event){ 1533 return event[12]; 1534} 1535/** |
1536 * @brief Get field psm from event L2CAP_EVENT_LE_CHANNEL_OPENED | 1536 * @brief Get field psm from event L2CAP_EVENT_CBM_CHANNEL_OPENED |
1537 * @param event packet 1538 * @return psm 1539 * @note: btstack_type 2 1540 */ 1541static inline uint16_t l2cap_event_le_channel_opened_get_psm(const uint8_t * event){ 1542 return little_endian_read_16(event, 13); 1543} 1544/** | 1537 * @param event packet 1538 * @return psm 1539 * @note: btstack_type 2 1540 */ 1541static inline uint16_t l2cap_event_le_channel_opened_get_psm(const uint8_t * event){ 1542 return little_endian_read_16(event, 13); 1543} 1544/** |
1545 * @brief Get field local_cid from event L2CAP_EVENT_LE_CHANNEL_OPENED | 1545 * @brief Get field local_cid from event L2CAP_EVENT_CBM_CHANNEL_OPENED |
1546 * @param event packet 1547 * @return local_cid 1548 * @note: btstack_type 2 1549 */ 1550static inline uint16_t l2cap_event_le_channel_opened_get_local_cid(const uint8_t * event){ 1551 return little_endian_read_16(event, 15); 1552} 1553/** | 1546 * @param event packet 1547 * @return local_cid 1548 * @note: btstack_type 2 1549 */ 1550static inline uint16_t l2cap_event_le_channel_opened_get_local_cid(const uint8_t * event){ 1551 return little_endian_read_16(event, 15); 1552} 1553/** |
1554 * @brief Get field remote_cid from event L2CAP_EVENT_LE_CHANNEL_OPENED | 1554 * @brief Get field remote_cid from event L2CAP_EVENT_CBM_CHANNEL_OPENED |
1555 * @param event packet 1556 * @return remote_cid 1557 * @note: btstack_type 2 1558 */ 1559static inline uint16_t l2cap_event_le_channel_opened_get_remote_cid(const uint8_t * event){ 1560 return little_endian_read_16(event, 17); 1561} 1562/** | 1555 * @param event packet 1556 * @return remote_cid 1557 * @note: btstack_type 2 1558 */ 1559static inline uint16_t l2cap_event_le_channel_opened_get_remote_cid(const uint8_t * event){ 1560 return little_endian_read_16(event, 17); 1561} 1562/** |
1563 * @brief Get field local_mtu from event L2CAP_EVENT_LE_CHANNEL_OPENED | 1563 * @brief Get field local_mtu from event L2CAP_EVENT_CBM_CHANNEL_OPENED |
1564 * @param event packet 1565 * @return local_mtu 1566 * @note: btstack_type 2 1567 */ 1568static inline uint16_t l2cap_event_le_channel_opened_get_local_mtu(const uint8_t * event){ 1569 return little_endian_read_16(event, 19); 1570} 1571/** | 1564 * @param event packet 1565 * @return local_mtu 1566 * @note: btstack_type 2 1567 */ 1568static inline uint16_t l2cap_event_le_channel_opened_get_local_mtu(const uint8_t * event){ 1569 return little_endian_read_16(event, 19); 1570} 1571/** |
1572 * @brief Get field remote_mtu from event L2CAP_EVENT_LE_CHANNEL_OPENED | 1572 * @brief Get field remote_mtu from event L2CAP_EVENT_CBM_CHANNEL_OPENED |
1573 * @param event packet 1574 * @return remote_mtu 1575 * @note: btstack_type 2 1576 */ 1577static inline uint16_t l2cap_event_le_channel_opened_get_remote_mtu(const uint8_t * event){ 1578 return little_endian_read_16(event, 21); 1579} 1580 1581/** | 1573 * @param event packet 1574 * @return remote_mtu 1575 * @note: btstack_type 2 1576 */ 1577static inline uint16_t l2cap_event_le_channel_opened_get_remote_mtu(const uint8_t * event){ 1578 return little_endian_read_16(event, 21); 1579} 1580 1581/** |
1582 * @brief Get field local_cid from event L2CAP_EVENT_LE_CHANNEL_CLOSED | 1582 * @brief Get field local_cid from event L2CAP_EVENT_CBM_CHANNEL_CLOSED |
1583 * @param event packet 1584 * @return local_cid 1585 * @note: btstack_type 2 1586 */ 1587static inline uint16_t l2cap_event_le_channel_closed_get_local_cid(const uint8_t * event){ 1588 return little_endian_read_16(event, 2); 1589} 1590 1591/** | 1583 * @param event packet 1584 * @return local_cid 1585 * @note: btstack_type 2 1586 */ 1587static inline uint16_t l2cap_event_le_channel_closed_get_local_cid(const uint8_t * event){ 1588 return little_endian_read_16(event, 2); 1589} 1590 1591/** |
1592 * @brief Get field local_cid from event L2CAP_EVENT_LE_CAN_SEND_NOW | 1592 * @brief Get field local_cid from event L2CAP_EVENT_CBM_CAN_SEND_NOW |
1593 * @param event packet 1594 * @return local_cid 1595 * @note: btstack_type 2 1596 */ 1597static inline uint16_t l2cap_event_le_can_send_now_get_local_cid(const uint8_t * event){ 1598 return little_endian_read_16(event, 2); 1599} 1600 1601/** | 1593 * @param event packet 1594 * @return local_cid 1595 * @note: btstack_type 2 1596 */ 1597static inline uint16_t l2cap_event_le_can_send_now_get_local_cid(const uint8_t * event){ 1598 return little_endian_read_16(event, 2); 1599} 1600 1601/** |
1602 * @brief Get field local_cid from event L2CAP_EVENT_LE_PACKET_SENT | 1602 * @brief Get field local_cid from event L2CAP_EVENT_CBM_PACKET_SENT |
1603 * @param event packet 1604 * @return local_cid 1605 * @note: btstack_type 2 1606 */ 1607static inline uint16_t l2cap_event_le_packet_sent_get_local_cid(const uint8_t * event){ 1608 return little_endian_read_16(event, 2); 1609} 1610 --- 4 unchanged lines hidden (view full) --- 1615 * @note: btstack_type 2 1616 */ 1617static inline uint16_t l2cap_event_ertm_buffer_released_get_local_cid(const uint8_t * event){ 1618 return little_endian_read_16(event, 2); 1619} 1620 1621 1622/** | 1603 * @param event packet 1604 * @return local_cid 1605 * @note: btstack_type 2 1606 */ 1607static inline uint16_t l2cap_event_le_packet_sent_get_local_cid(const uint8_t * event){ 1608 return little_endian_read_16(event, 2); 1609} 1610 --- 4 unchanged lines hidden (view full) --- 1615 * @note: btstack_type 2 1616 */ 1617static inline uint16_t l2cap_event_ertm_buffer_released_get_local_cid(const uint8_t * event){ 1618 return little_endian_read_16(event, 2); 1619} 1620 1621 1622/** |
1623 * @brief Get field address_type from event L2CAP_EVENT_DATA_CHANNEL_INCOMING | 1623 * @brief Get field address_type from event L2CAP_EVENT_ECBM_INCOMING_CONNECTION |
1624 * @param event packet 1625 * @return address_type 1626 * @note: btstack_type 1 1627 */ 1628static inline uint8_t l2cap_event_data_channel_incoming_get_address_type(const uint8_t * event){ 1629 return event[2]; 1630} 1631/** | 1624 * @param event packet 1625 * @return address_type 1626 * @note: btstack_type 1 1627 */ 1628static inline uint8_t l2cap_event_data_channel_incoming_get_address_type(const uint8_t * event){ 1629 return event[2]; 1630} 1631/** |
1632 * @brief Get field address from event L2CAP_EVENT_DATA_CHANNEL_INCOMING | 1632 * @brief Get field address from event L2CAP_EVENT_ECBM_INCOMING_CONNECTION |
1633 * @param event packet 1634 * @param Pointer to storage for address 1635 * @note: btstack_type B 1636 */ 1637static inline void l2cap_event_data_channel_incoming_get_address(const uint8_t * event, bd_addr_t address){ 1638 reverse_bytes(&event[3], address, 6); 1639} 1640/** | 1633 * @param event packet 1634 * @param Pointer to storage for address 1635 * @note: btstack_type B 1636 */ 1637static inline void l2cap_event_data_channel_incoming_get_address(const uint8_t * event, bd_addr_t address){ 1638 reverse_bytes(&event[3], address, 6); 1639} 1640/** |
1641 * @brief Get field handle from event L2CAP_EVENT_DATA_CHANNEL_INCOMING | 1641 * @brief Get field handle from event L2CAP_EVENT_ECBM_INCOMING_CONNECTION |
1642 * @param event packet 1643 * @return handle 1644 * @note: btstack_type H 1645 */ 1646static inline hci_con_handle_t l2cap_event_data_channel_incoming_get_handle(const uint8_t * event){ 1647 return little_endian_read_16(event, 9); 1648} 1649/** | 1642 * @param event packet 1643 * @return handle 1644 * @note: btstack_type H 1645 */ 1646static inline hci_con_handle_t l2cap_event_data_channel_incoming_get_handle(const uint8_t * event){ 1647 return little_endian_read_16(event, 9); 1648} 1649/** |
1650 * @brief Get field psm from event L2CAP_EVENT_DATA_CHANNEL_INCOMING | 1650 * @brief Get field psm from event L2CAP_EVENT_ECBM_INCOMING_CONNECTION |
1651 * @param event packet 1652 * @return psm 1653 * @note: btstack_type 2 1654 */ 1655static inline uint16_t l2cap_event_data_channel_incoming_get_psm(const uint8_t * event){ 1656 return little_endian_read_16(event, 11); 1657} 1658/** | 1651 * @param event packet 1652 * @return psm 1653 * @note: btstack_type 2 1654 */ 1655static inline uint16_t l2cap_event_data_channel_incoming_get_psm(const uint8_t * event){ 1656 return little_endian_read_16(event, 11); 1657} 1658/** |
1659 * @brief Get field num_channels from event L2CAP_EVENT_DATA_CHANNEL_INCOMING | 1659 * @brief Get field num_channels from event L2CAP_EVENT_ECBM_INCOMING_CONNECTION |
1660 * @param event packet 1661 * @return num_channels 1662 * @note: btstack_type 1 1663 */ 1664static inline uint8_t l2cap_event_data_channel_incoming_get_num_channels(const uint8_t * event){ 1665 return event[13]; 1666} 1667/** | 1660 * @param event packet 1661 * @return num_channels 1662 * @note: btstack_type 1 1663 */ 1664static inline uint8_t l2cap_event_data_channel_incoming_get_num_channels(const uint8_t * event){ 1665 return event[13]; 1666} 1667/** |
1668 * @brief Get field local_cid from event L2CAP_EVENT_DATA_CHANNEL_INCOMING | 1668 * @brief Get field local_cid from event L2CAP_EVENT_ECBM_INCOMING_CONNECTION |
1669 * @param event packet 1670 * @return local_cid 1671 * @note: btstack_type 2 1672 */ 1673static inline uint16_t l2cap_event_data_channel_incoming_get_local_cid(const uint8_t * event){ 1674 return little_endian_read_16(event, 14); 1675} 1676 1677/** | 1669 * @param event packet 1670 * @return local_cid 1671 * @note: btstack_type 2 1672 */ 1673static inline uint16_t l2cap_event_data_channel_incoming_get_local_cid(const uint8_t * event){ 1674 return little_endian_read_16(event, 14); 1675} 1676 1677/** |
1678 * @brief Get field status from event L2CAP_EVENT_DATA_CHANNEL_OPENED | 1678 * @brief Get field status from event L2CAP_EVENT_ECBM_CHANNEL_OPENED |
1679 * @param event packet 1680 * @return status 1681 * @note: btstack_type 1 1682 */ 1683static inline uint8_t l2cap_event_data_channel_opened_get_status(const uint8_t * event){ 1684 return event[2]; 1685} 1686/** | 1679 * @param event packet 1680 * @return status 1681 * @note: btstack_type 1 1682 */ 1683static inline uint8_t l2cap_event_data_channel_opened_get_status(const uint8_t * event){ 1684 return event[2]; 1685} 1686/** |
1687 * @brief Get field address_type from event L2CAP_EVENT_DATA_CHANNEL_OPENED | 1687 * @brief Get field address_type from event L2CAP_EVENT_ECBM_CHANNEL_OPENED |
1688 * @param event packet 1689 * @return address_type 1690 * @note: btstack_type 1 1691 */ 1692static inline uint8_t l2cap_event_data_channel_opened_get_address_type(const uint8_t * event){ 1693 return event[3]; 1694} 1695/** | 1688 * @param event packet 1689 * @return address_type 1690 * @note: btstack_type 1 1691 */ 1692static inline uint8_t l2cap_event_data_channel_opened_get_address_type(const uint8_t * event){ 1693 return event[3]; 1694} 1695/** |
1696 * @brief Get field address from event L2CAP_EVENT_DATA_CHANNEL_OPENED | 1696 * @brief Get field address from event L2CAP_EVENT_ECBM_CHANNEL_OPENED |
1697 * @param event packet 1698 * @param Pointer to storage for address 1699 * @note: btstack_type B 1700 */ 1701static inline void l2cap_event_data_channel_opened_get_address(const uint8_t * event, bd_addr_t address){ 1702 reverse_bytes(&event[4], address, 6); 1703} 1704/** | 1697 * @param event packet 1698 * @param Pointer to storage for address 1699 * @note: btstack_type B 1700 */ 1701static inline void l2cap_event_data_channel_opened_get_address(const uint8_t * event, bd_addr_t address){ 1702 reverse_bytes(&event[4], address, 6); 1703} 1704/** |
1705 * @brief Get field handle from event L2CAP_EVENT_DATA_CHANNEL_OPENED | 1705 * @brief Get field handle from event L2CAP_EVENT_ECBM_CHANNEL_OPENED |
1706 * @param event packet 1707 * @return handle 1708 * @note: btstack_type H 1709 */ 1710static inline hci_con_handle_t l2cap_event_data_channel_opened_get_handle(const uint8_t * event){ 1711 return little_endian_read_16(event, 10); 1712} 1713/** | 1706 * @param event packet 1707 * @return handle 1708 * @note: btstack_type H 1709 */ 1710static inline hci_con_handle_t l2cap_event_data_channel_opened_get_handle(const uint8_t * event){ 1711 return little_endian_read_16(event, 10); 1712} 1713/** |
1714 * @brief Get field incoming from event L2CAP_EVENT_DATA_CHANNEL_OPENED | 1714 * @brief Get field incoming from event L2CAP_EVENT_ECBM_CHANNEL_OPENED |
1715 * @param event packet 1716 * @return incoming 1717 * @note: btstack_type 1 1718 */ 1719static inline uint8_t l2cap_event_data_channel_opened_get_incoming(const uint8_t * event){ 1720 return event[12]; 1721} 1722/** | 1715 * @param event packet 1716 * @return incoming 1717 * @note: btstack_type 1 1718 */ 1719static inline uint8_t l2cap_event_data_channel_opened_get_incoming(const uint8_t * event){ 1720 return event[12]; 1721} 1722/** |
1723 * @brief Get field psm from event L2CAP_EVENT_DATA_CHANNEL_OPENED | 1723 * @brief Get field psm from event L2CAP_EVENT_ECBM_CHANNEL_OPENED |
1724 * @param event packet 1725 * @return psm 1726 * @note: btstack_type 2 1727 */ 1728static inline uint16_t l2cap_event_data_channel_opened_get_psm(const uint8_t * event){ 1729 return little_endian_read_16(event, 13); 1730} 1731/** | 1724 * @param event packet 1725 * @return psm 1726 * @note: btstack_type 2 1727 */ 1728static inline uint16_t l2cap_event_data_channel_opened_get_psm(const uint8_t * event){ 1729 return little_endian_read_16(event, 13); 1730} 1731/** |
1732 * @brief Get field local_cid from event L2CAP_EVENT_DATA_CHANNEL_OPENED | 1732 * @brief Get field local_cid from event L2CAP_EVENT_ECBM_CHANNEL_OPENED |
1733 * @param event packet 1734 * @return local_cid 1735 * @note: btstack_type 2 1736 */ 1737static inline uint16_t l2cap_event_data_channel_opened_get_local_cid(const uint8_t * event){ 1738 return little_endian_read_16(event, 15); 1739} 1740/** | 1733 * @param event packet 1734 * @return local_cid 1735 * @note: btstack_type 2 1736 */ 1737static inline uint16_t l2cap_event_data_channel_opened_get_local_cid(const uint8_t * event){ 1738 return little_endian_read_16(event, 15); 1739} 1740/** |
1741 * @brief Get field remote_cid from event L2CAP_EVENT_DATA_CHANNEL_OPENED | 1741 * @brief Get field remote_cid from event L2CAP_EVENT_ECBM_CHANNEL_OPENED |
1742 * @param event packet 1743 * @return remote_cid 1744 * @note: btstack_type 2 1745 */ 1746static inline uint16_t l2cap_event_data_channel_opened_get_remote_cid(const uint8_t * event){ 1747 return little_endian_read_16(event, 17); 1748} 1749/** | 1742 * @param event packet 1743 * @return remote_cid 1744 * @note: btstack_type 2 1745 */ 1746static inline uint16_t l2cap_event_data_channel_opened_get_remote_cid(const uint8_t * event){ 1747 return little_endian_read_16(event, 17); 1748} 1749/** |
1750 * @brief Get field local_mtu from event L2CAP_EVENT_DATA_CHANNEL_OPENED | 1750 * @brief Get field local_mtu from event L2CAP_EVENT_ECBM_CHANNEL_OPENED |
1751 * @param event packet 1752 * @return local_mtu 1753 * @note: btstack_type 2 1754 */ 1755static inline uint16_t l2cap_event_data_channel_opened_get_local_mtu(const uint8_t * event){ 1756 return little_endian_read_16(event, 19); 1757} 1758/** | 1751 * @param event packet 1752 * @return local_mtu 1753 * @note: btstack_type 2 1754 */ 1755static inline uint16_t l2cap_event_data_channel_opened_get_local_mtu(const uint8_t * event){ 1756 return little_endian_read_16(event, 19); 1757} 1758/** |
1759 * @brief Get field remote_mtu from event L2CAP_EVENT_DATA_CHANNEL_OPENED | 1759 * @brief Get field remote_mtu from event L2CAP_EVENT_ECBM_CHANNEL_OPENED |
1760 * @param event packet 1761 * @return remote_mtu 1762 * @note: btstack_type 2 1763 */ 1764static inline uint16_t l2cap_event_data_channel_opened_get_remote_mtu(const uint8_t * event){ 1765 return little_endian_read_16(event, 21); 1766} 1767 1768/** | 1760 * @param event packet 1761 * @return remote_mtu 1762 * @note: btstack_type 2 1763 */ 1764static inline uint16_t l2cap_event_data_channel_opened_get_remote_mtu(const uint8_t * event){ 1765 return little_endian_read_16(event, 21); 1766} 1767 1768/** |
1769 * @brief Get field local_cid from event L2CAP_EVENT_DATA_CHANNEL_CLOSED | 1769 * @brief Get field local_cid from event L2CAP_EVENT_ECBM_CHANNEL_OPENED |
1770 * @param event packet 1771 * @return local_cid 1772 * @note: btstack_type 2 1773 */ 1774static inline uint16_t l2cap_event_data_channel_closed_get_local_cid(const uint8_t * event){ 1775 return little_endian_read_16(event, 2); 1776} 1777 1778/** | 1770 * @param event packet 1771 * @return local_cid 1772 * @note: btstack_type 2 1773 */ 1774static inline uint16_t l2cap_event_data_channel_closed_get_local_cid(const uint8_t * event){ 1775 return little_endian_read_16(event, 2); 1776} 1777 1778/** |
1779 * @brief Get field local_cid from event L2CAP_EVENT_DATA_CHANNEL_CAN_SEND_NOW | 1779 * @brief Get field local_cid from event L2CAP_EVENT_ECBM_CAN_SEND_NOW |
1780 * @param event packet 1781 * @return local_cid 1782 * @note: btstack_type 2 1783 */ 1784static inline uint16_t l2cap_event_data_channel_can_send_now_get_local_cid(const uint8_t * event){ 1785 return little_endian_read_16(event, 2); 1786} 1787 1788/** | 1780 * @param event packet 1781 * @return local_cid 1782 * @note: btstack_type 2 1783 */ 1784static inline uint16_t l2cap_event_data_channel_can_send_now_get_local_cid(const uint8_t * event){ 1785 return little_endian_read_16(event, 2); 1786} 1787 1788/** |
1789 * @brief Get field local_cid from event L2CAP_EVENT_DATA_CHANNEL_PACKET_SENT | 1789 * @brief Get field local_cid from event L2CAP_EVENT_ECBM_PACKET_SENT |
1790 * @param event packet 1791 * @return local_cid 1792 * @note: btstack_type 2 1793 */ 1794static inline uint16_t l2cap_event_data_channel_packet_sent_get_local_cid(const uint8_t * event){ 1795 return little_endian_read_16(event, 2); 1796} 1797 1798/** | 1790 * @param event packet 1791 * @return local_cid 1792 * @note: btstack_type 2 1793 */ 1794static inline uint16_t l2cap_event_data_channel_packet_sent_get_local_cid(const uint8_t * event){ 1795 return little_endian_read_16(event, 2); 1796} 1797 1798/** |
1799 * @brief Get field remote_cid from event L2CAP_EVENT_DATA_CHANNEL_RECONFIGURED | 1799 * @brief Get field remote_cid from event L2CAP_EVENT_ECBM_RECONFIGURED |
1800 * @param event packet 1801 * @return remote_cid 1802 * @note: btstack_type 2 1803 */ 1804static inline uint16_t l2cap_event_data_channel_reconfigured_get_remote_cid(const uint8_t * event){ 1805 return little_endian_read_16(event, 2); 1806} 1807/** | 1800 * @param event packet 1801 * @return remote_cid 1802 * @note: btstack_type 2 1803 */ 1804static inline uint16_t l2cap_event_data_channel_reconfigured_get_remote_cid(const uint8_t * event){ 1805 return little_endian_read_16(event, 2); 1806} 1807/** |
1808 * @brief Get field mtu from event L2CAP_EVENT_DATA_CHANNEL_RECONFIGURED | 1808 * @brief Get field mtu from event L2CAP_EVENT_ECBM_RECONFIGURED |
1809 * @param event packet 1810 * @return mtu 1811 * @note: btstack_type 2 1812 */ 1813static inline uint16_t l2cap_event_data_channel_reconfigured_get_mtu(const uint8_t * event){ 1814 return little_endian_read_16(event, 4); 1815} 1816/** | 1809 * @param event packet 1810 * @return mtu 1811 * @note: btstack_type 2 1812 */ 1813static inline uint16_t l2cap_event_data_channel_reconfigured_get_mtu(const uint8_t * event){ 1814 return little_endian_read_16(event, 4); 1815} 1816/** |
1817 * @brief Get field mps from event L2CAP_EVENT_DATA_CHANNEL_RECONFIGURED | 1817 * @brief Get field mps from event L2CAP_EVENT_ECBM_RECONFIGURED |
1818 * @param event packet 1819 * @return mps 1820 * @note: btstack_type 2 1821 */ 1822static inline uint16_t l2cap_event_data_channel_reconfigured_get_mps(const uint8_t * event){ 1823 return little_endian_read_16(event, 6); 1824} 1825 1826/** | 1818 * @param event packet 1819 * @return mps 1820 * @note: btstack_type 2 1821 */ 1822static inline uint16_t l2cap_event_data_channel_reconfigured_get_mps(const uint8_t * event){ 1823 return little_endian_read_16(event, 6); 1824} 1825 1826/** |
1827 * @brief Get field local_cid from event L2CAP_EVENT_DATA_CHANNEL_RECONFIGURATION_COMPLETE | 1827 * @brief Get field local_cid from event L2CAP_EVENT_ECBM_RECONFIGURATION_COMPLETE |
1828 * @param event packet 1829 * @return local_cid 1830 * @note: btstack_type 2 1831 */ 1832static inline uint16_t l2cap_event_data_channel_reconfiguration_complete_get_local_cid(const uint8_t * event){ 1833 return little_endian_read_16(event, 2); 1834} 1835/** | 1828 * @param event packet 1829 * @return local_cid 1830 * @note: btstack_type 2 1831 */ 1832static inline uint16_t l2cap_event_data_channel_reconfiguration_complete_get_local_cid(const uint8_t * event){ 1833 return little_endian_read_16(event, 2); 1834} 1835/** |
1836 * @brief Get field reconfigure_result from event L2CAP_EVENT_DATA_CHANNEL_RECONFIGURATION_COMPLETE | 1836 * @brief Get field reconfigure_result from event L2CAP_EVENT_ECBM_RECONFIGURATION_COMPLETE |
1837 * @param event packet 1838 * @return reconfigure_result 1839 * @note: btstack_type 2 1840 */ 1841static inline uint16_t l2cap_event_data_channel_reconfiguration_complete_get_reconfigure_result(const uint8_t * event){ 1842 return little_endian_read_16(event, 4); 1843} 1844 --- 10612 unchanged lines hidden --- | 1837 * @param event packet 1838 * @return reconfigure_result 1839 * @note: btstack_type 2 1840 */ 1841static inline uint16_t l2cap_event_data_channel_reconfiguration_complete_get_reconfigure_result(const uint8_t * event){ 1842 return little_endian_read_16(event, 4); 1843} 1844 --- 10612 unchanged lines hidden --- |