Home
last modified time | relevance | path

Searched full:att (Results 1 – 25 of 183) sorted by relevance

12345678

/Zephyr-latest/tests/drivers/i2s/i2s_api/src/
Dcommon.c31 static void fill_buf(int16_t *tx_block, int att) in fill_buf() argument
34 tx_block[2 * i] = data_l[i] >> att; in fill_buf()
35 tx_block[2 * i + 1] = data_r[i] >> att; in fill_buf()
39 static int verify_buf(int16_t *rx_block, int att) in verify_buf() argument
53 } while (rx_block[2 * offset] != data_l[0] >> att); in verify_buf()
63 if (rx_block[2 * i] != data_l[i] >> att) { in verify_buf()
64 TC_PRINT("Error: att %d: data_l mismatch at position " in verify_buf()
66 att, i, data_l[i] >> att, rx_block[2 * i]); in verify_buf()
69 if (rx_block[2 * i + 1] != data_r[i] >> att) { in verify_buf()
70 TC_PRINT("Error: att %d: data_r mismatch at position " in verify_buf()
[all …]
Di2s_api_test.h40 int tx_block_write(const struct device *dev_i2s, int att, int err);
41 int rx_block_read(const struct device *dev_i2s, int att);
/Zephyr-latest/subsys/bluetooth/host/
DKconfig.gatt1 # Bluetooth ATT/GATT configuration options
6 menu "ATT and GATT Options"
9 bool "Print ATT error codes as strings [EXPERIMENTAL]"
12 This configuration enables printing of ATT error
17 int "Number of ATT buffers"
22 These buffers are only used for sending anything over ATT.
26 int "Number of ATT prepare write buffers"
30 Number of buffers available for ATT prepare write, setting
38 If an ATT request fails due to insufficient security, the host will
39 try to elevate the security level and retry the ATT request.
[all …]
Datt.c1 /* att.c - Attribute protocol handling */
20 #include <zephyr/bluetooth/att.h>
65 /* Pool for incoming ATT packets */
101 /* ATT channel specific data */
104 struct bt_att *att; member
138 /* ATT connection specific data */
168 /** The thread ATT response handlers likely run on.
170 * Blocking this thread while waiting for an ATT request to resolve can cause a
173 * This can happen if the application queues ATT requests in the context of a
174 * callback from the Bluetooth stack. This is because queuing an ATT request
[all …]
Datt_internal.h16 /* Local ATT Rx MTU
21 * The local ATT Server Rx MTU is limited to BT_L2CAP_TX_MTU because the GATT
22 * long attribute read protocol (Core v5.3 Vol 3 Part G 4.8.3) treats the ATT
281 /* ATT request context */
307 /* Send ATT PDU over a connection */
310 /* Send ATT Request over a connection */
313 /* Cancel ATT request */
319 /** @brief Find a pending ATT request by its user_data pointer.
326 /* Checks if only the fixed ATT channel is connected */
332 /* Check if BT_ATT_ERR_DB_OUT_OF_SYNC has been sent on the fixed ATT channel */
/Zephyr-latest/tests/posix/common/src/
Dcond.c53 pthread_condattr_t att = {0}; in ZTEST() local
55 zassert_ok(pthread_condattr_init(&att)); in ZTEST()
57 zassert_ok(pthread_condattr_getclock(&att, &clock_id), "pthread_condattr_getclock failed"); in ZTEST()
60 zassert_ok(pthread_condattr_setclock(&att, CLOCK_REALTIME), in ZTEST()
63 zassert_ok(pthread_condattr_getclock(&att, &clock_id), "pthread_condattr_setclock failed"); in ZTEST()
66 zassert_equal(pthread_condattr_setclock(&att, 42), -EINVAL, in ZTEST()
69 zassert_ok(pthread_condattr_destroy(&att)); in ZTEST()
/Zephyr-latest/tests/bsim/bluetooth/host/att/eatt/
Dtestcase.yaml10 bluetooth.host.att.eatt.autoconnect:
18 bluetooth.host.att.eatt.lowres:
23 bluetooth.host.att.eatt.multiple_conn:
/Zephyr-latest/include/zephyr/bluetooth/
Datt.h14 * @brief Attribute Protocol (ATT)
15 * @defgroup bt_att Attribute Protocol (ATT)
31 /** The ATT operation was successful */
43 /** The ATT Server does not support the request received from the client */
102 /** Converts a ATT error to string.
109 * The ATT and GATT documentation found in Vol 4, Part F and
114 * @return The string representation of the ATT error code.
139 /** @brief Connect Enhanced ATT channels
142 * Enhanced ATT channels. The peer may have limited resources and fewer channels
146 * @param num_channels The number of Enhanced ATT beares to request.
[all …]
/Zephyr-latest/lib/posix/options/
Dcond.c172 int pthread_cond_init(pthread_cond_t *cvar, const pthread_condattr_t *att) in pthread_cond_init() argument
176 ARG_UNUSED(att); in pthread_cond_init()
225 int pthread_condattr_init(pthread_condattr_t *att) in pthread_condattr_init() argument
227 __ASSERT_NO_MSG(att != NULL); in pthread_condattr_init()
229 att->clock = CLOCK_MONOTONIC; in pthread_condattr_init()
234 int pthread_condattr_destroy(pthread_condattr_t *att) in pthread_condattr_destroy() argument
236 ARG_UNUSED(att); in pthread_condattr_destroy()
241 int pthread_condattr_getclock(const pthread_condattr_t *ZRESTRICT att, in pthread_condattr_getclock() argument
244 *clock_id = att->clock; in pthread_condattr_getclock()
249 int pthread_condattr_setclock(pthread_condattr_t *att, clockid_t clock_id) in pthread_condattr_setclock() argument
[all …]
/Zephyr-latest/tests/bsim/bluetooth/host/att/pipeline/dut/
Dtestcase.yaml10 bluetooth.host.att.pipeline.dut:
13 bluetooth.host.att.pipeline.dut_rx_tx_prio:
/Zephyr-latest/tests/bsim/bluetooth/host/att/mtu_update/
Dtestcase.yaml10 bluetooth.host.att.mtu_update.central:
15 bluetooth.host.att.mtu_update.peripheral:
/Zephyr-latest/tests/bsim/bluetooth/host/att/timeout/
Dmain.c49 LOG_INF("ATT timeout will %sbe triggered", trigger_att_timeout ? "" : "not "); in read_chrc()
52 /* Sleep longer than ATT Timeout (section 3.3.3). */ in read_chrc()
164 * 8. Ensure that connection stays alive after a delay equal to ATT timeout.
169 * 2. Make the read callback sleep for more than ATT Timeout when the central tries to read.
173 * 6. Expect the connection stay alive after a delay equal to ATT timeout.
183 /* Test ATT timeout. */ in test_timeout()
192 bs_sync_all_log("Ready to test ATT timeout"); in test_timeout()
199 /* Here disconnect is triggered by the Central host due to ATT timeout. */ in test_timeout()
219 /* Check that disconnect doesn't happen during time > ATT timeout. */ in test_timeout()
Dtestcase.yaml2 bluetooth.host.att.timeout:
/Zephyr-latest/scripts/tests/twister/
Dtest_platform.py123 att = getattr(platform, k)
124 if isinstance(v, list) and not isinstance(att, list):
127 assert sorted(att) == sorted(v)
129 assert att == v
/Zephyr-latest/tests/bsim/bluetooth/host/misc/acl_tx_frag/
Dprj.conf33 # Outgoing ATT buffers
36 # Allow big ATT MTU
/Zephyr-latest/tests/bsim/bluetooth/ll/edtt/gatt_test_app/src/gatt/
Dservice_c_2_1.c164 * with a specific ATT error code.
186 * with a specific ATT error code.
209 * with a specific ATT error code.
239 * with a specific ATT error code.
262 * with a specific ATT error code.
294 * with a specific ATT error code.
325 * with a specific ATT error code.
348 * with a specific ATT error code.
380 * with a specific ATT error code.
411 * with a specific ATT error code.
[all …]
Dservice_f_1.c99 * with a specific ATT error code.
121 * with a specific ATT error code.
144 * with a specific ATT error code.
174 * with a specific ATT error code.
198 * with a specific ATT error code.
231 * with a specific ATT error code.
255 * with a specific ATT error code.
288 * with a specific ATT error code.
315 * with a specific ATT error code.
342 * with a specific ATT error code.
Dservice_b_5_1.c60 * with a specific ATT error code.
83 * with a specific ATT error code.
113 * with a specific ATT error code.
136 * with a specific ATT error code.
166 * with a specific ATT error code.
193 * with a specific ATT error code.
226 * with a specific ATT error code.
249 * with a specific ATT error code.
Dservice_b_1_1.c67 * with a specific ATT error code.
90 * with a specific ATT error code.
120 * with a specific ATT error code.
143 * with a specific ATT error code.
175 * with a specific ATT error code.
201 * with a specific ATT error code.
235 * with a specific ATT error code.
257 * with a specific ATT error code.
/Zephyr-latest/samples/drivers/i2s/output/src/
Dmain.c27 * 90 degrees on right channel. "att" represents a power of two to attenuate
30 static void fill_buf(int16_t *tx_block, int att) in fill_buf() argument
36 tx_block[2 * i] = data[i] / (1 << att); in fill_buf()
39 tx_block[2 * i + 1] = data[r_idx] / (1 << att); in fill_buf()
/Zephyr-latest/tests/bsim/bluetooth/host/att/pipeline/dut/src/
Dmain.c14 #include <zephyr/bluetooth/att.h>
322 * violating peer that batches ATT requests without waiting for in test_procedure_0()
330 * - a "bad" peer, spamming ATT requests as fast as possible. in test_procedure_0()
341 * - Good peer sends valid ATT write requests to DUT in test_procedure_0()
342 * - Good peer validates ATT responses from DUT in test_procedure_0()
343 * - Bad peer sends ATT requests as fast as it can in test_procedure_0()
386 * Verify that the Zephyr host does not pipeline ATT requests. in test_procedure_1()
391 * - DUT sends a bunch of ATT reads in a loop in test_procedure_1()
397 LOG_DBG("Test start: ATT pipeline protocol"); in test_procedure_1()
/Zephyr-latest/tests/drivers/i2s/i2s_speed/src/
Dtest_i2s_speed.c78 static void fill_buf(int16_t *tx_block, int att) in fill_buf() argument
81 tx_block[2 * i] = data_l[i] >> att; in fill_buf()
82 tx_block[2 * i + 1] = data_r[i] >> att; in fill_buf()
86 static int verify_buf(int16_t *rx_block, int att) in verify_buf() argument
100 } while (rx_block[2 * offset] != data_l[0] >> att); in verify_buf()
110 if (rx_block[2 * i] != data_l[i] >> att) { in verify_buf()
111 TC_PRINT("Error: att %d: data_l mismatch at position " in verify_buf()
113 att, i, data_l[i] >> att, rx_block[2 * i]); in verify_buf()
116 if (rx_block[2 * i + 1] != data_r[i] >> att) { in verify_buf()
117 TC_PRINT("Error: att %d: data_r mismatch at position " in verify_buf()
[all …]
/Zephyr-latest/tests/bsim/bluetooth/host/att/sequential/dut/src/
Dmain.c14 #include <zephyr/bluetooth/att.h>
160 /* Suspend on the first write, which is an ATT Request */ in written_to()
258 LOG_DBG("Test start: ATT sequential protocol"); in test_procedure_0()
285 * - tester: send one ATT write request in test_procedure_0()
286 * - tester: send one ATT indication in test_procedure_0()
287 * - tester: send two ATT notifications in test_procedure_0()
288 * - tester: send two ATT commands in test_procedure_0()
/Zephyr-latest/tests/bsim/bluetooth/host/att/long_read/
Dtestcase.yaml2 bluetooth.host.att.long_read:
/Zephyr-latest/tests/bsim/bluetooth/host/att/open_close/
Dtestcase.yaml2 bluetooth.host.att.open_close:

12345678