|
Zephyr API Documentation 4.3.0-rc1
A Scalable Open Source RTOS
|
Main header file for SYSCON (System Control) driver API. More...
#include <errno.h>#include <zephyr/types.h>#include <zephyr/device.h>#include <zephyr/syscalls/syscon.h>Go to the source code of this file.
Data Structures | |
| struct | syscon_driver_api |
| System Control (syscon) register driver API. More... | |
Typedefs | |
| typedef int(* | syscon_api_get_base) (const struct device *dev, uintptr_t *addr) |
| API template to get the base address of the syscon region. | |
| typedef int(* | syscon_api_read_reg) (const struct device *dev, uint16_t reg, uint32_t *val) |
| API template to read a single register. | |
| typedef int(* | syscon_api_write_reg) (const struct device *dev, uint16_t reg, uint32_t val) |
| API template to write a single register. | |
| typedef int(* | syscon_api_get_size) (const struct device *dev, size_t *size) |
| API template to get the size of the syscon register. | |
Functions | |
| int | syscon_get_base (const struct device *dev, uintptr_t *addr) |
| Get the syscon base address. | |
| int | syscon_read_reg (const struct device *dev, uint16_t reg, uint32_t *val) |
| Read from syscon register. | |
| int | syscon_write_reg (const struct device *dev, uint16_t reg, uint32_t val) |
| Write to syscon register. | |
| int | syscon_get_size (const struct device *dev, size_t *size) |
| Get the size of the syscon register in bytes. | |
Main header file for SYSCON (System Control) driver API.