This repository has been archived on 2023-09-28. You can view files and clone it, but cannot push or open issues or pull requests.
homepage/content/projects/noxos/docs/codebase/utils/io.h.md

17 lines
487 B
Markdown
Raw Normal View History

---
title: "io.h"
summary: "provides basic input/output functionalities."
---
# `io_out_byte(port, data)` - function (void)
Writes one byte of **_data_** to **_port_**.
This is a wrapper around the assembly `outb` instruction.
# `io_in_byte(port)` - function (uint8_t)
Reads one byte from **_port_** and returns it.
This is a wrapper around the assembly `inb` instruction.
# `io_wait()` - function (void)
Waits one IO cycle.
Should be used to give the devices enough time to respond.