05-06-2008 04:10 PM
05-06-2008 04:33 PM
05-07-2008 08:27 AM
Hi Allan and thanks,
The only options in TS for numeric variables (that I can see) are integer and unsigned integer (and of course real..).
Therefore, I'm still confused as to what to use to match the dll variables: unsigned char, unsigned short and unsigned long.
Please clarify
Thanks
Rafi
05-08-2008 12:56 PM - edited 05-08-2008 12:57 PM
05-09-2008 12:51 AM
05-09-2008 09:57 AM
05-11-2008 07:28 AM
Hi Doug,
I'm given the dll and load of h files. The definitions you mentioned are not shown...
Suppose I want to creat in TS a container to match variable FCPortConfig. This variable structure is given here....
typedef struct tagFCPortConfig
{
unsigned char ucTopology; /* For Point-To-Point use TOPOLOGY_PT_2_PT
and for LOOP Topology use TOPOLOGY_LOOP */
unsigned char ucSpeed; /* SPEED_1GHZ, SPEED_2GHZ */
unsigned char ucDisableTimer; /* (Not Currently Used) enable or disable
timeout timer */
unsigned long ulRRDYGap; /* (Not Currently Used) up to a 27-bit val */
unsigned long ulRRDYGapRandomEnable;/* (Not Currently Used)enable/disable */
unsigned long ulRRDYGapSeed; /* (Not Currently Used) If random set;
a 27-bit val */
unsigned long ulRRDYGapMin; /* (Not Currently Used) If random set;
a 27-bit val */
unsigned long ulRRDYGapMax; /* (Not Currently Used) If random set;
a 27-bit val */
unsigned char ucAutoNegotiate; /* (Not Currently Used) enable or disable
auto negotiation */
unsigned short uiBBCreditConfigRx; /* BB_credit this port will advertise */
unsigned char ucStatsMode; /* Determines weather or not to retrieve
the extended stats counters, use
STATS_MODE_NORMAL & STATS_MODE_EXTENDED */
unsigned char ucReserved[15]; /* Reserved */
} FCPortConfig;
1) Is there a way to find out how they define unsigned char, unsigned short and unsigned long?
2) Can I still use the TS default numeric type?
Thanks
Rafi
05-11-2008 07:52 AM
05-12-2008 08:57 AM
05-12-2008 10:28 AM - edited 05-12-2008 10:31 AM