MentOS  0.8.0
The Mentoring Operating System
mm_io.h
Go to the documentation of this file.
1 
6 #pragma once
7 
8 #include "stdint.h"
9 
14 
19 
24 
28 void out_memb(uint32_t addr, uint8_t value);
29 
33 void out_mems(uint32_t addr, uint16_t value);
34 
38 void out_meml(uint32_t addr, uint32_t value);
void out_meml(uint32_t addr, uint32_t value)
Writes a 32-bit value at the given address.
Definition: mm_io.c:33
uint32_t in_meml(uint32_t addr)
Reads a 32-bit value from the given address.
Definition: mm_io.c:18
uint8_t in_memb(uint32_t addr)
Reads a 8-bit value from the given address.
Definition: mm_io.c:8
uint16_t in_mems(uint32_t addr)
Reads a 16-bit value from the given address.
Definition: mm_io.c:13
void out_memb(uint32_t addr, uint8_t value)
Writes a 8-bit value at the given address.
Definition: mm_io.c:23
void out_mems(uint32_t addr, uint16_t value)
Writes a 16-bit value at the given address.
Definition: mm_io.c:28
Standard integer data-types.
unsigned short uint16_t
Define the unsigned 16-bit integer.
Definition: stdint.h:24
unsigned int uint32_t
Define the unsigned 32-bit integer.
Definition: stdint.h:18
unsigned char uint8_t
Define the unsigned 8-bit integer.
Definition: stdint.h:30