Skip to content

Commit

Permalink
Updated Python wrapping (Swig)
Browse files Browse the repository at this point in the history
  • Loading branch information
pkazanzides committed Apr 23, 2024
1 parent e28e473 commit fabe290
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Amp1394Config.cmake.in
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,10 @@ set (Amp1394_LIBRARY_DIR "@CONF_LIBRARY_DIR@")
set (Amp1394_LIBRARIES "@CONF_LIBRARIES@")
set (Amp1394Console_LIBRARIES "@CONF_CONSOLE_LIBRARIES@")

# FireWire/Ethernet support
# FireWire/Ethernet/Zynq-EMIO support
set (Amp1394_HAS_RAW1394 "@Amp1394_HAS_RAW1394@")
set (Amp1394_HAS_PCAP "@Amp1394_HAS_PCAP@")
set (Amp1394_HAS_EMIO "@Amp1394_HAS_EMIO@")

# Whether using curses for console
set (Amp1394Console_HAS_CURSES "@Amp1394Console_HAS_CURSES@")
12 changes: 12 additions & 0 deletions lib/Amp1394.i
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

/*Put headers and other declarations here*/
#include "AmpIORevision.h"
#include "Amp1394Time.h"
#include "AmpIO.h"
#include "EthUdpPort.h"

Expand All @@ -16,6 +17,12 @@
#include "EthRawPort.h"
#endif

#if Amp1394_HAS_EMIO
#include "ZynqEmioPort.h"
#endif

#include "PortFactory.h"

#ifdef _MSC_VER
#include <stdlib.h>
inline uint16_t bswap_16(uint16_t data) { return _byteswap_ushort(data); }
Expand Down Expand Up @@ -158,6 +165,7 @@ uint32_t bswap32(uint32_t in);
%constant std::string VERSION = Amp1394_VERSION;

%include "Amp1394Types.h"
%include "Amp1394Time.h"
%include "EncoderVelocity.h"
%include "BoardIO.h"
%include "FpgaIO.h"
Expand All @@ -176,3 +184,7 @@ uint32_t bswap32(uint32_t in);
#if Amp1394_HAS_PCAP
%include "EthRawPort.h"
#endif
#if Amp1394_HAS_EMIO
%include "ZynqEmioPort.h"
#endif
%include "PortFactory.h"

0 comments on commit fabe290

Please sign in to comment.