Lines Matching +full:out +full:- +full:active +full:- +full:low

2  * Copyright (c) 2022 Andrei-Edward Popa <andrei.popa105@yahoo.com>
4 * SPDX-License-Identifier: Apache-2.0
186 * API template to take out the device from reset state.
221 * @retval -ENOSYS If the functionality is not implemented by the driver.
222 * @retval -errno Other negative errno in case of failure.
228 const struct reset_driver_api *api = (const struct reset_driver_api *)dev->api; in z_impl_reset_status()
230 if (api->status == NULL) { in z_impl_reset_status()
231 return -ENOSYS; in z_impl_reset_status()
234 return api->status(dev, id, status); in z_impl_reset_status()
242 * reset_status(spec->dev, spec->id, status);
251 return reset_status(spec->dev, spec->id, status); in reset_status_dt()
258 * depending on the logic level (active-high/active-low).
264 * @retval -ENOSYS If the functionality is not implemented by the driver.
265 * @retval -errno Other negative errno in case of failure.
271 const struct reset_driver_api *api = (const struct reset_driver_api *)dev->api; in z_impl_reset_line_assert()
273 if (api->line_assert == NULL) { in z_impl_reset_line_assert()
274 return -ENOSYS; in z_impl_reset_line_assert()
277 return api->line_assert(dev, id); in z_impl_reset_line_assert()
285 * reset_line_assert(spec->dev, spec->id);
293 return reset_line_assert(spec->dev, spec->id); in reset_line_assert_dt()
297 * @brief Take out the device from reset state.
300 * depending on the logic level (active-low/active-high).
306 * @retval -ENOSYS If the functionality is not implemented by the driver.
307 * @retval -errno Other negative errno in case of failure.
313 const struct reset_driver_api *api = (const struct reset_driver_api *)dev->api; in z_impl_reset_line_deassert()
315 if (api->line_deassert == NULL) { in z_impl_reset_line_deassert()
316 return -ENOSYS; in z_impl_reset_line_deassert()
319 return api->line_deassert(dev, id); in z_impl_reset_line_deassert()
327 * reset_line_deassert(spec->dev, spec->id)
335 return reset_line_deassert(spec->dev, spec->id); in reset_line_deassert_dt()
347 * @retval -ENOSYS If the functionality is not implemented by the driver.
348 * @retval -errno Other negative errno in case of failure.
354 const struct reset_driver_api *api = (const struct reset_driver_api *)dev->api; in z_impl_reset_line_toggle()
356 if (api->line_toggle == NULL) { in z_impl_reset_line_toggle()
357 return -ENOSYS; in z_impl_reset_line_toggle()
360 return api->line_toggle(dev, id); in z_impl_reset_line_toggle()
368 * reset_line_toggle(spec->dev, spec->id)
376 return reset_line_toggle(spec->dev, spec->id); in reset_line_toggle_dt()