Go to the source code of this file.
|
int32_t | usrp_connect (string device, uint16_t port, usrp_handle &handle) |
|
int32_t | usrp_disconnect (usrp_handle &handle) |
|
int32_t | usrp_send (usrp_handle &handle, std::string &data) |
|
uint8_t | usrp_byte (vector< uint8_t > response) |
|
uint8_t | usrp_freq2band (double frequency) |
|
int32_t | usrp_check_address (usrp_handle &handle) |
|
int32_t | usrp_set_channel (usrp_handle &handle, uint8_t channelnum) |
|
int32_t | usrp_set_frequency (usrp_handle &handle, double frequency) |
|
int32_t | usrp_get_frequency (usrp_handle &handle) |
|
int32_t | usrp_set_freqband (usrp_handle &handle, uint8_t mode) |
|
int32_t | usrp_get_freqband (usrp_handle &handle) |
|
int32_t | usrp_set_bandpass (usrp_handle &handle, double bandpass) |
|
int32_t | usrp_get_bandpass (usrp_handle &handle) |
|
int32_t | usrp_set_mode (usrp_handle &handle, uint8_t opmode) |
|
int32_t | usrp_set_mode (usrp_handle &handle, uint8_t opmode, uint8_t filtband) |
|
int32_t | usrp_get_mode (usrp_handle &handle) |
|
int32_t | usrp_set_rfgain (usrp_handle &handle, uint8_t rfgain) |
|
int32_t | usrp_get_rfgain (usrp_handle &handle) |
|
int32_t | usrp_set_rfpower (usrp_handle &handle, float power) |
|
int32_t | usrp_get_rfpower (usrp_handle &handle) |
|
int32_t | usrp_set_squelch (usrp_handle &handle, uint8_t squelch) |
|
int32_t | usrp_get_squelch (usrp_handle &handle) |
|
int32_t | usrp_set_datamode (usrp_handle &handle, uint8_t mode) |
|
int32_t | usrp_get_datamode (usrp_handle &handle) |
|
int32_t | usrp_set_bps9600mode (usrp_handle &handle, uint8_t mode) |
|
int32_t | usrp_get_bps9600mode (usrp_handle &handle) |
|
int32_t | usrp_get_smeter (usrp_handle &handle) |
|
int32_t | usrp_get_rfmeter (usrp_handle &handle) |
|
int32_t | usrp_get_swrmeter (usrp_handle &handle) |
|
int32_t | usrp_get_alcmeter (usrp_handle &handle) |
|
int32_t | usrp_get_compmeter (usrp_handle &handle) |
|
int32_t | usrp_get_record (usrp_handle &handle) |
|
int32_t | usrp_set_record (usrp_handle &handle, uint8_t record) |
|
#define USRP_CHANNEL_SWAP 2 |
#define USRP_DATAMODE_OFF 0 |
#define USRP_DATAMODE_ON 1 |
#define USRP_9600MODE_OFF 0 |
#define USRP_9600MODE_ON 1 |
#define USRP_MODE_RTTYR 8 |
int32_t usrp_connect |
( |
string |
device, |
|
|
uint16_t |
port, |
|
|
usrp_handle & |
handle |
|
) |
| |
static string port
Definition: add_radio.cpp:16
uint16_t port
Definition: usrp_lib.h:72
Agent socket using Unicast UDP.
int iretn
Definition: rw_test.cpp:37
#define SOCKET_TALK
Talk followed by optional listen (sendto address)
Definition: socketlib.h:82
socket_channel socket
Definition: usrp_lib.h:71
int32_t socket_open(socket_channel *channel, NetworkType ntype, const char *address, uint16_t port, uint16_t role, bool blocking, uint32_t usectimeo, uint32_t rcvbuf, uint32_t sndbuf)
Open UDP socket.
Definition: socketlib.cpp:51
static string device
Definition: ax25_recv.cpp:39
int32_t socket_close(socket_channel *channel)
Close socket.
Definition: socketlib.cpp:509
int iretn
Definition: rw_test.cpp:37
socket_channel socket
Definition: usrp_lib.h:71
int32_t usrp_send |
( |
usrp_handle & |
handle, |
|
|
std::string & |
data |
|
) |
| |
uint8_t usrp_byte |
( |
vector< uint8_t > |
response | ) |
|
72 for (
size_t i=0;
i<2; ++
i)
75 result += 10. * (response[
i] >> 4) + (response[
i] % 16);
int i
Definition: rw_test.cpp:37
uint8_t usrp_freq2band |
( |
double |
frequency | ) |
|
85 if (frequency < 1.8e6)
89 else if (frequency < 2.0e6)
93 else if (frequency >= 3.4e6 && frequency < 4.1e6)
97 else if (frequency >= 6.9e6 && frequency < 7.5e6)
101 else if (frequency >= 9.9e6 && frequency < 10.5e6)
105 else if (frequency >= 13.9e6 && frequency < 14.5e6)
109 else if (frequency >= 17.9e6 && frequency < 18.5e6)
113 else if (frequency >= 20.9e6 && frequency < 21.5e6)
117 else if (frequency >= 24.4e6 && frequency < 25.1e6)
121 else if (frequency >= 28.0e6 && frequency < 30.0e6)
125 else if (frequency >= 50.0e6 && frequency <= 54.0e6)
129 else if (frequency >= 108.0e6 && frequency <= 174.0e6)
133 else if (frequency >= 420.0e6 && frequency <= 480.0e6)
137 else if (frequency >= 1240.0e6 && frequency <1320.0e6)
int32_t usrp_set_channel |
( |
usrp_handle & |
handle, |
|
|
uint8_t |
channelnum |
|
) |
| |
int32_t usrp_set_frequency |
( |
usrp_handle & |
handle, |
|
|
double |
frequency |
|
) |
| |
230 string data =
"downlink_freq " +
to_unsigned(frequency);
int32_t usrp_send(usrp_handle &handle, string &data)
Definition: usrp_lib.cpp:57
int iretn
Definition: rw_test.cpp:37
string to_unsigned(uint64_t value, uint16_t digits, bool zerofill)
Definition: stringlib.cpp:265
uint8_t freqband
Definition: usrp_lib.h:75
double frequency
Definition: usrp_lib.h:93
152 string data =
"downlink_freq 0";
int32_t usrp_send(usrp_handle &handle, string &data)
Definition: usrp_lib.cpp:57
int iretn
Definition: rw_test.cpp:37
uint8_t freqband
Definition: usrp_lib.h:75
double frequency
Definition: usrp_lib.h:93
int32_t usrp_set_freqband |
( |
usrp_handle & |
handle, |
|
|
uint8_t |
mode |
|
) |
| |
int32_t usrp_set_bandpass |
( |
usrp_handle & |
handle, |
|
|
double |
bandpass |
|
) |
| |
int32_t usrp_set_mode |
( |
usrp_handle & |
handle, |
|
|
uint8_t |
opmode |
|
) |
| |
int32_t usrp_set_mode |
( |
usrp_handle & |
handle, |
|
|
uint8_t |
opmode, |
|
|
uint8_t |
filtband |
|
) |
| |
int32_t usrp_set_rfgain |
( |
usrp_handle & |
handle, |
|
|
uint8_t |
rfgain |
|
) |
| |
int32_t usrp_set_rfpower |
( |
usrp_handle & |
handle, |
|
|
float |
power |
|
) |
| |
int32_t usrp_set_squelch |
( |
usrp_handle & |
handle, |
|
|
uint8_t |
squelch |
|
) |
| |
int32_t usrp_set_datamode |
( |
usrp_handle & |
handle, |
|
|
uint8_t |
mode |
|
) |
| |
int32_t usrp_set_bps9600mode |
( |
usrp_handle & |
handle, |
|
|
uint8_t |
mode |
|
) |
| |
310 string data =
"record 2";
318 handle.
record = stoi(data);
int32_t usrp_send(usrp_handle &handle, string &data)
Definition: usrp_lib.cpp:57
uint8_t record
Definition: usrp_lib.h:69
int iretn
Definition: rw_test.cpp:37
int32_t usrp_set_record |
( |
usrp_handle & |
handle, |
|
|
uint8_t |
record |
|
) |
| |
int32_t usrp_send(usrp_handle &handle, string &data)
Definition: usrp_lib.cpp:57
uint8_t record
Definition: usrp_lib.h:69
int iretn
Definition: rw_test.cpp:37