1sample:
2  description: An example to showcase usage of the nrfx_twim and nrfx_twis drivers, with the use of TXTX TWI transfer descriptor.
3  name: nrfx_twim_twis txtx example
4tests:
5  examples.nrfx_twim_twis.txtx:
6    tags:
7      - twim
8      - twis
9    filter: dt_compat_enabled("nordic,nrf-twim") and dt_compat_enabled("nordic,nrf-twis")
10    platform_allow:
11      - nrf52dk/nrf52832
12      - nrf52833dk/nrf52833
13      - nrf52840dk/nrf52840
14      - nrf5340dk/nrf5340/cpuapp
15      - nrf9160dk/nrf9160
16    integration_platforms:
17      - nrf52dk/nrf52832
18      - nrf52833dk/nrf52833
19      - nrf52840dk/nrf52840
20      - nrf5340dk/nrf5340/cpuapp
21      - nrf9160dk/nrf9160
22    harness: console
23    harness_config:
24      fixture: nrfx_example_loopbacks
25      type: multi_line
26      ordered: true
27      regex:
28        - "Starting nrfx_twim_twis txtx example."
29        - "..............................."
30        - "DRONE REGISTERS:    DEC  |  HEX"
31        - "drone_idx:          1    |  0x1"
32        - "drone_mass:         10   |  0xA"
33        - "x_force:            0    |  0x0"
34        - "y_force:            0    |  0x0"
35        - "z_force:            0    |  0x0"
36        - "x_acceleration:     0    |  0x0"
37        - "y_acceleration:     0    |  0x0"
38        - "z_acceleration:     0    |  0x0"
39        - "additional_data[0]: 0    |  0x0"
40        - "additional_data[1]: 0    |  0x0"
41        - "additional_data[2]: 0    |  0x0"
42        - "additional_data[3]: 0    |  0x0"
43        - "..............................."
44        - "MASTER EVENTS:"
45        - "--> Master event: done - transfer completed"
46        - "--> Master event: done - transfer completed"
47        - "--> Master event: done - transfer completed"
48        - "--> Master event: done - transfer completed"
49        - "TXTX transfers finished."
50        - "..............................."
51        - "DRONE REGISTERS:    DEC  |  HEX"
52        - "drone_idx:          1    |  0x1"
53        - "drone_mass:         10   |  0xA"
54        - "x_force:            50   |  0x32"
55        - "y_force:            100  |  0x64"
56        - "z_force:            150  |  0x96"
57        - "x_acceleration:     5    |  0x5"
58        - "y_acceleration:     10   |  0xA"
59        - "z_acceleration:     15   |  0xF"
60        - "additional_data[0]: 239  |  0xEF"
61        - "additional_data[1]: 190  |  0xBE"
62        - "additional_data[2]: 173  |  0xAD"
63        - "additional_data[3]: 222  |  0xDE"
64