Lines Matching +full:data +full:- +full:role
4 * SPDX-License-Identifier: Apache-2.0
28 /* FIXME - make these Kconfig options */
64 /** @brief BC1.2 device role. */
92 * @param bc12_role Current role of the BC1.2 device.
123 * @param user_data Requester supplied data which is passed along to the callback.
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.
148 * @retval -EIO general input/output error.
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
154 const struct bc12_driver_api *api = (const struct bc12_driver_api *)dev->api; in z_impl_bc12_set_role()
156 return api->set_role(dev, role); in z_impl_bc12_set_role()
164 * @param user_data Requester supplied data which is passed along to the callback.
167 * @retval -EIO general input/output error.
174 const struct bc12_driver_api *api = (const struct bc12_driver_api *)dev->api; in z_impl_bc12_set_result_cb()
176 return api->set_result_cb(dev, cb, user_data); in z_impl_bc12_set_result_cb()