85 |
|
{ |
86 |
|
} |
87 |
|
|
88 |
< |
virtual int16 Open(uint16 config); |
89 |
< |
virtual int16 PrimeIn(uint32 pb, uint32 dce); |
90 |
< |
virtual int16 PrimeOut(uint32 pb, uint32 dce); |
91 |
< |
virtual int16 Control(uint32 pb, uint32 dce, uint16 code); |
92 |
< |
virtual int16 Status(uint32 pb, uint32 dce, uint16 code); |
93 |
< |
virtual int16 Close(void); |
88 |
> |
virtual int16 open(uint16 config); |
89 |
> |
virtual int16 prime_in(uint32 pb, uint32 dce); |
90 |
> |
virtual int16 prime_out(uint32 pb, uint32 dce); |
91 |
> |
virtual int16 control(uint32 pb, uint32 dce, uint16 code); |
92 |
> |
virtual int16 status(uint32 pb, uint32 dce, uint16 code); |
93 |
> |
virtual int16 close(void); |
94 |
|
|
95 |
|
private: |
96 |
|
bool configure(uint16 config); |
147 |
|
* Open serial port |
148 |
|
*/ |
149 |
|
|
150 |
< |
int16 ASERDPort::Open(uint16 config) |
150 |
> |
int16 ASERDPort::open(uint16 config) |
151 |
|
{ |
152 |
|
// Don't open NULL name devices |
153 |
|
if (device_name == NULL) |
166 |
|
proc_arg = this; |
167 |
|
SetSignal(0, SIGF_SINGLE); |
168 |
|
serial_proc = CreateNewProcTags( |
169 |
< |
NP_Entry, serial_func, |
170 |
< |
NP_Name, "Basilisk II Serial Task", |
169 |
> |
NP_Entry, (ULONG)serial_func, |
170 |
> |
NP_Name, (ULONG)"Basilisk II Serial Task", |
171 |
|
NP_Priority, 1, |
172 |
|
TAG_END |
173 |
|
); |
199 |
|
* Read data from port |
200 |
|
*/ |
201 |
|
|
202 |
< |
int16 ASERDPort::PrimeIn(uint32 pb, uint32 dce) |
202 |
> |
int16 ASERDPort::prime_in(uint32 pb, uint32 dce) |
203 |
|
{ |
204 |
|
// Send input command to serial process |
205 |
|
D(bug("primein\n")); |
215 |
|
* Write data to port |
216 |
|
*/ |
217 |
|
|
218 |
< |
int16 ASERDPort::PrimeOut(uint32 pb, uint32 dce) |
218 |
> |
int16 ASERDPort::prime_out(uint32 pb, uint32 dce) |
219 |
|
{ |
220 |
|
// Send output command to serial process |
221 |
|
D(bug("primeout\n")); |
231 |
|
* Control calls |
232 |
|
*/ |
233 |
|
|
234 |
< |
int16 ASERDPort::Control(uint32 pb, uint32 dce, uint16 code) |
234 |
> |
int16 ASERDPort::control(uint32 pb, uint32 dce, uint16 code) |
235 |
|
{ |
236 |
|
D(bug("control(%ld)\n", (uint32)code)); |
237 |
|
switch (code) { |
326 |
|
* Status calls |
327 |
|
*/ |
328 |
|
|
329 |
< |
int16 ASERDPort::Status(uint32 pb, uint32 dce, uint16 code) |
329 |
> |
int16 ASERDPort::status(uint32 pb, uint32 dce, uint16 code) |
330 |
|
{ |
331 |
|
D(bug("status(%ld)\n", (uint32)code)); |
332 |
|
switch (code) { |
381 |
|
* Close serial port |
382 |
|
*/ |
383 |
|
|
384 |
< |
int16 ASERDPort::Close() |
384 |
> |
int16 ASERDPort::close() |
385 |
|
{ |
386 |
|
// Stop process |
387 |
|
if (serial_proc) { |