1
0
mirror of https://github.com/gnss-sdr/gnss-sdr synced 2025-08-07 22:43:52 +00:00

Improve formatting consistency

This commit is contained in:
Carles Fernandez 2023-12-21 14:46:27 +01:00
parent c498809bfb
commit 9618918aee
No known key found for this signature in database
GPG Key ID: 4C583C52B0C3877D
3 changed files with 10 additions and 0 deletions

View File

@ -42,11 +42,13 @@ int Fpga_DMA::DMA_open()
return 0; return 0;
} }
int8_t *Fpga_DMA::get_buffer_address() // NOLINT(readability-make-member-function-const) int8_t *Fpga_DMA::get_buffer_address() // NOLINT(readability-make-member-function-const)
{ {
return tx_channel.buf_ptr[0].buffer; return tx_channel.buf_ptr[0].buffer;
} }
int Fpga_DMA::DMA_write(int nbytes) const int Fpga_DMA::DMA_write(int nbytes) const
{ {
int buffer_id = 0; int buffer_id = 0;

View File

@ -82,6 +82,7 @@ void Fpga_dynamic_bit_selection::bit_selection()
} }
} }
void Fpga_dynamic_bit_selection::open_device(volatile unsigned **d_map_base, int &d_dev_descr, int freq_band) void Fpga_dynamic_bit_selection::open_device(volatile unsigned **d_map_base, int &d_dev_descr, int freq_band)
{ {
// find the uio device file corresponding to the dynamic bit selector 0 module. // find the uio device file corresponding to the dynamic bit selector 0 module.
@ -108,6 +109,7 @@ void Fpga_dynamic_bit_selection::open_device(volatile unsigned **d_map_base, int
} }
} }
void Fpga_dynamic_bit_selection::bit_selection_per_rf_band(volatile unsigned *d_map_base, uint32_t shift_out_bits) void Fpga_dynamic_bit_selection::bit_selection_per_rf_band(volatile unsigned *d_map_base, uint32_t shift_out_bits)
{ {
// estimated signal power // estimated signal power
@ -133,6 +135,7 @@ void Fpga_dynamic_bit_selection::bit_selection_per_rf_band(volatile unsigned *d_
d_map_base[0] = shift_out_bits; d_map_base[0] = shift_out_bits;
} }
void Fpga_dynamic_bit_selection::close_device(volatile unsigned *d_map_base, int &d_dev_descr) void Fpga_dynamic_bit_selection::close_device(volatile unsigned *d_map_base, int &d_dev_descr)
{ {
auto *aux = const_cast<unsigned *>(d_map_base); auto *aux = const_cast<unsigned *>(d_map_base);

View File

@ -27,16 +27,19 @@ pps_tcp_rx::pps_tcp_rx()
clientSd = -1; clientSd = -1;
} }
pps_tcp_rx::~pps_tcp_rx() pps_tcp_rx::~pps_tcp_rx()
{ {
// TODO Auto-generated destructor stub // TODO Auto-generated destructor stub
} }
void pps_tcp_rx::set_pps_samplestamp_queue(std::shared_ptr<Concurrent_Queue<PpsSamplestamp>> queue) void pps_tcp_rx::set_pps_samplestamp_queue(std::shared_ptr<Concurrent_Queue<PpsSamplestamp>> queue)
{ {
Pps_queue = std::move(queue); Pps_queue = std::move(queue);
} }
bool pps_tcp_rx::send_cmd(std::string cmd) bool pps_tcp_rx::send_cmd(std::string cmd)
{ {
if (is_connected == true) if (is_connected == true)
@ -59,6 +62,8 @@ bool pps_tcp_rx::send_cmd(std::string cmd)
} }
return true; return true;
} }
void pps_tcp_rx::receive_pps(std::string ip_address, int port) void pps_tcp_rx::receive_pps(std::string ip_address, int port)
{ {
// create a message buffer // create a message buffer