Zephyr Project API
3.2.0
A Scalable Open Source RTOS
|
Public Reset Controller driver APIs. More...
Go to the source code of this file.
Data Structures | |
struct | reset_dt_spec |
Macros | |
#define | RESET_DT_SPEC_GET_BY_IDX(node_id, idx) |
Static initializer for a reset_dt_spec . More... | |
#define | RESET_DT_SPEC_GET(node_id) RESET_DT_SPEC_GET_BY_IDX(node_id, 0) |
Equivalent to RESET_DT_SPEC_GET_BY_IDX(node_id, 0). More... | |
#define | RESET_DT_SPEC_INST_GET_BY_IDX(inst, idx) RESET_DT_SPEC_GET_BY_IDX(DT_DRV_INST(inst), idx) |
Static initializer for a reset_dt_spec from a DT_DRV_COMPAT instance's Reset Controller property at an index. More... | |
#define | RESET_DT_SPEC_INST_GET(inst) RESET_DT_SPEC_INST_GET_BY_IDX(inst, 0) |
Equivalent to RESET_DT_SPEC_INST_GET_BY_IDX(inst, 0). More... | |
Functions | |
int | reset_status (const struct device *dev, uint32_t id, uint8_t *status) |
Get the reset status. More... | |
static int | reset_status_dt (const struct reset_dt_spec *spec, uint8_t *status) |
Get the reset status from a reset_dt_spec . More... | |
int | reset_line_assert (const struct device *dev, uint32_t id) |
Put the device in reset state. More... | |
static int | reset_line_assert_dt (const struct reset_dt_spec *spec) |
Assert the reset state from a reset_dt_spec . More... | |
int | reset_line_deassert (const struct device *dev, uint32_t id) |
Take out the device from reset state. More... | |
static int | reset_line_deassert_dt (const struct reset_dt_spec *spec) |
Deassert the reset state from a reset_dt_spec . More... | |
int | reset_line_toggle (const struct device *dev, uint32_t id) |
Reset the device. More... | |
static int | reset_line_toggle_dt (const struct reset_dt_spec *spec) |
Reset the device from a reset_dt_spec . More... | |
Public Reset Controller driver APIs.