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;
}
int8_t *Fpga_DMA::get_buffer_address() // NOLINT(readability-make-member-function-const)
{
return tx_channel.buf_ptr[0].buffer;
}
int Fpga_DMA::DMA_write(int nbytes) const
{
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)
{
// 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)
{
// 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;
}
void Fpga_dynamic_bit_selection::close_device(volatile unsigned *d_map_base, int &d_dev_descr)
{
auto *aux = const_cast<unsigned *>(d_map_base);

View File

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