-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
46cad6b
commit 17a3cf6
Showing
9 changed files
with
703 additions
and
150 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
//include <stdio.h> | ||
//#include <stdlib.h> | ||
//#include <string.h> | ||
//#include <errno.h> | ||
//#include <unistd.h> | ||
#include <hamlib/rig.h> | ||
//#include <sys/socket.h> | ||
#ifdef HAVE_NETINET_IN_H | ||
#include <netinet/in.h> | ||
#endif | ||
#ifdef _WIN32 | ||
#include <winsock2.h> | ||
#include <ws2tcpip.h> | ||
#endif | ||
|
||
#ifdef HAVE_ARPA_INET_H | ||
#include <arpa/inet.h> | ||
#endif | ||
|
||
#ifndef MULTICAST_H | ||
#define MULTICAST_H | ||
|
||
struct multicast_vfo | ||
{ | ||
char *name; | ||
double freq; | ||
char *mode; | ||
int width; | ||
int widthLower; | ||
int widthUpper; | ||
unsigned char rx; // true if in rx mode | ||
unsigned char tx; // true in in tx mode | ||
}; | ||
|
||
struct multicast_broadcast | ||
{ | ||
char *ID; | ||
struct multicast_vfo **vfo; | ||
}; | ||
|
||
// returns # of bytes sent | ||
extern HAMLIB_EXPORT (int) multicast_init(RIG *rig, char *addr, int port); | ||
extern HAMLIB_EXPORT (int) multicast_send(RIG *rig, const char *msg, int msglen); | ||
extern HAMLIB_EXPORT (int) multicast_stop(RIG *rig); | ||
#endif //MULTICAST_H |
Oops, something went wrong.