Zephyr API Documentation  2.7.0-rc2
A Scalable Open Source RTOS
SYSCON Interface

SYSCON Interface. More...

Functions

uintptr_t syscon_get_base (void)
 Get the syscon base address. More...
 
int syscon_read_reg (uint16_t reg, uint32_t *val)
 Read from syscon register. More...
 
int syscon_write_reg (uint16_t reg, uint32_t val)
 Write to syscon register. More...
 

Detailed Description

SYSCON Interface.

Function Documentation

◆ syscon_get_base()

uintptr_t syscon_get_base ( void  )

#include <include/drivers/syscon.h>

Get the syscon base address.

This function returns the syscon base address

Returns
0 on error, the base address on success

◆ syscon_read_reg()

int syscon_read_reg ( uint16_t  reg,
uint32_t val 
)

#include <include/drivers/syscon.h>

Read from syscon register.

This function reads from a specific register in the syscon area

Parameters
regThe register offset
valThe returned value read from the syscon register
Returns
0 on success, negative on error

◆ syscon_write_reg()

int syscon_write_reg ( uint16_t  reg,
uint32_t  val 
)

#include <include/drivers/syscon.h>

Write to syscon register.

This function writes to a specific register in the syscon area

Parameters
regThe register offset
valThe value to be written in the register
Returns
0 on success, negative on error