mirror of
https://github.com/TomHarte/CLK.git
synced 2025-08-05 08:26:28 +00:00
Further doubles down on construction syntax for type conversions.
This commit is contained in:
@@ -89,7 +89,7 @@ void Line::reset_writing() {
|
||||
events_.clear();
|
||||
}
|
||||
|
||||
bool Line::read() {
|
||||
bool Line::read() const {
|
||||
return level_;
|
||||
}
|
||||
|
||||
@@ -136,5 +136,5 @@ void Line::update_delegate(bool level) {
|
||||
|
||||
Cycles::IntType Line::minimum_write_cycles_for_read_delegate_bit() {
|
||||
if(!read_delegate_) return 0;
|
||||
return 1 + (read_delegate_bit_length_ * static_cast<unsigned int>(clock_rate_.as_integral())).get<int>();
|
||||
return 1 + (read_delegate_bit_length_ * unsigned(clock_rate_.as_integral())).get<int>();
|
||||
}
|
||||
|
@@ -59,7 +59,7 @@ class Line {
|
||||
void reset_writing();
|
||||
|
||||
/// @returns The instantaneous level of this line.
|
||||
bool read();
|
||||
bool read() const;
|
||||
|
||||
struct ReadDelegate {
|
||||
virtual bool serial_line_did_produce_bit(Line *line, int bit) = 0;
|
||||
|
Reference in New Issue
Block a user