Zephyr API Documentation 4.4.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
Memory-mapped register I/O APIs

Functions

static void sys_write8 (uint8_t data, mm_reg_t addr)
 Write a byte to a memory mapped register.
static uint8_t sys_read8 (mm_reg_t addr)
 Read a byte from a memory mapped register.
static void sys_write16 (uint16_t data, mm_reg_t addr)
 Write 16 bits to a memory mapped register.
static uint16_t sys_read16 (mm_reg_t addr)
 Read 16 bits from a memory mapped register.
static void sys_write32 (uint32_t data, mm_reg_t addr)
 Write 32 bits to a memory mapped register.
static uint32_t sys_read32 (mm_reg_t addr)
 Read 32 bits from a memory mapped register.
static void sys_write64 (uint64_t data, mm_reg_t addr)
 Write 64 bits to a memory mapped register.
static uint64_t sys_read64 (mm_reg_t addr)
 Read 64 bits from a memory mapped register.

Detailed Description

Function Documentation

◆ sys_read16()

uint16_t sys_read16 ( mm_reg_t addr)
inlinestatic

#include <zephyr/sys/sys_io.h>

Read 16 bits from a memory mapped register.

This function reads 16 bits from the given memory mapped register.

Parameters
addrthe memory mapped register address from where to read the 16 bits
Returns
the 16 bits read

◆ sys_read32()

uint32_t sys_read32 ( mm_reg_t addr)
inlinestatic

#include <zephyr/sys/sys_io.h>

Read 32 bits from a memory mapped register.

This function reads 32 bits from the given memory mapped register.

Parameters
addrthe memory mapped register address from where to read the 32 bits
Returns
the 32 bits read

◆ sys_read64()

uint64_t sys_read64 ( mm_reg_t addr)
inlinestatic

#include <zephyr/sys/sys_io.h>

Read 64 bits from a memory mapped register.

This function reads 64 bits from the given memory mapped register.

Parameters
addrthe memory mapped register address from where to read the 64 bits
Returns
the 64 bits read

◆ sys_read8()

uint8_t sys_read8 ( mm_reg_t addr)
inlinestatic

#include <zephyr/sys/sys_io.h>

Read a byte from a memory mapped register.

This function reads a byte from the given memory mapped register.

Parameters
addrthe memory mapped register address from where to read the byte
Returns
the byte read

◆ sys_write16()

void sys_write16 ( uint16_t data,
mm_reg_t addr )
inlinestatic

#include <zephyr/sys/sys_io.h>

Write 16 bits to a memory mapped register.

This function writes 16 bits to the given memory mapped register.

Parameters
datathe 16 bits to write
addrthe memory mapped register address where to write the 16 bits

◆ sys_write32()

void sys_write32 ( uint32_t data,
mm_reg_t addr )
inlinestatic

#include <zephyr/sys/sys_io.h>

Write 32 bits to a memory mapped register.

This function writes 32 bits to the given memory mapped register.

Parameters
datathe 32 bits to write
addrthe memory mapped register address where to write the 32 bits

◆ sys_write64()

void sys_write64 ( uint64_t data,
mm_reg_t addr )
inlinestatic

#include <zephyr/sys/sys_io.h>

Write 64 bits to a memory mapped register.

This function writes 64 bits to the given memory mapped register.

Parameters
datathe 64 bits to write
addrthe memory mapped register address where to write the 64 bits

◆ sys_write8()

void sys_write8 ( uint8_t data,
mm_reg_t addr )
inlinestatic

#include <zephyr/sys/sys_io.h>

Write a byte to a memory mapped register.

This function writes a byte to the given memory mapped register.

Parameters
datathe byte to write
addrthe memory mapped register address where to write the byte