Zephyr API Documentation  3.6.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
syscon.h File Reference

Public SYSCON driver APIs. More...

#include <errno.h>
#include <zephyr/types.h>
#include <zephyr/device.h>
#include <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.
 

Detailed Description

Public SYSCON driver APIs.