123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112 |
- #ifndef PTS_HEADER
- #define PTS_HEADER
- #include <unistd.h>
- #include "../ether/ether.h"
- #include "../tools/types.h"
- #define PTSCTL_LINE_ATTN 127
- #define PTSCTL_GRND_ATTN 127
- #ifdef WIN32
- # define PTSCTL_PORT "com1:"
- #else
- # define PTSCTL_PORT "/dev/ttyS0"
- #endif
- typedef struct pts
- {
- uint8_t dut [ETHER_ADDR_LEN];
- uint8_t gn [ETHER_ADDR_LEN];
- signed traffic;
- char const * name;
- signed atn_grnd;
- signed atn_line;
- signed phy_rate_limit;
- uint16_t AVGRX_GN;
- uint16_t AVGRX_DUT;
- uint16_t AVGTX_GN;
- uint16_t AVGTX_DUT;
- uint8_t COUPLING;
- uint8_t timeout;
- signed tonemaps;
- signed exit_option;
-
-
- }
- PTS;
-
- signed GetDUTPhyRates (struct plc * , struct pts * );
- signed GetGNPhyRates (struct plc * , struct pts * );
- signed Get_GN_MAC (struct plc * plc);
- signed Transmit4 (struct plc * plc, byte source [], byte target []);
- signed Transmit5 (struct plc * plc, byte source [], byte target []);
- signed Transmit6 (struct plc * plc, byte source [], byte target []);
- #endif
|