GNU Radio's HPSDR Package: metis.h Source File

GNU Radio's HPSDR Package

metis.h
Go to the documentation of this file.
1
2// This version has been modified from the John Melton original
3// by Tom McDermott, N5EG for use with metis.cc and Gnuradio.
4// Version - November 16, 2012
5
6#ifndef METIS_H
7#define METIS_H
8
9
10 enum { RxStream_Off, // Hermes Receiver Stream Controls
11 RxStream_NB_On, // Narrow Band (down converted)
12 RxStream_WB_On, // Wide Band (raw ADC samples)
13 RxStream_NBWB_On // Narrow Band and Wide Band both On
14};
15
16 typedef struct _METIS_CARD {
17 char ip_address[16];
18 char mac_address[18];
19} METIS_CARD;
20
21 void metis_discover(const char* interface);
22 int metis_found();
23 char* metis_ip_address(int entry);
24 char* metis_mac_address(int entry);
25 void metis_receive_stream_control(unsigned char, unsigned int);
26 void metis_stop_receive_thread();
27
28 int metis_write(unsigned char ep,unsigned char* buffer,int length);
29 void* metis_receive_thread(void* arg);
30 void metis_send_buffer(unsigned char* buffer,int length);
31
32
33#endif // METIS_H
34
35
metis_mac_address
char * metis_mac_address(int entry)
metis_ip_address
char * metis_ip_address(int entry)
metis_receive_thread
void * metis_receive_thread(void *arg)
metis_write
int metis_write(unsigned char ep, unsigned char *buffer, int length)
METIS_CARD
struct _METIS_CARD METIS_CARD
metis_send_buffer
void metis_send_buffer(unsigned char *buffer, int length)
metis_discover
void metis_discover(const char *interface)
RxStream_WB_On
@ RxStream_WB_On
Definition metis.h:12
RxStream_Off
@ RxStream_Off
Definition metis.h:10
RxStream_NBWB_On
@ RxStream_NBWB_On
Definition metis.h:13
RxStream_NB_On
@ RxStream_NB_On
Definition metis.h:11
metis_receive_stream_control
void metis_receive_stream_control(unsigned char, unsigned int)
metis_stop_receive_thread
void metis_stop_receive_thread()
metis_found
int metis_found()
_METIS_CARD
Definition metis.h:16
_METIS_CARD::ip_address
char ip_address[16]
Definition metis.h:17
_METIS_CARD::mac_address
char mac_address[18]
Definition metis.h:18