stipcores library
Collection of Software Drivers for Hardware IP Cores for the Panoradio SDR
|
Driver for the Signal_Scaler IP core. More...
#include <Signal_Scaler.h>
Public Member Functions | |
Signal_Scaler (int base_address, int size_in_k, int max_scaling_value_db) | |
class constructor More... | |
~Signal_Scaler () | |
class deconstructor | |
int | set_scaling (int scaling_in_db) |
sets scaling, <0dB: attenuation, >0dB: -> amplification (in 6 dB steps (shifting)) More... | |
int | get_max_value () |
reads maximum occured absolute value at the module's input since last call of reset_max_value() More... | |
int | reset_max_value () |
resets the maximum abs value More... | |
Driver for the Signal_Scaler IP core.
Signal_Scaler::Signal_Scaler | ( | int | base_address, |
int | size_in_k, | ||
int | max_scaling_value_db | ||
) |
class constructor
base_adress | address of the spi core (from Vivado), e.g. 0x44C00000 |
size_in_k | size of the required adress space in k (from Vivado) |
max_scaling_value_db | maximum scaling value in dB (e.g. 48 means -48 dB to +48 dB) |
int Signal_Scaler::get_max_value | ( | ) |
reads maximum occured absolute value at the module's input since last call of reset_max_value()
int Signal_Scaler::reset_max_value | ( | ) |
resets the maximum abs value
int Signal_Scaler::set_scaling | ( | int | scaling_in_db | ) |
sets scaling, <0dB: attenuation, >0dB: -> amplification (in 6 dB steps (shifting))