mirror of
https://github.com/TomHarte/CLK.git
synced 2026-04-26 03:29:40 +00:00
Doubles down on <cX> over <X.h> for C includes, and usage of the namespace for those types and functions.
This commit is contained in:
@@ -12,7 +12,7 @@
|
||||
|
||||
using namespace Storage;
|
||||
|
||||
DigitalPhaseLockedLoop::DigitalPhaseLockedLoop(int clocks_per_bit, size_t length_of_history) :
|
||||
DigitalPhaseLockedLoop::DigitalPhaseLockedLoop(int clocks_per_bit, std::size_t length_of_history) :
|
||||
offset_history_(length_of_history, 0),
|
||||
window_length_(clocks_per_bit),
|
||||
clocks_per_bit_(clocks_per_bit) {}
|
||||
|
||||
@@ -24,7 +24,7 @@ class DigitalPhaseLockedLoop {
|
||||
@param clocks_per_bit The expected number of cycles between each bit of input.
|
||||
@param length_of_history The number of historic pulses to consider in locking to phase.
|
||||
*/
|
||||
DigitalPhaseLockedLoop(int clocks_per_bit, size_t length_of_history);
|
||||
DigitalPhaseLockedLoop(int clocks_per_bit, std::size_t length_of_history);
|
||||
|
||||
/*!
|
||||
Runs the loop, impliedly posting no pulses during that period.
|
||||
@@ -55,7 +55,7 @@ class DigitalPhaseLockedLoop {
|
||||
void post_phase_offset(int phase, int offset);
|
||||
|
||||
std::vector<int> offset_history_;
|
||||
size_t offset_history_pointer_ = 0;
|
||||
std::size_t offset_history_pointer_ = 0;
|
||||
int offset_ = 0;
|
||||
|
||||
int phase_ = 0;
|
||||
|
||||
Reference in New Issue
Block a user