Lines Matching +full:0 +full:x01 +full:- +full:negative

8  * Copyright (c) 2021-2024 Nordic Semiconductor ASA
10 * SPDX-License-Identifier: Apache-2.0
20 * @version 0.8.0
46 #define BT_ISO_CHAN_SEND_RESERVE BT_BUF_ISO_SIZE(0)
61 * The BIS indexes start from 0x01, so the lowest allowed bit is
62 * BIT(0) that represents index 0x01. To synchronize to e.g. BIS
63 * indexes 0x01 and 0x02, the bitfield value should be BIT(0) | BIT(1).
64 * As a general notation, to sync to BIS index N use BIT(N - 1).
66 #define BT_ISO_BIS_INDEX_BIT(x) (BIT((x) - 1))
69 #define BT_ISO_DATA_PATH_HCI 0x00
72 #define BT_ISO_SDU_INTERVAL_UNKNOWN 0x000000U
74 #define BT_ISO_SDU_INTERVAL_MIN 0x0000FFU
76 #define BT_ISO_SDU_INTERVAL_MAX 0x0FFFFFU
78 #define BT_ISO_ISO_INTERVAL_MIN 0x0004U
80 #define BT_ISO_ISO_INTERVAL_MAX 0x0C80U
82 #define BT_ISO_LATENCY_MIN 0x0005
84 #define BT_ISO_LATENCY_MAX 0x0FA0
86 #define BT_ISO_PACKING_SEQUENTIAL 0x00
88 #define BT_ISO_PACKING_INTERLEAVED 0x01
90 #define BT_ISO_FRAMING_UNFRAMED 0x00
92 #define BT_ISO_FRAMING_FRAMED 0x01
94 #define BT_ISO_MAX_GROUP_ISO_COUNT 0x1F
96 #define BT_ISO_MIN_SDU 0x0001
98 #define BT_ISO_MAX_SDU 0x0FFF
100 #define BT_ISO_CONNECTED_PDU_MIN 0x0000U
102 #define BT_ISO_BROADCAST_PDU_MIN 0x0001U
104 #define BT_ISO_PDU_MAX 0x00FBU
106 #define BT_ISO_BN_MIN 0x01U
108 #define BT_ISO_BN_MAX 0x0FU
110 #define BT_ISO_FT_MIN 0x01U
112 #define BT_ISO_FT_MAX 0xFFU
114 #define BT_ISO_NSE_MIN 0x01U
116 #define BT_ISO_NSE_MAX 0x1FU
118 #define BT_ISO_SYNC_TIMEOUT_MIN 0x000A
120 #define BT_ISO_SYNC_TIMEOUT_MAX 0x4000
122 #define BT_ISO_SYNC_MSE_ANY 0x00
124 #define BT_ISO_SYNC_MSE_MIN 0x01
126 #define BT_ISO_SYNC_MSE_MAX 0x1F
128 #define BT_ISO_CONNECTED_RTN_MAX 0xFF
130 #define BT_ISO_BROADCAST_RTN_MAX 0x1E
134 #define BT_ISO_BIS_INDEX_MIN 0x01
136 #define BT_ISO_BIS_INDEX_MAX 0x1F
138 #define BT_ISO_IRC_MIN 0x01U
140 #define BT_ISO_IRC_MAX 0x0FU
141 /** Minimum pre-transmission offset */
142 #define BT_ISO_PTO_MIN 0x00U
143 /** Maximum pre-transmission offset */
144 #define BT_ISO_PTO_MAX 0x0FU
146 #define BT_ISO_SUBINTERVAL_NONE 0x00000000U
148 #define BT_ISO_SUBINTERVAL_UNKNOWN 0xFFFFFFFFU
156 ((_bis_bitfield) != 0U && (_bis_bitfield) <= BIT_MASK(BT_ISO_BIS_INDEX_MAX))
159 * @brief Life-span states of ISO channel. Used only by internal APIs dealing with setting channel
222 * @brief Channel PHY - See the BT_GAP_LE_PHY_* values.
302 /** Vendor-defined Codec ID */
315 BT_ISO_FLAGS_VALID = BIT(0),
530 * the remaining octets shall be 0.
549 * @brief Pre-transmission offset
551 * Offset used for pre-transmissions.
585 * To synchronize to e.g. BIS indexes 0x01 and 0x02, this can be set to
586 * BT_ISO_BIS_INDEX_BIT(0x01) | BT_ISO_BIS_INDEX_BIT(0x02).
618 * the remaining octets shall be 0.
647 /** Offset used for pre-transmissions */
776 * @return 0 in case of success or negative value in case of error.
790 * @return 0 in case of success or negative value in case of error.
801 * @return 0 in case of success or negative value in case of error.
817 * @return 0 in case of success or negative value in case of error.
839 * @return 0 in case of success or negative value in case of error.
850 * @return 0 in case of success or negative value in case of error.
870 * @retval 0 Successfully started the connecting procedure.
872 * @retval -EINVAL Invalid parameters were supplied.
874 * @retval -EBUSY Some ISO channels are already being connected.
879 * @retval -ENOBUFS Not buffers available to send request to controller or if
882 * @retval -ENOMEM If @kconfig{CONFIG_BT_SMP} is enabled and no more keys
885 * @retval -EIO Controller rejected the request or if @kconfig{CONFIG_BT_SMP}
888 * @retval -ENOTCONN If @kconfig{CONFIG_BT_SMP} is enabled the ACL is not
910 * @return 0 in case of success or negative value in case of error.
931 * @return Number of octets sent in case of success or negative value in case of error.
955 * @return Number of octets sent in case of success or negative value in case of error.
1021 /** Pre-transmission offset (N * 1.25 ms) */
1042 /** Pre-transmission offset (N * 1.25 ms) */
1111 * @return Zero on success or (negative) error code on failure.
1128 * @return Zero on success or (negative) error code on failure.
1162 * @retval 0 on success
1163 * @retval -EINVAL if @p cb is NULL
1164 * @retval -EEXIST if @p cb is already registered
1177 * @return 0 in case of success or negative value in case of error.
1187 * @return 0 in case of success or negative value in case of error.
1198 * @return 0 in case of success or negative value in case of error.