1
0
mirror of https://github.com/TomHarte/CLK.git synced 2025-02-07 05:30:30 +00:00

34 lines
567 B
C++
Raw Normal View History

//
// InOut.hpp
// Clock Signal
//
// Created by Thomas Harte on 08/11/2023.
// Copyright © 2023 Thomas Harte. All rights reserved.
//
#pragma once
#include "../AccessType.hpp"
namespace InstructionSet::x86::Primitive {
template <typename IntT, typename ContextT>
void out(
2024-12-01 17:51:20 -05:00
const uint16_t port,
read_t<IntT> value,
ContextT &context
) {
context.io.template out<IntT>(port, value);
}
template <typename IntT, typename ContextT>
void in(
2024-12-01 17:51:20 -05:00
const uint16_t port,
write_t<IntT> value,
ContextT &context
) {
value = context.io.template in<IntT>(port);
}
}