Lines Matching +full:0 +full:x00 +full:- +full:positive
8 * SPDX-License-Identifier: Apache-2.0
20 * @version 0.8.0
45 #define BT_TBS_CALL_STATE_INCOMING 0x00
50 #define BT_TBS_CALL_STATE_DIALING 0x01
52 #define BT_TBS_CALL_STATE_ALERTING 0x02
54 #define BT_TBS_CALL_STATE_ACTIVE 0x03
59 #define BT_TBS_CALL_STATE_LOCALLY_HELD 0x04
64 #define BT_TBS_CALL_STATE_REMOTELY_HELD 0x05
66 #define BT_TBS_CALL_STATE_LOCALLY_AND_REMOTELY_HELD 0x06
74 #define BT_TBS_REASON_BAD_REMOTE_URI 0x00
76 #define BT_TBS_REASON_CALL_FAILED 0x01
78 #define BT_TBS_REASON_REMOTE_ENDED_CALL 0x02
80 #define BT_TBS_REASON_SERVER_ENDED_CALL 0x03
82 #define BT_TBS_REASON_LINE_BUSY 0x04
84 #define BT_TBS_REASON_NETWORK_CONGESTED 0x05
86 #define BT_TBS_REASON_CLIENT_TERMINATED 0x06
88 #define BT_TBS_REASON_NO_SERVICE 0x07
90 #define BT_TBS_REASON_NO_ANSWER 0x08
92 #define BT_TBS_REASON_UNSPECIFIED 0x09
100 #define BT_TBS_RESULT_CODE_SUCCESS 0x00
102 #define BT_TBS_RESULT_CODE_OPCODE_NOT_SUPPORTED 0x01
104 #define BT_TBS_RESULT_CODE_OPERATION_NOT_POSSIBLE 0x02
106 #define BT_TBS_RESULT_CODE_INVALID_CALL_INDEX 0x03
111 #define BT_TBS_RESULT_CODE_STATE_MISMATCH 0x04
113 #define BT_TBS_RESULT_CODE_OUT_OF_RESOURCES 0x05
115 #define BT_TBS_RESULT_CODE_INVALID_URI 0x06
126 #define BT_TBS_FEATURE_HOLD BIT(0)
138 #define BT_TBS_SIGNAL_STRENGTH_NO_SERVICE 0
150 #define BT_TBS_TECHNOLOGY_3G 0x01
152 #define BT_TBS_TECHNOLOGY_4G 0x02
153 /** Long-term evolution (LTE) */
154 #define BT_TBS_TECHNOLOGY_LTE 0x03
156 #define BT_TBS_TECHNOLOGY_WIFI 0x04
158 #define BT_TBS_TECHNOLOGY_5G 0x05
160 #define BT_TBS_TECHNOLOGY_GSM 0x06
161 /** Code-Division Multiple Access (CDMA) */
162 #define BT_TBS_TECHNOLOGY_CDMA 0x07
164 #define BT_TBS_TECHNOLOGY_2G 0x08
165 /** Wideband Code-Division Multiple Access (WCDMA) */
166 #define BT_TBS_TECHNOLOGY_WCDMA 0x09
174 #define BT_TBS_STATUS_FLAG_INBAND_RINGTONE BIT(0)
184 #define BT_TBS_CALL_FLAG_OUTGOING BIT(0)
197 #define BT_TBS_GTBS_INDEX 0xFF
285 * @return int BT_TBS_RESULT_CODE_* if positive or 0,
295 * @return int BT_TBS_RESULT_CODE_* if positive or 0,
305 * @return int BT_TBS_RESULT_CODE_* if positive or 0,
315 * @return int BT_TBS_RESULT_CODE_* if positive or 0,
328 * @return int A call index on success (positive value),
339 * @return int BT_TBS_RESULT_CODE_* if positive or 0,
349 * @return int BT_TBS_RESULT_CODE_* if positive or 0,
359 * @return int BT_TBS_RESULT_CODE_* if positive or 0,
369 * @return int BT_TBS_RESULT_CODE_* if positive or 0,
379 * @return int BT_TBS_RESULT_CODE_* if positive or 0,
392 * @return int New call index if positive or 0,
405 * @return int BT_TBS_RESULT_CODE_* if positive or 0,
417 * @return int BT_TBS_RESULT_CODE_* if positive or 0,
429 * @return int BT_TBS_RESULT_CODE_* if positive or 0,
442 * @return int BT_TBS_RESULT_CODE_* if positive or 0,
454 * @return BT_TBS_RESULT_CODE_* if positive or 0, errno value if negative.
477 * The Uniform Resource Identifiers schemes supported by this bearer as an UTF-8 string
479 * See https://www.iana.org/assignments/uri-schemes/uri-schemes.xhtml for possible values.
487 * A GTBS shall be registered before any non-GTBS services. There can only be a single GTBS
527 * @retval index The bearer index if return value is >= 0
528 * @retval -EINVAL @p param contains invalid data
529 * @retval -EALREADY @p param.gtbs is true and GTBS has already been registered
530 * @retval -EAGAIN @p param.gtbs is false and GTBS has not been registered
531 * @retval -ENOMEM @p param.gtbs is false and no more TBS can be registered (see
533 * @retval -ENOEXEC The service failed to be registered
548 * @retval 0 Success
549 * @retval -EINVAL @p bearer_index is invalid
550 * @retval -EALREADY The bearer identified by @p bearer_index is not registered
551 * @retval -EAGAIN The bearer identified by @p bearer_index is GTBS and there are TBS instances
553 * @retval -ENOEXEC The service failed to be unregistered
610 * always be 0, and does not reflect the actual call index.
622 * @param value The Null-terminated string value. The value is not kept
787 * @return int 0 on success, GATT error value on fail.
796 * @param uri The Null-terminated URI string.
798 * @return int 0 on success, errno value on fail.
808 * @param interval The interval to write (0-255 seconds).
810 * @return int 0 on success, errno value on fail.
826 * @return int 0 on success, errno value on fail.
841 * @return int 0 on success, errno value on fail.
856 * @return int 0 on success, errno value on fail.
871 * @return int 0 on success, errno value on fail.
886 * @return int 0 on success, errno value on fail.
902 * @return int 0 on success, errno value on fail.
916 * @return int 0 on success, errno value on fail.
930 * @return int 0 on success, errno value on fail.
943 * @return int 0 on success, errno value on fail.
956 * @return int 0 on success, errno value on fail.
969 * @return int 0 on success, errno value on fail.
983 * @return int 0 on success, errno value on fail.
997 * @return int 0 on success, errno value on fail.
1010 * @return int 0 on success, errno value on fail.
1023 * @return int 0 on success, errno value on fail.
1036 * @return int 0 on success, errno value on fail.
1049 * @return int 0 on success, errno value on fail.
1059 * @return int 0 on success, errno value on fail.
1072 * @return int 0 on success, errno value on fail.
1085 * @return int 0 on success, errno value on fail.
1098 * @retval 0 Success
1099 * @retval -EINVAL @p cbs is NULL
1100 * @retval -EEXIST @p cbs is already registered