beautypg.com

Example code – Sundance SMT317 User Manual

Page 23

background image

Version 6.1

Page 23 of 24

SMT317 User Manual

18.

Example Code

Code to use with a smt335.

Comm-port 1 (SMT335) have to be connected to the Comm-port 3 (SMT317).

The SDB (SMT317) is linked with the SDB B (SMT335).

#include

#include

#include

#include "smt317v2.h"

#include "Fast_FpgaConf.c"

#include "sdb.h"

/********************** PROTOTYPES ***********************/

void fill_internal_b(void *);

void Fast_FpgaConf(int len, unsigned int *b, int link_no);

void *calloc(size_t _num, size_t _size);

/*********************************************************/

#define BURST1K_IntClk_IntTrigger_low_IntSync 0X49ea0101

SEMA internal_filled_b;

int *samplestore;

main()

{

//Corresponds to the only bitstream in the Dat2asm.bat file

extern far int fpga_count;

extern far unsigned int fpga_data[];

int control_word;