Zephyr Project API 4.2.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
mc146818.h File Reference
#include <zephyr/device.h>

Go to the source code of this file.

Functions

uint8_t mfd_mc146818_std_read (const struct device *dev, uint8_t offset)
 Read the value at the given offset in standard memory bank.
 
void mfd_mc146818_std_write (const struct device *dev, uint8_t offset, uint8_t value)
 Write the value at the given offset in standard memory bank.
 
uint8_t mfd_mc146818_ext_read (const struct device *dev, uint8_t offset)
 Read the value at the given offset in extended memory bank.
 
void mfd_mc146818_ext_write (const struct device *dev, uint8_t offset, uint8_t value)
 Write the value at the given offset in extended memory bank.
 

Function Documentation

◆ mfd_mc146818_ext_read()

uint8_t mfd_mc146818_ext_read ( const struct device dev,
uint8_t  offset 
)

Read the value at the given offset in extended memory bank.

Parameters
devmc146818 mfd device
offsetmemory offset to be read.
Return values
valueat the offset

◆ mfd_mc146818_ext_write()

void mfd_mc146818_ext_write ( const struct device dev,
uint8_t  offset,
uint8_t  value 
)

Write the value at the given offset in extended memory bank.

Parameters
devmc146818 mfd device
offsetmemory offset to be written.
valueto be written at the offset

◆ mfd_mc146818_std_read()

uint8_t mfd_mc146818_std_read ( const struct device dev,
uint8_t  offset 
)

Read the value at the given offset in standard memory bank.

Parameters
devmc146818 mfd device
offsetmemory offset to be read.
Return values
valueat the offset

◆ mfd_mc146818_std_write()

void mfd_mc146818_std_write ( const struct device dev,
uint8_t  offset,
uint8_t  value 
)

Write the value at the given offset in standard memory bank.

Parameters
devmc146818 mfd device
offsetmemory offset to be written.
valueto be written at the offset