1
0
mirror of https://github.com/TomHarte/CLK.git synced 2024-07-05 10:28:58 +00:00
CLK/Components/5380/ncr5380.hpp

36 lines
532 B
C++
Raw Normal View History

//
// ncr5380.hpp
// Clock Signal
//
// Created by Thomas Harte on 10/08/2019.
// Copyright © 2019 Thomas Harte. All rights reserved.
//
#ifndef ncr5380_hpp
#define ncr5380_hpp
#include <cstdint>
namespace NCR {
namespace NCR5380 {
/*!
Models the NCR 5380, a SCSI interface chip.
*/
class NCR5380 {
public:
/*! Writes @c value to @c address. */
void write(int address, uint8_t value);
/*! Reads from @c address. */
uint8_t read(int address);
private:
uint8_t mode_ = 0xff;
};
}
}
#endif /* ncr5380_hpp */