Go to Post Could you explain this concept of a break from FIRST? Did my wife put you up to this? - Gary Dillard [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
 
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 01-02-2006, 08:29
koenig3456 koenig3456 is offline
Programming Coach
None #0681 (EARTH Squad)
Team Role: Coach
 
Join Date: Jan 2006
Location: Pennsylvania
Posts: 16
koenig3456 is an unknown quantity at this point
Question Accessing serial ports

I'm trying to use the ReadSerialPortOne() function from EasyC.
The mplink linker can't find the definition of symbol ReadSerialPortOne.

Where is the object or library file that defines ReadSerialPortOne?
  #2   Spotlight this post!  
Unread 02-02-2006, 07:57
BradAMiller BradAMiller is offline
Registered User
AKA: Brad
#0190 ( Gompei and the Herd)
Team Role: Mentor
 
Join Date: Mar 2004
Location: Worcester, MA
Posts: 588
BradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant future
Re: Accessing serial ports

Quote:
Originally Posted by koenig3456
I'm trying to use the ReadSerialPortOne() function from EasyC.
The mplink linker can't find the definition of symbol ReadSerialPortOne.

Where is the object or library file that defines ReadSerialPortOne?
Whoops!
In the last blitz of getting WPILib wrapped up, I forgot that those functions were documented and changed their declarations to:
Code:
unsigned char _ReadSerialPortOne(void);
unsigned char _ReadSerialPortTwo(void);
void WriteSerialPortOne(void);
void WriteSerialPortTwo(void);
So those functions are available, and I should probably change the names do match the documentation. This was during a binge where I was making all the functions not used outside of the library to not conflict with functions that users might write by prepending them with underscores.

If you want to use them, go with the underscored (_) version for now, and I'll try to make a new version later that has them corrected, with the include files fixed as well.

Please let me know if they work for you. Also, beware, that the camera code uses serial port 2 exclusively.
__________________
Brad Miller
Robotics Resource Center
Worcester Polytechnic Institute
Closed Thread


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
CMUcam2 Serial Port Diagnostics Kevin Watson Programming 13 18-02-2006 15:05
Where can we get PS2 type game controllers with serial ports? waialua359 Control System 12 25-01-2006 22:33
Scripting Setup and the Camera + Serial Port Drivers CJO Programming 22 11-01-2006 17:42
Updated: Serial Port Driver Code Kevin Watson Programming 4 05-02-2005 18:39
New Serial Port Driver Kevin Watson Programming 16 09-01-2005 01:56


All times are GMT -5. The time now is 03:59.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi