#Hi Speed Serial I/O
10-Jul-86 12:11:59
Sb: #26184-#Hi Speed Serial I/O
Fm: Denis Hennessy 73277,1203
To: Richard Rae 72177,3516
This message turned up in search, but its forum couldn’t be identified from the original transcript, so it may not be linked into its thread.
Assuming you've opened the port with something like error =
OpenDevice(SERIALNAME,0,&IOSer,0); and IOSer is a struct IOExtSer, you can
find the fields of this structure in the <devices/serial.h> file. You read
the status of the port with: (Whoops, I've just seen a field with the same
name as the structure, change the struct IOExtSer to IORser)
IORser.IOSer.io_Command = SDCMDQUERY;
error = DoIO(&IORser);
You can then change different parmeters with the SDCMD_SETPARAMS command. To
change the buffer size try:
IORser.io_ReadLen = 6000; /* rx buffer */
IORser.io_WriteLen = 1000; /* tx buffer */
IORser.IOSer.io_Command = SDCMD_SETPARAMS;
error = DoIO(&IORser);
To read more than one character, set the IORser.IOSer.io_Length to the number
of characters you want before the BeginIO() call.
As to the RKM, I've got a spare v1.0 copy you could borrow but as I'm in
Ireland, it would probably be quick to wait for your dealer to sort it out.
By the way, did you mention that you're doing this for a MIDI program? If
so, could you advise me on what kind of features should be built into a MIDI
keyboard for the Amiga. I'm thinking of making one and don't know if it is
sufficient to just send key-down and key-up messages.