Home
last modified time | relevance | path

Searched full:role (Results 1 – 25 of 387) sorted by relevance

12345678910>>...16

/Zephyr-latest/samples/bluetooth/iso_broadcast_benchmark/src/
Dmain.c26 char role; in device_role_select() local
29 printk("Choose device role - type r (receiver role) or b " in device_role_select()
30 "(broadcaster role), or q to quit: "); in device_role_select()
32 role = tolower(console_getchar()); in device_role_select()
34 printk("%c\n", role); in device_role_select()
36 if (role == 'r') { in device_role_select()
37 printk("Receiver role\n"); in device_role_select()
39 } else if (role == 'b') { in device_role_select()
40 printk("Broadcaster role\n"); in device_role_select()
42 } else if (role == 'q') { in device_role_select()
[all …]
/Zephyr-latest/subsys/bluetooth/mesh/
Dproxy_msg.c61 struct bt_mesh_proxy_role *role; in proxy_sar_timeout() local
66 role = CONTAINER_OF(dwork, struct bt_mesh_proxy_role, sar_timer); in proxy_sar_timeout()
68 while (!k_fifo_is_empty(&role->pending)) { in proxy_sar_timeout()
69 struct bt_mesh_adv *adv = k_fifo_get(&role->pending, K_NO_WAIT); in proxy_sar_timeout()
76 if (role->conn) { in proxy_sar_timeout()
77 bt_conn_disconnect(role->conn, in proxy_sar_timeout()
86 struct bt_mesh_proxy_role *role = &roles[bt_conn_index(conn)]; in bt_mesh_proxy_msg_recv() local
88 if (net_buf_simple_tailroom(&role->buf) < len - 1) { in bt_mesh_proxy_msg_recv()
89 LOG_WRN("Proxy role buffer overflow"); in bt_mesh_proxy_msg_recv()
95 if (role->buf.len) { in bt_mesh_proxy_msg_recv()
[all …]
Dproxy_cli.c36 struct bt_mesh_proxy_role *role; member
51 if (!servers[i].role) { in find_proxy_srv()
70 if (!servers[i].role || in find_proxy_srv_by_conn()
71 servers[i].role->conn != conn) { in find_proxy_srv_by_conn()
93 if (bt_mesh_proxy_relay_send(server->role->conn, adv)) { in bt_mesh_proxy_cli_relay()
103 static void proxy_msg_recv(struct bt_mesh_proxy_role *role) in proxy_msg_recv() argument
105 switch (role->msg_type) { in proxy_msg_recv()
108 bt_mesh_net_recv(&role->buf, 0, BT_MESH_NET_IF_PROXY); in proxy_msg_recv()
112 bt_mesh_beacon_recv(&role->buf); in proxy_msg_recv()
119 LOG_WRN("Unhandled Message Type 0x%02x", role->msg_type); in proxy_msg_recv()
[all …]
/Zephyr-latest/include/zephyr/bluetooth/audio/
Dtmap.h65 /** @brief TMAP Role characteristic */
68 * @brief TMAP Call Gateway role
70 * This role is defined to telephone and VoIP applications using the Call Control Profile
72 * Audio streams in this role are typically bi-directional.
76 * @brief TMAP Call Terminal role
78 * This role is defined to telephone and VoIP applications using the Call Control Profile
80 * Audio streams in this role are typically bi-directional.
84 * @brief TMAP Unicast Media Sender role
86 * This role is defined send media audio to TMAP Unicast Media Receivers.
87 * Audio streams in this role are typically uni-directional.
[all …]
Dgmap.h32 /** Gaming Role bitfield */
35 * @brief Gaming Role Unicast Game Gateway
42 * @brief Gaming Role Unicast Game Terminal
49 * @brief Gaming Role Broadcast Game Sender
56 * @brief Gaming Role Broadcast Game Receiver
175 * @param role Role of remote device. 0 on failure.
178 void (*discover)(struct bt_conn *conn, int err, enum bt_gmap_role role,
210 * @brief Adds GMAS instance to database and sets the received Gaming Audio Profile role(s).
212 * @param role Gaming Audio Profile role(s) of the device (one or multiple).
213 * @param features Features of the roles. If a role is not in the @p role parameter, then the
[all …]
/Zephyr-latest/subsys/bluetooth/audio/
Dtmap.c34 /* Hex value if all TMAP role bits are set */
71 /* Extract the TMAP role of the peer and inform application of the value found */ in tmap_char_read()
115 /* Discovered TMAS - Search for TMAP Role characteristic */ in discover_func()
127 /* Discovered TMAP Role characteristic - read value */ in discover_func()
130 LOG_DBG("Could not read peer TMAP Role"); in discover_func()
143 uint16_t role; in read_role() local
145 role = sys_cpu_to_le16(tmap_role); in read_role()
146 LOG_DBG("TMAP: role 0x%04X", role); in read_role()
149 &role, sizeof(role)); in read_role()
163 static bool valid_tmap_role(enum bt_tmap_role role) in valid_tmap_role() argument
[all …]
Dgmap_server.c36 LOG_DBG("role 0x%02X", gmap_role); in read_gmap_role()
111 * characteristics at will when registering or modifying the role(s)
135 static bool valid_gmap_role(enum bt_gmap_role role) in valid_gmap_role() argument
137 if (role == 0 || (role & BT_GMAP_ROLE_MASK) != role) { in valid_gmap_role()
138 LOG_DBG("Invalid role %d", role); in valid_gmap_role()
141 if ((role & BT_GMAP_ROLE_UGG) != 0 && !IS_ENABLED(CONFIG_BT_GMAP_UGG_SUPPORTED)) { in valid_gmap_role()
142 LOG_DBG("Device does not support the UGG role"); in valid_gmap_role()
147 if ((role & BT_GMAP_ROLE_UGT) != 0 && !IS_ENABLED(CONFIG_BT_GMAP_UGT_SUPPORTED)) { in valid_gmap_role()
148 LOG_DBG("Device does not support the UGT role"); in valid_gmap_role()
153 if ((role & BT_GMAP_ROLE_BGS) != 0 && !IS_ENABLED(CONFIG_BT_GMAP_BGS_SUPPORTED)) { in valid_gmap_role()
[all …]
DKconfig.cap12 bool "Common Audio Profile Acceptor Role Support"
16 Enabling this will enable the CAP Acceptor role. This instantiates the
20 bool "Common Audio Profile Acceptor Role Set Member support"
34 bool "Common Audio Profile Initiator Role Support"
38 Enabling this will enable the CAP Initiator role.
42 bool "Common Audio Profile Initiator Role Support"
50 Enabling this will enable the CAP Initiator role.
Dbap_stream.c589 return info.role; in conn_get_role()
597 uint8_t role; in bt_bap_stream_config() local
615 role = conn_get_role(conn); in bt_bap_stream_config()
616 if (role != BT_HCI_ROLE_CENTRAL) { in bt_bap_stream_config()
617 LOG_DBG("Invalid conn role: %u, shall be central", role); in bt_bap_stream_config()
647 uint8_t role; in bt_bap_stream_qos() local
667 role = conn_get_role(conn); in bt_bap_stream_qos()
668 if (role != BT_HCI_ROLE_CENTRAL) { in bt_bap_stream_qos()
669 LOG_DBG("Invalid conn role: %u, shall be central", role); in bt_bap_stream_qos()
684 uint8_t role; in bt_bap_stream_enable() local
[all …]
/Zephyr-latest/samples/subsys/usb_c/sink/
DREADME.rst73 Dual Role Data: 1
77 Dual Role Power: 0
84 Dual Role Data: 0
88 Dual Role Power: 0
95 Dual Role Data: 0
99 Dual Role Power: 0
106 Dual Role Data: 0
110 Dual Role Power: 0
/Zephyr-latest/samples/bluetooth/hap_ha/src/
Dhap_ha.h10 * @brief Initialize the BAP Unicast Server role
17 * @brief Initialize the CSIP Set Member role
33 * @brief Initialize the VCP Volume Renderer role
40 * @brief Initialize the MICP Microphone Device role
47 * @brief Initialize the CCP Call Control Client role
/Zephyr-latest/include/zephyr/ipc/
Dipc_rpmsg.h94 * @param role Host / Remote role.
109 unsigned int role,
122 * @param role Host / Remote role.
128 unsigned int role);
135 * @param role Host / Remote role.
142 int ipc_rpmsg_register_ept(struct ipc_rpmsg_instance *instance, unsigned int role,
Dipc_static_vrings.h96 * @param role Host / Remote role.
103 int ipc_static_vrings_init(struct ipc_static_vrings *vr, unsigned int role);
110 * @param role Host / Remote role.
115 int ipc_static_vrings_deinit(struct ipc_static_vrings *vr, unsigned int role);
/Zephyr-latest/subsys/bluetooth/audio/shell/
Dtmap.c26 const enum bt_tmap_role role = (BT_TMAP_CG_SUPPORTED ? BT_TMAP_ROLE_CG : 0U) | in cmd_tmap_init() local
34 shell_info(sh, "Registering TMAS with role: 0x%04X", role); in cmd_tmap_init()
36 err = bt_tmap_register(role); in cmd_tmap_init()
46 static void tmap_discover_cb(enum bt_tmap_role role, struct bt_conn *conn, int err) in tmap_discover_cb() argument
53 shell_print(ctx_shell, "tmap discovered for conn %p: role 0x%04x", conn, role); in tmap_discover_cb()
/Zephyr-latest/subsys/ipc/ipc_service/backends/
DKconfig30 bool "ICMSG backend with multi-endpoint support in initiator role"
38 role.
41 bool "ICMSG backend with multi-endpoint support in follower role"
49 role.
/Zephyr-latest/subsys/ipc/ipc_service/lib/
Dipc_static_vrings.c33 if (p_vdev->role != VIRTIO_DEV_DRIVER) { in ipc_virtio_set_status()
57 if (p_vdev->role == VIRTIO_DEV_DEVICE) { in ipc_virtio_get_status()
73 static int vq_setup(struct ipc_static_vrings *vr, unsigned int role) in vq_setup() argument
97 vr->vdev.role = role; in vq_setup()
106 static int vq_teardown(struct ipc_static_vrings *vr, unsigned int role) in vq_teardown() argument
119 int ipc_static_vrings_init(struct ipc_static_vrings *vr, unsigned int role) in ipc_static_vrings_init() argument
138 return vq_setup(vr, role); in ipc_static_vrings_init()
141 int ipc_static_vrings_deinit(struct ipc_static_vrings *vr, unsigned int role) in ipc_static_vrings_deinit() argument
145 err = vq_teardown(vr, role); in ipc_static_vrings_deinit()
Dipc_rpmsg.c49 int ipc_rpmsg_register_ept(struct ipc_rpmsg_instance *instance, unsigned int role, in ipc_rpmsg_register_ept() argument
60 if (role == RPMSG_REMOTE) { in ipc_rpmsg_register_ept()
73 unsigned int role, in ipc_rpmsg_init() argument
90 if (role == RPMSG_HOST) { in ipc_rpmsg_init()
107 unsigned int role) in ipc_rpmsg_deinit() argument
115 if (role == RPMSG_HOST) { in ipc_rpmsg_deinit()
/Zephyr-latest/dts/bindings/usb-c/
Dusb-c-connector.yaml32 power-role = "sink";
62 power-role:
70 The Port power role. "dual" for Dual Role Port.
72 try-power-role:
79 Preferred power role.
81 data-role:
88 The Port data role.
91 * "dual" for Dual Role Data
/Zephyr-latest/samples/bluetooth/hci_vs_scan_req/
DREADME.rst13 This is quite important in applications in which the broadcaster role is added
14 to the central role, where the RAM saving can be bigger.
15 This sample implements only the broadcaster role; the peripheral role with
/Zephyr-latest/tests/bsim/bluetooth/ll/cis/
DKconfig26 bool "Skip peripheral role subevents to test Flush Timeout"
29 Skip peripheral role subevent reception to test flush timeout
39 bool "Skip central role subevents to test Flush Timeout"
42 Skip central role subevent reception to test flush timeout
/Zephyr-latest/tests/bluetooth/controller/ctrl_unsupported/src/
Dmain.c165 /* Role */ in ZTEST()
185 * role in ZTEST()
193 /* Role */ in ZTEST()
213 * role in ZTEST()
224 /* Role */ in ZTEST()
239 /* Role */ in ZTEST()
255 /* Role */ in ZTEST()
264 /* Role */ in ZTEST()
273 /* Role */ in ZTEST()
281 /* Role */ in ZTEST()
[all …]
/Zephyr-latest/samples/bluetooth/iso_connected_benchmark/
DREADME.rst26 * A remote board running the same sample as the reversed role that supports
48 connected board in the central role.
50 peripheral role.
65 Choose device role - type c (central role) or p (peripheral role), or q to quit: p
66 Peripheral role
90 role. Once connected, the central will output overall data (since boot),
97 Choose device role - type c (central role) or p (peripheral role), or q to quit: c
98 Central role
/Zephyr-latest/include/zephyr/drivers/usb/
Dusb_bc12.h64 /** @brief BC1.2 device role. */
92 * @param bc12_role Current role of the BC1.2 device.
134 int (*set_role)(const struct device *dev, enum bc12_role role);
142 * @brief Set the BC1.2 role.
145 * @param role New role for the BC1.2 device.
150 __syscall int bc12_set_role(const struct device *dev, enum bc12_role role);
152 static inline int z_impl_bc12_set_role(const struct device *dev, enum bc12_role role) in z_impl_bc12_set_role() argument
156 return api->set_role(dev, role); in z_impl_bc12_set_role()
/Zephyr-latest/samples/bluetooth/tmap_central/src/
Dtmap_central.h14 * @brief Initialize the MCP Server role
21 * @brief Initialize the CCP Server role
28 * @brief Initialize the VCP Volume Controller role
56 * @brief Initialize the CAP Initiator role
/Zephyr-latest/doc/connectivity/bluetooth/
Dbluetooth-le-host.rst38 Each role comes with its own build-time configuration option:
41 connection-oriented roles central implicitly enables observer role, and
42 peripheral implicitly enables broadcaster role. Usually the first step
46 Peripheral role. This will be described in more detail in a later
49 Peripheral role
52 Most Zephyr-based BLE devices will most likely be peripheral-role
61 Central role
64 Central role may not be as common for Zephyr-based devices as peripheral
65 role, but it is still a plausible one and equally well supported in
67 role device will scan for available peripheral device and choose one to
[all …]

12345678910>>...16