txtime_setter: clean up and simplify source code
This change formats the block implementation source code
according to a mix of GNURadio and the Kernel coding styles.
The main changes are:
- Limit line length to 80 columns
- Preffer the opposite conditions
- Do not use curly braces for single line loops / conditions
For more details, see:
https://wiki.gnuradio.org/index.php/Coding_guide_impl
https://www.kernel.org/doc/html/v4.10/process/coding-style.html
diff --git a/lib/transmitter/txtime_setter_impl.h b/lib/transmitter/txtime_setter_impl.h
index e3f195a..62f500a 100644
--- a/lib/transmitter/txtime_setter_impl.h
+++ b/lib/transmitter/txtime_setter_impl.h
@@ -39,15 +39,20 @@
time_format d_time_hint;
double d_timing_advance;
double d_delay_correction;
-
+
+ void process_fn_time_reference(pmt::pmt_t msg);
+ void process_txtime_of_burst(pmt::pmt_t msg);
+
public:
- txtime_setter_impl(uint32_t init_fn, uint64_t init_time_secs, double init_time_fracs, uint64_t time_hint_secs, double time_hint_fracs, double timing_advance, double delay_correction);
+ txtime_setter_impl(uint32_t init_fn, uint64_t init_time_secs,
+ double init_time_fracs, uint64_t time_hint_secs,
+ double time_hint_fracs, double timing_advance,
+ double delay_correction);
~txtime_setter_impl();
// Where all the action really happens
- void process_fn_time_reference(pmt::pmt_t msg);
- void process_txtime_of_burst(pmt::pmt_t msg);
- void set_fn_time_reference(uint32_t fn, uint32_t ts, uint64_t time_secs, double time_fracs);
+ void set_fn_time_reference(uint32_t fn, uint32_t ts,
+ uint64_t time_secs, double time_fracs);
void set_time_hint(uint64_t time_hint_secs, double time_hint_fracs);
void set_delay_correction(double delay_correction);
void set_timing_advance(double timing_advance);
@@ -57,4 +62,3 @@
} // namespace gr
#endif /* INCLUDED_GSM_TXTIME_SETTER_IMPL_H */
-